// // sub_96DDD0 from 0x96ddd0 to 0x96e3cc (1532 bytes) // // 2 xrefs: // > std::__ndk1::locale::locale @ 0x96ed78 // > std::__ndk1::locale::locale @ 0x96ee22 // // 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:50 +0000 // int __fastcall sub_96DDD0(int a1, int a2, int a3, char a4) { int v5; // r6 __int64 v8; // r0 __int64 v10; // kr00_8 unsigned int v11; // r5 std::__shared_count *v12; // r0 std::__shared_count *v13; // r5 std::__shared_count *v14; // r5 std::__shared_count *v15; // r5 std::__shared_count *v16; // r5 std::__shared_count *v17; // r5 std::__shared_count *v18; // r5 char *v19; // r1 std::__shared_count *v20; // r5 std::__shared_count *v21; // r5 int v22; // r5 __int64 v23; // r0 char *v24; // r1 int v25; // r5 __int64 v26; // r0 char *v27; // r1 int v28; // r5 __int64 v29; // r0 int v30; // r1 _DWORD *v31; // r5 __int64 v32; // r0 char *v33; // r1 std::__shared_count *v34; // r5 std::__shared_count *v35; // r5 std::__shared_count *v36; // r5 std::__shared_count *v37; // r5 int *v38; // r5 __int64 v39; // r0 int *v40; // r5 __int64 v41; // r0 std::__shared_count *v42; // r5 std::__shared_count *v43; // r5 v5 = a1 + 8; LODWORD(v8) = &off_D13EB8; HIDWORD(v8) = -1; *(_QWORD *)a1 = v8; sub_96D5D0(a1 + 8, 28); *(_DWORD *)(a1 + 144) = 0; *(_DWORD *)(a1 + 148) = 0; *(_DWORD *)(a1 + 152) = 0; std::string::__init((int *)(a1 + 144), "*", 1u); if ( a1 != a2 ) sub_9762F0(v5, *(_DWORD *)(a2 + 8), *(_DWORD *)(a2 + 12)); v10 = *(_QWORD *)(a1 + 8); if ( HIDWORD(v10) != (_DWORD)v10 ) { v11 = 0; do { v12 = *(std::__shared_count **)(v10 + 4 * v11); if ( v12 ) { std::__shared_count::__add_shared(v12); v10 = *(_QWORD *)(a1 + 8); } ++v11; } while ( v11 < (HIDWORD(v10) - (int)v10) >> 2 ); } if ( (a4 & 8) != 0 ) { v13 = (std::__shared_count *)operator new(0xCu); std::collate_byname::collate_byname(v13, a3, 0); std::locale::id::__get((std::locale::id *)&std::collate::id); sub_96EA08(a1, v13); v14 = (std::__shared_count *)operator new(0xCu); std::collate_byname::collate_byname(v14, a3, 0); std::locale::id::__get((std::locale::id *)&std::collate::id); sub_96EA08(a1, v14); } if ( (a4 & 1) != 0 ) { v15 = (std::__shared_count *)operator new(0x14u); std::ctype_byname::ctype_byname(v15, a3, 0); std::locale::id::__get((std::locale::id *)&std::ctype::id); sub_96EA08(a1, v15); v16 = (std::__shared_count *)operator new(0xCu); std::ctype_byname::ctype_byname(v16, a3, 0); std::locale::id::__get((std::locale::id *)&std::ctype::id); sub_96EA08(a1, v16); v17 = (std::__shared_count *)operator new(8u); *((_DWORD *)v17 + 1) = -1; *(_DWORD *)v17 = &off_D13DF8; std::locale::id::__get((std::locale::id *)&std::codecvt::id); sub_96EA08(a1, v17); v18 = (std::__shared_count *)operator new(0xCu); v19 = *(char **)(a3 + 8); if ( (*(_BYTE *)a3 & 1) == 0 ) v19 = (char *)(a3 + 1); std::codecvt::codecvt(v18, v19, 0); *(_DWORD *)v18 = &off_D13E28; std::locale::id::__get((std::locale::id *)&std::codecvt::id); sub_96EA08(a1, v18); v20 = (std::__shared_count *)operator new(8u); *((_DWORD *)v20 + 1) = -1; *(_DWORD *)v20 = &off_D13E58; std::locale::id::__get((std::locale::id *)&std::codecvt::id); sub_96EA08(a1, v20); v21 = (std::__shared_count *)operator new(8u); *((_DWORD *)v21 + 1) = -1; *(_DWORD *)v21 = &off_D13E88; std::locale::id::__get((std::locale::id *)&std::codecvt::id); sub_96EA08(a1, v21); } if ( (a4 & 0x10) != 0 ) { v22 = operator new(0x48u); HIDWORD(v23) = -1; LODWORD(v23) = &off_D13C28; *(_QWORD *)v22 = v23; memset((void *)(v22 + 12), 0, 0x30u); v24 = *(char **)(a3 + 8); if ( (*(_BYTE *)a3 & 1) == 0 ) v24 = (char *)(a3 + 1); std::moneypunct_byname::init(v22, v24); std::locale::id::__get((std::locale::id *)&std::moneypunct::id); sub_96EA08(a1, (std::__shared_count *)v22); v25 = operator new(0x48u); HIDWORD(v26) = -1; LODWORD(v26) = &off_D13C60; *(_QWORD *)v25 = v26; memset((void *)(v25 + 12), 0, 0x30u); v27 = *(char **)(a3 + 8); if ( (*(_BYTE *)a3 & 1) == 0 ) v27 = (char *)(a3 + 1); std::moneypunct_byname::init(v25, v27); std::locale::id::__get((std::locale::id *)&std::moneypunct::id); sub_96EA08(a1, (std::__shared_count *)v25); v28 = operator new(0x4Cu); HIDWORD(v29) = -1; LODWORD(v29) = &off_D13C98; *(_QWORD *)v28 = v29; memset((void *)(v28 + 16), 0, 0x30u); v30 = *(_DWORD *)(a3 + 8); if ( (*(_BYTE *)a3 & 1) == 0 ) v30 = a3 + 1; ((void (__fastcall *)(int, int))std::moneypunct_byname::init)(v28, v30); std::locale::id::__get((std::locale::id *)&std::moneypunct::id); sub_96EA08(a1, (std::__shared_count *)v28); v31 = (_DWORD *)operator new(0x4Cu); HIDWORD(v32) = -1; LODWORD(v32) = &off_D13CD0; *(_QWORD *)v31 = v32; memset(v31 + 4, 0, 0x30u); v33 = *(char **)(a3 + 8); if ( (*(_BYTE *)a3 & 1) == 0 ) v33 = (char *)(a3 + 1); std::moneypunct_byname::init(v31, v33); std::locale::id::__get((std::locale::id *)&std::moneypunct::id); sub_96EA08(a1, (std::__shared_count *)v31); } if ( (a4 & 2) != 0 ) { v34 = (std::__shared_count *)operator new(0x18u); std::numpunct_byname::numpunct_byname((int)v34); std::locale::id::__get((std::locale::id *)&std::numpunct::id); sub_96EA08(a1, v34); v35 = (std::__shared_count *)operator new(0x1Cu); std::numpunct_byname::numpunct_byname((int)v35); std::locale::id::__get((std::locale::id *)&std::numpunct::id); sub_96EA08(a1, v35); } if ( (a4 & 4) != 0 ) { v36 = (std::__shared_count *)operator new(0x220u); *(_DWORD *)v36 = &off_D13960; *((_DWORD *)v36 + 1) = -1; *((_DWORD *)v36 + 2) = &off_D13990; std::__time_get_storage::__time_get_storage((int)v36 + 12, a3); *(_DWORD *)v36 = &off_D13A08; *((_DWORD *)v36 + 2) = &off_D13A54; std::locale::id::__get((std::locale::id *)&std::time_get>::id); sub_96EA08(a1, v36); v37 = (std::__shared_count *)operator new(0x220u); *(_DWORD *)v37 = &off_D139B4; *((_DWORD *)v37 + 1) = -1; *((_DWORD *)v37 + 2) = &off_D139E4; std::__time_get_storage::__time_get_storage((int)v37 + 12, a3); *(_DWORD *)v37 = &off_D13A78; *((_DWORD *)v37 + 2) = &off_D13AC4; std::locale::id::__get((std::locale::id *)&std::time_get>::id); sub_96EA08(a1, v37); v38 = (int *)operator new(0xCu); HIDWORD(v39) = -1; LODWORD(v39) = &off_D14088; *(_QWORD *)v38 = v39; std::__time_put::__time_put(v38 + 2, a3); *v38 = (int)&off_D13B18; std::locale::id::__get((std::locale::id *)&std::time_put>::id); sub_96EA08(a1, (std::__shared_count *)v38); v40 = (int *)operator new(0xCu); HIDWORD(v41) = -1; LODWORD(v41) = &off_D14088; *(_QWORD *)v40 = v41; std::__time_put::__time_put(v40 + 2, a3); *v40 = (int)&off_D13B30; std::locale::id::__get((std::locale::id *)&std::time_put>::id); sub_96EA08(a1, (std::__shared_count *)v40); } if ( (a4 & 0x20) != 0 ) { v42 = (std::__shared_count *)operator new(8u); *((_DWORD *)v42 + 1) = -1; *(_DWORD *)v42 = &off_D13DB8; std::locale::id::__get((std::locale::id *)&std::messages::id); sub_96EA08(a1, v42); v43 = (std::__shared_count *)operator new(8u); *((_DWORD *)v43 + 1) = -1; *(_DWORD *)v43 = &off_D13DD8; std::locale::id::__get((std::locale::id *)&std::messages::id); sub_96EA08(a1, v43); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source