// // sub_1405282D0 from 0x1405282d0 to 0x140528426 (342 bytes) // // 6 xrefs: // > sub_14054CC50 @ 0x14054cdd8 // > sub_14054D960 @ 0x14054dad7 // > sub_14054D960 @ 0x14054daed // > sub_14054D960 @ 0x14054dbb2 // > sub_14054D960 @ 0x14054dbbe // > @ 0x14092b64c // // 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:40 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall sub_1405282D0(__int64 *a1, unsigned __int64 *a2) { __int64 v3; // r10 __int64 v4; // r9 _QWORD *v5; // rdx size_t v6; // r8 int *v7; // rax int *v8; // rdi const char *v9; // rbx unsigned __int64 v10; // rax char *v11; // rcx char *EndPtr; // [rsp+30h] [rbp-38h] BYREF char *String[2]; // [rsp+38h] [rbp-30h] BYREF __int128 v14; // [rsp+48h] [rbp-20h] v3 = *a1; v4 = *((int *)a1 + 6); if ( (int)v4 < (int)((a1[1] - *a1) >> 5) ) { *((_DWORD *)a1 + 6) = v4 + 1; v5 = (_QWORD *)(v3 + 32 * v4); if ( v5[3] > 0xFu ) v5 = (_QWORD *)*v5; *(_OWORD *)String = 0; v14 = 0; v6 = -1; do ++v6; while ( *((_BYTE *)v5 + v6) ); sub_14003D230(String, v5, v6); v7 = errno(); v8 = v7; v9 = (const char *)String; if ( *((_QWORD *)&v14 + 1) > 0xFu ) v9 = String[0]; *v7 = 0; v10 = strtoull(v9, &EndPtr, 10); if ( v9 == EndPtr ) { std::_Xinvalid_argument("invalid stoull argument"); __debugbreak(); } if ( *v8 == 34 ) { std::_Xout_of_range("stoull argument out of range"); __debugbreak(); } *a2 = v10; if ( *((_QWORD *)&v14 + 1) > 0xFu ) { v11 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v14 + 1) + 1LL) >= 0x1000 ) { v11 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source