{"type": "func", "start": 6443681032, "end": 6443681193, "name": "unknown_libname_37", "pseudocode": "// \n// unknown_libname_37 from 0x18012c508 to 0x18012c5a9 (161 bytes)\n// \n// 2 xrefs:\n// > __crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter<char>,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter<char>>>::process @ 0x18012c7fd\n// > <???> @ 0x180202bdc\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 10:54:57 +0000\n// \n\n// Microsoft VisualC 64bit universal runtime\nchar __fastcall unknown_libname_37(__int64 a1, int *a2)\n{\n  int *v2; // rbx\n  int v5; // ebp\n  char v6; // si\n  __int64 v7; // rcx\n  int *v8; // rax\n  char *EndPtr; // [rsp+40h] [rbp+8h] BYREF\n\n  v2 = *(int **)(a1 + 16);\n  if ( !v2 )\n  {\n    v2 = errno();\n    *(_QWORD *)(a1 + 16) = v2;\n  }\n  v5 = *v2;\n  *v2 = 0;\n  v6 = 1;\n  v7 = *(_QWORD *)(a1 + 24);\n  EndPtr = nullptr;\n  *a2 = strtol((const char *)(v7 - 1), &EndPtr, 10);\n  v8 = *(int **)(a1 + 16);\n  if ( !v8 )\n  {\n    v8 = errno();\n    *(_QWORD *)(a1 + 16) = v8;\n  }\n  if ( *v8 == 34 || (unsigned __int64)EndPtr < *(_QWORD *)(a1 + 24) )\n    v6 = 0;\n  else\n    *(_QWORD *)(a1 + 24) = EndPtr;\n  if ( !*v2 && v5 )\n    *v2 = v5;\n  return v6;\n}", "assembly": "; \n; unknown_libname_37 from 0x18012c508 to 0x18012c5a9 (161 bytes)\n; \n; 2 xrefs:\n; > __crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter<char>,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter<char>>>::process @ 0x18012c7fd\n; > <???> @ 0x180202bdc\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 10:54:57 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18012c508\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18012c50d\npush    rsi                                                            ; +0xa, 0x18012c512\npush    rdi                                                            ; +0xb, 0x18012c513\npush    r14                                                            ; +0xc, 0x18012c514\nsub     rsp, 20h                                                       ; +0xe, 0x18012c516\nmov     rbx, [rcx+10h]                                                 ; +0x12, 0x18012c51a\nmov     r14, rdx                                                       ; +0x16, 0x18012c51e\nmov     rdi, rcx                                                       ; +0x19, 0x18012c521\ntest    rbx, rbx                                                       ; +0x1c, 0x18012c524\njnz     short loc_18012C535                                            ; +0x1f, 0x18012c527\ncall    _errno                                                         ; +0x21, 0x18012c529\nmov     rbx, rax                                                       ; +0x26, 0x18012c52e\nmov     [rdi+10h], rax                                                 ; +0x29, 0x18012c531\nmov     ebp, [rbx]                                                     ; +0x2d, 0x18012c535\nlea     rdx, [rsp+38h+EndPtr]; EndPtr                                  ; +0x2f, 0x18012c537\nand     dword ptr [rbx], 0                                             ; +0x34, 0x18012c53c\nmov     esi, 1                                                         ; +0x37, 0x18012c53f\nmov     rcx, [rdi+18h]                                                 ; +0x3c, 0x18012c544\nand     [rsp+38h+EndPtr], 0                                            ; +0x40, 0x18012c548\nsub     rcx, rsi; String                                               ; +0x46, 0x18012c54e\nlea     r8d, [rsi+9]; Radix                                            ; +0x49, 0x18012c551\ncall    strtol                                                         ; +0x4d, 0x18012c555\nmov     [r14], eax                                                     ; +0x52, 0x18012c55a\nmov     rax, [rdi+10h]                                                 ; +0x55, 0x18012c55d\ntest    rax, rax                                                       ; +0x59, 0x18012c561\njnz     short loc_18012C56F                                            ; +0x5c, 0x18012c564\ncall    _errno                                                         ; +0x5e, 0x18012c566\nmov     [rdi+10h], rax                                                 ; +0x63, 0x18012c56b\ncmp     dword ptr [rax], 22h ; '\"'                                     ; +0x67, 0x18012c56f\njz      short loc_18012C585                                            ; +0x6a, 0x18012c572\nmov     rax, [rsp+38h+EndPtr]                                          ; +0x6c, 0x18012c574\ncmp     rax, [rdi+18h]                                                 ; +0x71, 0x18012c579\njb      short loc_18012C585                                            ; +0x75, 0x18012c57d\nmov     [rdi+18h], rax                                                 ; +0x77, 0x18012c57f\njmp     short loc_18012C588                                            ; +0x7b, 0x18012c583\nxor     sil, sil                                                       ; +0x7d, 0x18012c585\ncmp     dword ptr [rbx], 0                                             ; +0x80, 0x18012c588\njnz     short loc_18012C593                                            ; +0x83, 0x18012c58b\ntest    ebp, ebp                                                       ; +0x85, 0x18012c58d\njz      short loc_18012C593                                            ; +0x87, 0x18012c58f\nmov     [rbx], ebp                                                     ; +0x89, 0x18012c591\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x8b, 0x18012c593\nmov     al, sil                                                        ; +0x90, 0x18012c598\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x93, 0x18012c59b\nadd     rsp, 20h                                                       ; +0x98, 0x18012c5a0\npop     r14                                                            ; +0x9c, 0x18012c5a4\npop     rdi                                                            ; +0x9e, 0x18012c5a6\npop     rsi                                                            ; +0x9f, 0x18012c5a7\nretn                                                                   ; +0xa0, 0x18012c5a8", "xrefs": ["__crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter<char>,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter<char>>>::process @ 0x18012c7fd", "<???> @ 0x180202bdc"], "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"}