{"type": "func", "start": 6443681196, "end": 6443681359, "name": "unknown_libname_38", "pseudocode": "// \n// unknown_libname_38 from 0x18012c5ac to 0x18012c64f (163 bytes)\n// \n// 2 xrefs:\n// > __crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::stream_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::stream_output_adapter<wchar_t>>>::process @ 0x18012ca19\n// > <???> @ 0x180202be8\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_38(__int64 a1, int *a2)\n{\n  int *v2; // rbx\n  int v5; // esi\n  __int64 v6; // rcx\n  int *v7; // rax\n  char result; // al\n  wchar_t *EndPtr; // [rsp+30h] [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 = *(_QWORD *)(a1 + 24);\n  EndPtr = nullptr;\n  *a2 = wcstol((const wchar_t *)(v6 - 2), &EndPtr, 10);\n  v7 = *(int **)(a1 + 16);\n  if ( !v7 )\n  {\n    v7 = errno();\n    *(_QWORD *)(a1 + 16) = v7;\n  }\n  if ( *v7 == 34 || (unsigned __int64)EndPtr < *(_QWORD *)(a1 + 24) )\n  {\n    result = 0;\n  }\n  else\n  {\n    *(_QWORD *)(a1 + 24) = EndPtr;\n    result = 1;\n  }\n  if ( !*v2 )\n  {\n    if ( v5 )\n      *v2 = v5;\n  }\n  return result;\n}", "assembly": "; \n; unknown_libname_38 from 0x18012c5ac to 0x18012c64f (163 bytes)\n; \n; 2 xrefs:\n; > __crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::stream_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::stream_output_adapter<wchar_t>>>::process @ 0x18012ca19\n; > <???> @ 0x180202be8\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, 0x18012c5ac\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18012c5b1\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x18012c5b6\npush    r14                                                            ; +0xf, 0x18012c5bb\nsub     rsp, 20h                                                       ; +0x11, 0x18012c5bd\nmov     rbx, [rcx+10h]                                                 ; +0x15, 0x18012c5c1\nmov     r14, rdx                                                       ; +0x19, 0x18012c5c5\nmov     rdi, rcx                                                       ; +0x1c, 0x18012c5c8\ntest    rbx, rbx                                                       ; +0x1f, 0x18012c5cb\njnz     short loc_18012C5DC                                            ; +0x22, 0x18012c5ce\ncall    _errno                                                         ; +0x24, 0x18012c5d0\nmov     rbx, rax                                                       ; +0x29, 0x18012c5d5\nmov     [rdi+10h], rax                                                 ; +0x2c, 0x18012c5d8\nmov     esi, [rbx]                                                     ; +0x30, 0x18012c5dc\nlea     rdx, [rsp+28h+EndPtr]; EndPtr                                  ; +0x32, 0x18012c5de\nand     dword ptr [rbx], 0                                             ; +0x37, 0x18012c5e3\nmov     r8d, 0Ah; Radix                                                ; +0x3a, 0x18012c5e6\nmov     rcx, [rdi+18h]                                                 ; +0x40, 0x18012c5ec\nand     [rsp+28h+EndPtr], 0                                            ; +0x44, 0x18012c5f0\nsub     rcx, 2; String                                                 ; +0x4a, 0x18012c5f6\ncall    wcstol                                                         ; +0x4e, 0x18012c5fa\nmov     [r14], eax                                                     ; +0x53, 0x18012c5ff\nmov     rax, [rdi+10h]                                                 ; +0x56, 0x18012c602\ntest    rax, rax                                                       ; +0x5a, 0x18012c606\njnz     short loc_18012C614                                            ; +0x5d, 0x18012c609\ncall    _errno                                                         ; +0x5f, 0x18012c60b\nmov     [rdi+10h], rax                                                 ; +0x64, 0x18012c610\ncmp     dword ptr [rax], 22h ; '\"'                                     ; +0x68, 0x18012c614\njz      short loc_18012C62C                                            ; +0x6b, 0x18012c617\nmov     rax, [rsp+28h+EndPtr]                                          ; +0x6d, 0x18012c619\ncmp     rax, [rdi+18h]                                                 ; +0x72, 0x18012c61e\njb      short loc_18012C62C                                            ; +0x76, 0x18012c622\nmov     [rdi+18h], rax                                                 ; +0x78, 0x18012c624\nmov     al, 1                                                          ; +0x7c, 0x18012c628\njmp     short loc_18012C62E                                            ; +0x7e, 0x18012c62a\nxor     al, al                                                         ; +0x80, 0x18012c62c\ncmp     dword ptr [rbx], 0                                             ; +0x82, 0x18012c62e\njnz     short loc_18012C639                                            ; +0x85, 0x18012c631\ntest    esi, esi                                                       ; +0x87, 0x18012c633\njz      short loc_18012C639                                            ; +0x89, 0x18012c635\nmov     [rbx], esi                                                     ; +0x8b, 0x18012c637\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8d, 0x18012c639\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x92, 0x18012c63e\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x97, 0x18012c643\nadd     rsp, 20h                                                       ; +0x9c, 0x18012c648\npop     r14                                                            ; +0xa0, 0x18012c64c\nretn                                                                   ; +0xa2, 0x18012c64e", "xrefs": ["__crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::stream_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::stream_output_adapter<wchar_t>>>::process @ 0x18012ca19", "<???> @ 0x180202be8"], "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"}