// // sub_1405225C0 from 0x1405225c0 to 0x140522848 (648 bytes) // // 3 xrefs: // > sub_14052EE30 @ 0x14052ef60 // > sub_140543730 @ 0x140544826 // > @ 0x14092b49c // // 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 11:33:38 +0000 // // Hidden C++ exception states: #wind=3 __int64 __fastcall sub_1405225C0(__int64 a1, __int64 a2) { __int64 **v4; // rsi __int64 *i; // rbx char v6; // di __int16 *v7; // rax _BYTE *v8; // rax size_t v9; // r8 void *v10; // rcx __int128 v12; // [rsp+30h] [rbp-D0h] BYREF __int128 v13; // [rsp+40h] [rbp-C0h] BYREF _BYTE v14[16]; // [rsp+58h] [rbp-A8h] BYREF _BYTE v15[16]; // [rsp+68h] [rbp-98h] BYREF void *Block[2]; // [rsp+78h] [rbp-88h] BYREF __m128i si128; // [rsp+88h] [rbp-78h] _BYTE v18[528]; // [rsp+A0h] [rbp-60h] BYREF _OWORD v19[2]; // [rsp+2B0h] [rbp+1B0h] BYREF fmt::BasicWriter::BasicWriter(v18); v19[0] = 0; v19[1] = _mm_load_si128((const __m128i *)&xmmword_140836520); LOWORD(v19[0]) = 124; fmt::BasicWriter::operator<<(v18, *(unsigned int *)(a2 + 16)); v13 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(&v12, v19); fmt::BasicWriter::operator<<(v18, &v13); v4 = *(__int64 ***)(a2 + 8); for ( i = *v4; i != (__int64 *)v4; i = (__int64 *)*i ) { v6 = *((_BYTE *)i + 20); fmt::BasicWriter::operator<<(v18, *((unsigned int *)i + 4)); v12 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v15, v19); fmt::BasicWriter::operator<<(v18, &v12); v7 = (__int16 *)"0"; if ( v6 ) v7 = &word_14070D060; v13 = (unsigned __int64)v7; fmt::BasicWriter::operator<<(v18, &v13); v12 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v14, v19); fmt::BasicWriter::operator<<(v18, &v12); } v8 = (_BYTE *)fmt::BasicWriter::c_str(v18); *(_OWORD *)Block = 0; si128 = 0; v9 = -1; do ++v9; while ( v8[v9] ); sub_14003D230(Block, v8, v9); v12 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v14, Block); fmt::BasicWriter::operator<<(a1, &v12); v12 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v14, a1 + 528); fmt::BasicWriter::operator<<(a1, &v12); if ( si128.m128i_i64[1] > 0xFuLL ) { v10 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(Block[0]) = 0; sub_14003D310((__int64)v19); return fmt::BasicWriter::~BasicWriter(v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source