// // unknown_libname_57 from 0x18012ee44 to 0x18012ef46 (258 bytes) // // 2 xrefs: // > sub_18012D5FC @ 0x18012d889 // > @ 0x180202d5c // // 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 // // Microsoft VisualC 64bit universal runtime char __fastcall unknown_libname_57(__int64 a1) { const char *v2; // rsi int v3; // edi __crt_locale_pointers *v4; // r9 int v5; // eax __int64 v6; // rbp int v7; // r8d __int64 v8; // r10 _DWORD *v9; // r9 wchar_t DstCh; // [rsp+50h] [rbp+8h] BYREF if ( *(_BYTE *)(a1 + 84) || *(int *)(a1 + 80) <= 0 ) { v7 = *(_DWORD *)(a1 + 80); v8 = a1 + 1128; v9 = (_DWORD *)(a1 + 40); if ( (*(_DWORD *)(*(_QWORD *)(a1 + 1128) + 20LL) & 0x1000) == 0 || *(_QWORD *)(*(_QWORD *)v8 + 8LL) ) __crt_stdio_output::output_adapter_common>::write_string_impl( v8, *(_QWORD *)(a1 + 72), v7, (_DWORD)v9, a1 + 16); else *v9 += v7; } else { v2 = *(const char **)(a1 + 72); v3 = 0; while ( 1 ) { v4 = *(__crt_locale_pointers **)(a1 + 8); DstCh = 0; v5 = mbtowc_l(&DstCh, v2, *((int *)v4->locinfo + 2), v4); v6 = v5; if ( v5 <= 0 ) break; if ( ((*(_DWORD *)(*(_QWORD *)(a1 + 1128) + 20LL) & 0x1000) == 0 || *(_QWORD *)(*(_QWORD *)(a1 + 1128) + 8LL)) && fputwc_nolock(DstCh, *(FILE **)(a1 + 1128)) == 0xFFFF ) { *(_DWORD *)(a1 + 40) = -1; } else { ++*(_DWORD *)(a1 + 40); } v2 += v6; if ( ++v3 == *(_DWORD *)(a1 + 80) ) return 1; } *(_DWORD *)(a1 + 40) = -1; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source