// // sub_180040480 from 0x180040480 to 0x1800404f2 (114 bytes) // // 3 xrefs: // > fmt::internal::PrintfParser::ParseHeader @ 0x18004373a // > fmt::internal::PrintfParser::ParseHeader @ 0x1800437df // > @ 0x1801bb464 // // 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:21:38 +0000 // __int64 __fastcall sub_180040480(_QWORD *a1, _QWORD *a2) { unsigned int v2; // r11d int v3; // eax _WORD *v4; // r9 unsigned int v5; // r10d __int64 result; // rax v2 = 0; do { v3 = *(unsigned __int16 *)*a1; v4 = (_WORD *)(*a1 + 2LL); *a1 = v4; v5 = v3 + 2 * (v2 + 4 * (v2 - 6)); LODWORD(result) = -1; if ( v5 >= v2 ) LODWORD(result) = v5; v2 = result; } while ( *v4 >= 0x30u && *v4 <= 0x39u ); if ( (unsigned int)result <= 0x7FFFFFFF ) return (unsigned int)result; if ( !*a2 ) *a2 = "number is too big in format"; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source