// // sub_100943840 from 0x100943840 to 0x1009439c5 (389 bytes) // // 3 xrefs: // > sub_100933900 @ 0x1009339e4 // > sub_100933900 @ 0x100933bb4 // > sub_100933900 @ 0x100933c9c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:38:32 +0000 // void __fastcall sub_100943840(std::string *this, __int64 a2) { __int64 v3; // rax __int64 v4; // rax const std::string::value_type *v5; // rsi std::string::size_type v6; // rdx signed int i; // r15d __int64 v8; // rax __int64 v9; // rax const std::string::value_type *v10; // rsi std::string::size_type v11; // rdx std::string::value_type __s[16]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] *(_OWORD *)&this->__r_.__value_.__l.0 = 0; this->__r_.__value_.__r.__words[2] = 0; if ( a2 && (int)sub_1007FEF90(a2) > 0 ) { v3 = sub_1007FEFE0(a2, 0); if ( (*(_BYTE *)(v3 + 320) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(v3 + 336), *(_QWORD *)(v3 + 328)); } else { v4 = v3 + 320; __p = *(void **)(v4 + 16); *(_OWORD *)__s = *(_OWORD *)v4; } v5 = &__s[1]; if ( (__s[0] & 1) != 0 ) { v5 = (const std::string::value_type *)__p; v6 = *(_QWORD *)&__s[8]; } else { v6 = (unsigned __int8)__s[0] >> 1; } std::string::append(this, v5, v6); if ( (__s[0] & 1) != 0 ) operator delete(__p); for ( i = 1; i < (int)sub_1007FEF90(a2); ++i ) { std::string::append(this, ", "); v8 = sub_1007FEFE0(a2, i); if ( (*(_BYTE *)(v8 + 320) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(v8 + 336), *(_QWORD *)(v8 + 328)); } else { v9 = v8 + 320; __p = *(void **)(v9 + 16); *(_OWORD *)__s = *(_OWORD *)v9; } if ( (__s[0] & 1) != 0 ) { v10 = (const std::string::value_type *)__p; v11 = *(_QWORD *)&__s[8]; } else { v11 = (unsigned __int8)__s[0] >> 1; v10 = &__s[1]; } std::string::append(this, v10, v11); if ( (__s[0] & 1) != 0 ) operator delete(__p); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source