{"type": "func", "start": 6442714128, "end": 6442714228, "name": "sub_180040410", "pseudocode": "// \n// sub_180040410 from 0x180040410 to 0x180040474 (100 bytes)\n// \n// 2 xrefs:\n// > fmt::internal::PrintfParser<char>::ParseHeader @ 0x180043558\n// > fmt::internal::PrintfParser<char>::ParseHeader @ 0x1800435e3\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:38 +0000\n// \n\n__int64 __fastcall sub_180040410(char **a1, _QWORD *a2)\n{\n  unsigned int v2; // r11d\n  int v3; // eax\n  char *v4; // r9\n  unsigned int v5; // r10d\n  __int64 result; // rax\n\n  v2 = 0;\n  do\n  {\n    v3 = **a1;\n    v4 = *a1 + 1;\n    *a1 = v4;\n    v5 = v3 + 2 * (v2 + 4 * (v2 - 6));\n    LODWORD(result) = -1;\n    if ( v5 >= v2 )\n      LODWORD(result) = v5;\n    v2 = result;\n  }\n  while ( *v4 >= 48 && *v4 <= 57 );\n  if ( (unsigned int)result <= 0x7FFFFFFF )\n    return (unsigned int)result;\n  if ( !*a2 )\n    *a2 = \"number is too big in format\";\n  return 0;\n}", "assembly": "; \n; sub_180040410 from 0x180040410 to 0x180040474 (100 bytes)\n; \n; 2 xrefs:\n; > fmt::internal::PrintfParser<char>::ParseHeader @ 0x180043558\n; > fmt::internal::PrintfParser<char>::ParseHeader @ 0x1800435e3\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:38 +0000\n; \nxor     r11d, r11d                                                     ; +0x0, 0x180040410\nnop     dword ptr [rax+00h]                                            ; +0x3, 0x180040413\nnop     word ptr [rax+rax+00000000h]                                   ; +0x7, 0x180040417\nmov     r9, [rcx]                                                      ; +0x10, 0x180040420\nlea     r10d, [r11-6]                                                  ; +0x13, 0x180040423\nlea     r10d, [r11+r10*4]                                              ; +0x17, 0x180040427\nmovsx   eax, byte ptr [r9]                                             ; +0x1b, 0x18004042b\ninc     r9                                                             ; +0x1f, 0x18004042f\nmov     [rcx], r9                                                      ; +0x22, 0x180040432\nlea     r10d, [rax+r10*2]                                              ; +0x25, 0x180040435\nmov     eax, 0FFFFFFFFh                                                ; +0x29, 0x180040439\ncmp     r10d, r11d                                                     ; +0x2e, 0x18004043e\ncmovnb  eax, r10d                                                      ; +0x31, 0x180040441\nmov     r11d, eax                                                      ; +0x35, 0x180040445\nmovzx   eax, byte ptr [r9]                                             ; +0x38, 0x180040448\ncmp     al, 30h ; '0'                                                  ; +0x3c, 0x18004044c\njl      short loc_180040454                                            ; +0x3e, 0x18004044e\ncmp     al, 39h ; '9'                                                  ; +0x40, 0x180040450\njle     short loc_180040420                                            ; +0x42, 0x180040452\ncmp     r11d, 7FFFFFFFh                                                ; +0x44, 0x180040454\njbe     short loc_180040470                                            ; +0x4b, 0x18004045b\ncmp     qword ptr [rdx], 0                                             ; +0x4d, 0x18004045d\njnz     short loc_18004046D                                            ; +0x51, 0x180040461\nlea     rax, aNumberIsTooBig; \"number is too big in format\"            ; +0x53, 0x180040463\nmov     [rdx], rax                                                     ; +0x5a, 0x18004046a\nxor     eax, eax                                                       ; +0x5d, 0x18004046d\nretn                                                                   ; +0x5f, 0x18004046f\nmov     eax, r11d                                                      ; +0x60, 0x180040470\nretn                                                                   ; +0x63, 0x180040473", "xrefs": ["fmt::internal::PrintfParser<char>::ParseHeader @ 0x180043558", "fmt::internal::PrintfParser<char>::ParseHeader @ 0x1800435e3"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}