// // sub_18000E0B0 from 0x18000e0b0 to 0x18000e3f8 (840 bytes) // // 2 xrefs: // > sub_18000E400 @ 0x18000e79e // > @ 0x1801adf48 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 void __fastcall sub_18000E0B0(_QWORD *a1, char *a2, __int64 *a3) { __int64 *v3; // r13 int v6; // esi size_t v7; // rdi _QWORD *v8; // rcx unsigned __int64 v9; // rdx unsigned __int64 v10; // r14 unsigned __int64 v11; // rax int v12; // ebx char *v13; // r13 char *v14; // rbx size_t v15; // r8 unsigned __int64 v16; // r14 _QWORD *v17; // rax _OWORD *v18; // rdx unsigned __int64 v19; // rdx void *v20; // rcx __int64 v21; // rsi __int64 v22; // rax _QWORD *v23; // rax _OWORD *v24; // rdx unsigned __int64 v25; // rdx void *v26; // rcx unsigned __int64 v27; // rdx _QWORD *v28; // rcx __int64 v29; // [rsp+20h] [rbp-78h] void *Block[2]; // [rsp+38h] [rbp-60h] BYREF __int128 v32; // [rsp+48h] [rbp-50h] v3 = a3; v6 = 0; while ( 1 ) { v7 = -1; do ++v7; while ( a2[v7] ); v8 = a1; LODWORD(v29) = (_DWORD)a1; v9 = a1[3]; if ( v9 > 0xF ) { v8 = (_QWORD *)*a1; v29 = *a1; } v10 = a1[2]; if ( v7 > v10 ) goto LABEL_14; v11 = v10 - v7; if ( v6 > v10 - v7 ) goto LABEL_14; if ( !v7 ) { v12 = v6; goto LABEL_15; } v13 = (char *)v8 + v11; v14 = (char *)memchr((char *)v8 + v6, *a2, v11 + 1 - v6); if ( !v14 ) { LABEL_13: v9 = a1[3]; v3 = a3; LABEL_14: v12 = -1; goto LABEL_15; } while ( memcmp(v14, a2, v7) ) { v14 = (char *)memchr(v14 + 1, *a2, v13 - v14); if ( !v14 ) goto LABEL_13; } v12 = (_DWORD)v14 - v29; v9 = a1[3]; v3 = a3; LABEL_15: v32 = 0u; *(_OWORD *)Block = 0; if ( v12 == -1 ) break; if ( v10 < v6 ) goto LABEL_52; v15 = v12 - v6; v16 = v10 - v6; if ( v16 < v15 ) v15 = v16; v17 = a1; if ( v9 > 0xF ) v17 = (_QWORD *)*a1; sub_18000CE60(Block, (char *)v17 + v6, v15); v18 = (_OWORD *)v3[1]; if ( v18 == (_OWORD *)v3[2] ) { sub_18000D000(v3, (__int64)v18, (__int64)Block); v19 = *((_QWORD *)&v32 + 1); } else { *v18 = *(_OWORD *)Block; v18[1] = v32; v19 = 15; LOBYTE(Block[0]) = 0; v3[1] += 32; } if ( v19 <= 0xF ) { v22 = -1; do ++v22; while ( a2[v22] ); v6 = v12 + v22; } else { v20 = Block[0]; if ( v19 + 1 >= 0x1000 ) { v20 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v20 - 8) > 0x1F ) goto LABEL_43; } j_j_free_0(v20); v21 = -1; do ++v21; while ( a2[v21] ); v6 = v12 + v21; } } if ( v10 < v6 ) LABEL_52: std::vector::_Xlen(); v23 = a1; if ( v9 > 0xF ) v23 = (_QWORD *)*a1; sub_18000CE60(Block, (char *)v23 + v6, v10 - v6); v24 = (_OWORD *)v3[1]; if ( v24 == (_OWORD *)v3[2] ) { sub_18000D000(v3, (__int64)v24, (__int64)Block); v25 = *((_QWORD *)&v32 + 1); } else { *v24 = *(_OWORD *)Block; v24[1] = v32; v25 = 15; LOBYTE(Block[0]) = 0; v3[1] += 32; } if ( v25 > 0xF ) { v26 = Block[0]; if ( v25 + 1 >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) LABEL_43: invalid_parameter_noinfo_noreturn(); } j_j_free_0(v26); } v27 = a1[3]; if ( v27 > 0xF ) { v28 = (_QWORD *)*a1; if ( v27 + 1 >= 0x1000 ) { if ( (unsigned __int64)v28 - *(v28 - 1) - 8 > 0x1F ) invalid_parameter_noinfo_noreturn(); v28 = (_QWORD *)*(v28 - 1); } j_j_free_0(v28); } a1[2] = 0; a1[3] = 15; *(_BYTE *)a1 = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source