{"type": "func", "start": 6443714740, "end": 6443714854, "name": "unknown_libname_66", "pseudocode": "// \n// unknown_libname_66 from 0x1801348b4 to 0x180134926 (114 bytes)\n// \n// 3 xrefs:\n// > _wfullpath @ 0x180134c4f\n// > common_getdcwd<wchar_t> @ 0x18013c01e\n// > <???> @ 0x18020329c\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:55:00 +0000\n// \n\n// Microsoft VisualC 64bit universal runtime\n__int64 __fastcall unknown_libname_66(const WCHAR *a1, __int64 a2)\n{\n  DWORD FullPathNameW; // eax\n  unsigned int v4; // ebx\n  DWORD LastError; // eax\n\n  FullPathNameW = GetFullPathNameW(a1, *(_DWORD *)(a2 + 24), *(LPWSTR *)(a2 + 16), nullptr);\n  v4 = 0;\n  if ( FullPathNameW )\n  {\n    if ( (unsigned __int64)FullPathNameW > *(_QWORD *)(a2 + 24) )\n    {\n      if ( *(_BYTE *)(a2 + 40) )\n        *(_BYTE *)(a2 + 40) = 0;\n      *errno() = 34;\n      *(_BYTE *)(a2 + 40) = 0;\n      *(_QWORD *)(a2 + 24) = 0;\n      return 34;\n    }\n    else\n    {\n      *(_QWORD *)(a2 + 32) = FullPathNameW;\n    }\n  }\n  else\n  {\n    LastError = GetLastError();\n    _acrt_errno_map_os_error(LastError);\n    return (unsigned int)*errno();\n  }\n  return v4;\n}", "assembly": "; \n; unknown_libname_66 from 0x1801348b4 to 0x180134926 (114 bytes)\n; \n; 3 xrefs:\n; > _wfullpath @ 0x180134c4f\n; > common_getdcwd<wchar_t> @ 0x18013c01e\n; > <???> @ 0x18020329c\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:55:00 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1801348b4\npush    rdi                                                            ; +0x5, 0x1801348b9\nsub     rsp, 20h                                                       ; +0x6, 0x1801348ba\nmov     r8, [rdx+10h]; lpBuffer                                        ; +0xa, 0x1801348be\nmov     rdi, rdx                                                       ; +0xe, 0x1801348c2\nmov     edx, [rdx+18h]; nBufferLength                                  ; +0x11, 0x1801348c5\nxor     r9d, r9d; lpFilePart                                           ; +0x14, 0x1801348c8\ncall    cs:GetFullPathNameW                                            ; +0x17, 0x1801348cb\nmov     eax, eax                                                       ; +0x1d, 0x1801348d1\nxor     ebx, ebx                                                       ; +0x1f, 0x1801348d3\ntest    rax, rax                                                       ; +0x21, 0x1801348d5\njnz     short loc_1801348F0                                            ; +0x24, 0x1801348d8\ncall    cs:GetLastError                                                ; +0x26, 0x1801348da\nmov     ecx, eax                                                       ; +0x2c, 0x1801348e0\ncall    __acrt_errno_map_os_error                                      ; +0x2e, 0x1801348e2\ncall    _errno                                                         ; +0x33, 0x1801348e7\nmov     ebx, [rax]                                                     ; +0x38, 0x1801348ec\njmp     short loc_180134919                                            ; +0x3a, 0x1801348ee\ncmp     rax, [rdi+18h]                                                 ; +0x3c, 0x1801348f0\nja      short loc_1801348FC                                            ; +0x40, 0x1801348f4\nmov     [rdi+20h], rax                                                 ; +0x42, 0x1801348f6\njmp     short loc_180134919                                            ; +0x46, 0x1801348fa\ncmp     [rdi+28h], bl                                                  ; +0x48, 0x1801348fc\njz      short loc_180134904                                            ; +0x4b, 0x1801348ff\nmov     [rdi+28h], bl                                                  ; +0x4d, 0x180134901\ncall    _errno                                                         ; +0x50, 0x180134904\nmov     ecx, 22h ; '\"'                                                 ; +0x55, 0x180134909\nmov     [rax], ecx                                                     ; +0x5a, 0x18013490e\nmov     [rdi+28h], bl                                                  ; +0x5c, 0x180134910\nmov     [rdi+18h], rbx                                                 ; +0x5f, 0x180134913\nmov     ebx, ecx                                                       ; +0x63, 0x180134917\nmov     eax, ebx                                                       ; +0x65, 0x180134919\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x18013491b\nadd     rsp, 20h                                                       ; +0x6c, 0x180134920\npop     rdi                                                            ; +0x70, 0x180134924\nretn                                                                   ; +0x71, 0x180134925", "xrefs": ["_wfullpath @ 0x180134c4f", "common_getdcwd<wchar_t> @ 0x18013c01e", "<???> @ 0x18020329c"], "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"}