{"type": "func", "start": 6442712432, "end": 6442712532, "name": "sub_18003FD70", "pseudocode": "// \n// sub_18003FD70 from 0x18003fd70 to 0x18003fdd4 (100 bytes)\n// \n// 2 xrefs:\n// > fmt::internal::PrintfParser<char>::ParseHeader @ 0x180042f58\n// > fmt::internal::PrintfParser<char>::ParseHeader @ 0x180042fe3\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_18003FD70(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_18003FD70 from 0x18003fd70 to 0x18003fdd4 (100 bytes)\n; \n; 2 xrefs:\n; > fmt::internal::PrintfParser<char>::ParseHeader @ 0x180042f58\n; > fmt::internal::PrintfParser<char>::ParseHeader @ 0x180042fe3\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nxor     r11d, r11d                                                     ; +0x0, 0x18003fd70\nnop     dword ptr [rax+00h]                                            ; +0x3, 0x18003fd73\nnop     word ptr [rax+rax+00000000h]                                   ; +0x7, 0x18003fd77\nmov     r9, [rcx]                                                      ; +0x10, 0x18003fd80\nlea     r10d, [r11-6]                                                  ; +0x13, 0x18003fd83\nlea     r10d, [r11+r10*4]                                              ; +0x17, 0x18003fd87\nmovsx   eax, byte ptr [r9]                                             ; +0x1b, 0x18003fd8b\ninc     r9                                                             ; +0x1f, 0x18003fd8f\nmov     [rcx], r9                                                      ; +0x22, 0x18003fd92\nlea     r10d, [rax+r10*2]                                              ; +0x25, 0x18003fd95\nmov     eax, 0FFFFFFFFh                                                ; +0x29, 0x18003fd99\ncmp     r10d, r11d                                                     ; +0x2e, 0x18003fd9e\ncmovnb  eax, r10d                                                      ; +0x31, 0x18003fda1\nmov     r11d, eax                                                      ; +0x35, 0x18003fda5\nmovzx   eax, byte ptr [r9]                                             ; +0x38, 0x18003fda8\ncmp     al, 30h ; '0'                                                  ; +0x3c, 0x18003fdac\njl      short loc_18003FDB4                                            ; +0x3e, 0x18003fdae\ncmp     al, 39h ; '9'                                                  ; +0x40, 0x18003fdb0\njle     short loc_18003FD80                                            ; +0x42, 0x18003fdb2\ncmp     r11d, 7FFFFFFFh                                                ; +0x44, 0x18003fdb4\njbe     short loc_18003FDD0                                            ; +0x4b, 0x18003fdbb\ncmp     qword ptr [rdx], 0                                             ; +0x4d, 0x18003fdbd\njnz     short loc_18003FDCD                                            ; +0x51, 0x18003fdc1\nlea     rax, aNumberIsTooBig; \"number is too big in format\"            ; +0x53, 0x18003fdc3\nmov     [rdx], rax                                                     ; +0x5a, 0x18003fdca\nxor     eax, eax                                                       ; +0x5d, 0x18003fdcd\nretn                                                                   ; +0x5f, 0x18003fdcf\nmov     eax, r11d                                                      ; +0x60, 0x18003fdd0\nretn                                                                   ; +0x63, 0x18003fdd3", "xrefs": ["fmt::internal::PrintfParser<char>::ParseHeader @ 0x180042f58", "fmt::internal::PrintfParser<char>::ParseHeader @ 0x180042fe3"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}