// // sub_10099B890 from 0x10099b890 to 0x10099b980 (240 bytes) // // 2 xrefs: // > sub_100998310 @ 0x10099a081 // > sub_100998310 @ 0x10099a100 // // 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:39:14 +0000 // void __fastcall sub_10099B890(__int64 a1, std::string *a2, float a3, double a4) { unsigned int v4; // eax __int64 size; // rax __int64 v6; // rax float v7; // xmm1_4 unsigned __int64 v8; // rax std::string::size_type v9; // rdx std::string::pointer data; // rsi std::string __str; // [rsp+18h] [rbp-28h] BYREF (*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 160LL))(a1, a4); (*(void (__fastcall **)(std::string *, __int64))(*(_QWORD *)a1 + 336LL))(&__str, a1); if ( a3 >= *(float *)&__str.__r_.__value_.__l.0 ) return; v4 = (unsigned int)a2->__r_.__value_.__l.0; if ( (v4 & 1) == 0 ) { LODWORD(size) = v4 >> 1; goto LABEL_6; } size = a2->__r_.__value_.__l.__size_; if ( size >= 0 ) { LABEL_6: v7 = (float)(int)size; goto LABEL_7; } v6 = (a2->__r_.__value_.__l.__size_ >> 1) | a2->__r_.__value_.__l.__size_ & 1; v7 = (float)(int)v6 + (float)(int)v6; LABEL_7: v8 = (unsigned int)(int)(float)((float)(a3 / *(float *)&__str.__r_.__value_.__l.0) * v7); v9 = v8 - 4; if ( v8 < 5 ) v9 = (unsigned int)(int)(float)((float)(a3 / *(float *)&__str.__r_.__value_.__l.0) * v7); sub_1004EE280(&__str, a2, v9); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) data = __str.__r_.__value_.__l.__data_; else data = __str.__r_.__value_.__s.__data_; (*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)a1 + 928LL))(a1, data); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source