{"type": "func", "start": 6443681360, "end": 6443681523, "name": "unknown_libname_39", "pseudocode": "// \n// unknown_libname_39 from 0x18012c650 to 0x18012c6f3 (163 bytes)\n// \n// 2 xrefs:\n// > __crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>>>::process @ 0x18012cc8e\n// > <???> @ 0x180202bf4\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// Microsoft VisualC 64bit universal runtime\nchar __fastcall unknown_libname_39(__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_39 from 0x18012c650 to 0x18012c6f3 (163 bytes)\n; \n; 2 xrefs:\n; > __crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>>>::process @ 0x18012cc8e\n; > <???> @ 0x180202bf4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18012c650\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18012c655\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x18012c65a\npush    r14                                                            ; +0xf, 0x18012c65f\nsub     rsp, 20h                                                       ; +0x11, 0x18012c661\nmov     rbx, [rcx+10h]                                                 ; +0x15, 0x18012c665\nmov     r14, rdx                                                       ; +0x19, 0x18012c669\nmov     rdi, rcx                                                       ; +0x1c, 0x18012c66c\ntest    rbx, rbx                                                       ; +0x1f, 0x18012c66f\njnz     short loc_18012C680                                            ; +0x22, 0x18012c672\ncall    _errno                                                         ; +0x24, 0x18012c674\nmov     rbx, rax                                                       ; +0x29, 0x18012c679\nmov     [rdi+10h], rax                                                 ; +0x2c, 0x18012c67c\nmov     esi, [rbx]                                                     ; +0x30, 0x18012c680\nlea     rdx, [rsp+28h+EndPtr]; EndPtr                                  ; +0x32, 0x18012c682\nand     dword ptr [rbx], 0                                             ; +0x37, 0x18012c687\nmov     r8d, 0Ah; Radix                                                ; +0x3a, 0x18012c68a\nmov     rcx, [rdi+18h]                                                 ; +0x40, 0x18012c690\nand     [rsp+28h+EndPtr], 0                                            ; +0x44, 0x18012c694\nsub     rcx, 2; String                                                 ; +0x4a, 0x18012c69a\ncall    wcstol                                                         ; +0x4e, 0x18012c69e\nmov     [r14], eax                                                     ; +0x53, 0x18012c6a3\nmov     rax, [rdi+10h]                                                 ; +0x56, 0x18012c6a6\ntest    rax, rax                                                       ; +0x5a, 0x18012c6aa\njnz     short loc_18012C6B8                                            ; +0x5d, 0x18012c6ad\ncall    _errno                                                         ; +0x5f, 0x18012c6af\nmov     [rdi+10h], rax                                                 ; +0x64, 0x18012c6b4\ncmp     dword ptr [rax], 22h ; '\"'                                     ; +0x68, 0x18012c6b8\njz      short loc_18012C6D0                                            ; +0x6b, 0x18012c6bb\nmov     rax, [rsp+28h+EndPtr]                                          ; +0x6d, 0x18012c6bd\ncmp     rax, [rdi+18h]                                                 ; +0x72, 0x18012c6c2\njb      short loc_18012C6D0                                            ; +0x76, 0x18012c6c6\nmov     [rdi+18h], rax                                                 ; +0x78, 0x18012c6c8\nmov     al, 1                                                          ; +0x7c, 0x18012c6cc\njmp     short loc_18012C6D2                                            ; +0x7e, 0x18012c6ce\nxor     al, al                                                         ; +0x80, 0x18012c6d0\ncmp     dword ptr [rbx], 0                                             ; +0x82, 0x18012c6d2\njnz     short loc_18012C6DD                                            ; +0x85, 0x18012c6d5\ntest    esi, esi                                                       ; +0x87, 0x18012c6d7\njz      short loc_18012C6DD                                            ; +0x89, 0x18012c6d9\nmov     [rbx], esi                                                     ; +0x8b, 0x18012c6db\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8d, 0x18012c6dd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x92, 0x18012c6e2\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x97, 0x18012c6e7\nadd     rsp, 20h                                                       ; +0x9c, 0x18012c6ec\npop     r14                                                            ; +0xa0, 0x18012c6f0\nretn                                                                   ; +0xa2, 0x18012c6f2", "xrefs": ["__crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>>>::process @ 0x18012cc8e", "<???> @ 0x180202bf4"], "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"}