// // std::__ndk1::moneypunct_byname::init from 0x96807c to 0x968248 (460 bytes) // // 4 xrefs: // > sub_968018 @ 0x968040 // > sub_968264 @ 0x968296 // > sub_96D650 @ 0x96d914 // > sub_96DDD0 @ 0x96e068 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:05:44 +0000 // int __fastcall std::moneypunct_byname::init(int a1, char *a2) { int v4; // r0 int v5; // r8 int v6; // r4 int v7; // r6 char v8; // r0 char v9; // r0 int v10; // r0 int *v11; // r0 int *v12; // r0 void *exception; // r8 size_t v15; // r0 int *v16; // r0 int v17; // r5 int v18; // r6 int v19[4]; // [sp+8h] [bp-30h] BYREF int v20[5]; // [sp+18h] [bp-20h] BYREF v4 = sub_992EBC(8127, a2); v5 = v4; if ( !v4 ) { exception = _cxa_allocate_exception(8u); memset(v19, 0, 12); v15 = strlen(a2); std::string::__init(v19, a2, v15); v16 = std::string::insert(v19, 0, "moneypunct_byname failed to construct for "); v17 = v16[1]; v18 = v16[2]; v20[0] = *v16; v20[1] = v17; v20[2] = v18; *v16 = 0; v16[1] = 0; v16[2] = 0; std::runtime_error::runtime_error(exception, v20); _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))std::runtime_error::~runtime_error); } v6 = sub_992F18(v4); v7 = sub_992EB0(); if ( v6 ) sub_992F18(v6); v8 = **(_BYTE **)(v7 + 20); if ( !v8 ) v8 = -1; *(_BYTE *)(a1 + 8) = v8; v9 = **(_BYTE **)(v7 + 24); if ( !v9 ) v9 = -1; *(_BYTE *)(a1 + 9) = v9; std::string::assign((int *)(a1 + 12), *(char **)(v7 + 28)); std::string::assign((int *)(a1 + 24), *(char **)(v7 + 12)); v10 = *(unsigned __int8 *)(v7 + 40); if ( v10 == 255 ) v10 = 0; *(_DWORD *)(a1 + 60) = v10; v11 = (int *)(a1 + 36); if ( *(_BYTE *)(v7 + 52) ) std::string::assign(v11, *(char **)(v7 + 32)); else std::string::assign(v11, "()"); v12 = (int *)(a1 + 48); if ( *(_BYTE *)(v7 + 53) ) std::string::assign(v12, *(char **)(v7 + 36)); else std::string::assign(v12, "()"); std::string::basic_string(v20, a1 + 24); sub_975C98( a1 + 64, v20, 1, (unsigned __int8)*(_WORD *)(v7 + 48), HIBYTE(*(unsigned __int16 *)(v7 + 48)), *(unsigned __int8 *)(v7 + 52)); sub_975C98( a1 + 68, a1 + 24, 1, (unsigned __int8)*(_WORD *)(v7 + 50), HIBYTE(*(unsigned __int16 *)(v7 + 50)), *(unsigned __int8 *)(v7 + 53)); std::string::~string((int)v20); sub_992EA4(v5); return _stack_chk_guard - v20[4]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source