// // sub_18012D200 from 0x18012d200 to 0x18012d393 (403 bytes) // // 2 xrefs: // > __crt_stdio_output::output_processor,__crt_stdio_output::standard_base>>::process @ 0x18012cc77 // > @ 0x180202c54 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // char __fastcall sub_18012D200(__int64 a1) { __int16 v1; // ax _WORD *v3; // rax int v4; // eax _WORD *v5; // rax unsigned __int16 *v6; // rdx unsigned __int64 v7; // rax __int64 v8; // rdx v1 = *(_WORD *)(a1 + 66); if ( v1 == 70 ) { if ( (*(_BYTE *)a1 & 8) == 0 ) { *(_DWORD *)(a1 + 44) = 7; return _multtenpow12(a1); } return 1; } if ( v1 == 78 ) { if ( (*(_BYTE *)a1 & 8) == 0 ) { *(_DWORD *)(a1 + 44) = 8; LABEL_7: *errno() = 22; invalid_parameter_noinfo(); return 0; } } else { if ( *(_DWORD *)(a1 + 60) ) goto LABEL_7; switch ( v1 ) { case 'I': v6 = *(unsigned __int16 **)(a1 + 24); v7 = *v6; if ( *(_DWORD *)v6 == 3276851 ) { *(_DWORD *)(a1 + 60) = 10; *(_QWORD *)(a1 + 24) = v6 + 2; } else if ( (_WORD)v7 == 54 && v6[1] == 52 ) { *(_DWORD *)(a1 + 60) = 11; *(_QWORD *)(a1 + 24) = v6 + 2; } else { LOWORD(v7) = v7 - 88; if ( (unsigned __int16)v7 <= 0x20u ) { v8 = 0x120821001LL; if ( _bittest64(&v8, v7) ) *(_DWORD *)(a1 + 60) = 9; } } return 1; case 'L': *(_DWORD *)(a1 + 60) = 8; return 1; case 'T': *(_DWORD *)(a1 + 60) = 13; return 1; case 'h': v5 = *(_WORD **)(a1 + 24); if ( *v5 == 104 ) { *(_QWORD *)(a1 + 24) = v5 + 1; v4 = 1; } else { v4 = 2; } break; case 'j': *(_DWORD *)(a1 + 60) = 5; return 1; case 'l': v3 = *(_WORD **)(a1 + 24); if ( *v3 == 108 ) { *(_QWORD *)(a1 + 24) = v3 + 1; v4 = 4; } else { v4 = 3; } break; default: switch ( v1 ) { case 't': *(_DWORD *)(a1 + 60) = 7; break; case 'w': *(_DWORD *)(a1 + 60) = 12; break; case 'z': *(_DWORD *)(a1 + 60) = 6; break; } return 1; } *(_DWORD *)(a1 + 60) = v4; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source