{"type": "func", "start": 6443202912, "end": 6443203490, "name": "sub_1800B7960", "pseudocode": "// \n// sub_1800B7960 from 0x1800b7960 to 0x1800b7ba2 (578 bytes)\n// \n// 6 xrefs:\n// > sub_1800E75B0 @ 0x1800e75b3\n// > <???> @ 0x18018985c\n// > <???> @ 0x18018986c\n// > <???> @ 0x180189880\n// > <???> @ 0x180189890\n// > <???> @ 0x1801fd1b8\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_1800B7960(__int64 a1)\n{\n  _DWORD *v2; // rdi\n  _BYTE *v3; // rax\n  void *v4; // rbx\n  unsigned int v5; // esi\n  _BYTE *v7; // rax\n  int v8; // esi\n  _BYTE v9[4096]; // [rsp+30h] [rbp-1018h] BYREF\n\n  if ( qword_1801EF280 )\n  {\n    sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)qword_1801EF280);\n    qword_1801EF280 = 0;\n  }\n  if ( qword_1801EF268 )\n  {\n    sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)qword_1801EF268);\n    qword_1801EF268 = 0;\n  }\n  if ( qword_1801EF278 )\n  {\n    sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)qword_1801EF278);\n    qword_1801EF278 = 0;\n  }\n  dword_1801EF270 = 0;\n  if ( !(unsigned int)sub_1800B7F50(a1) )\n    return 0;\n  v2 = (_DWORD *)sub_1800B7DF0(a1);\n  if ( !v2 )\n    return 38;\n  qword_1801EF280 = sub_1800B7DF0(a1);\n  if ( !qword_1801EF280 )\n    return 38;\n  v3 = (_BYTE *)sub_1800B80C0(v2, \"@\");\n  if ( !v3 )\n  {\n    v4 = v2;\nLABEL_17:\n    v7 = (_BYTE *)sub_1800B80C0(v4, \":\");\n    if ( v7 )\n    {\n      *v7 = 0;\n      v8 = unknown_libname_28(v7 + 1);\n    }\n    else\n    {\n      v8 = 80;\n    }\n    qword_1801EF268 = sub_1800B7DF0(v4);\n    if ( qword_1801EF268 )\n    {\n      dword_1801EF270 = v8;\n      sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);\n      return 0;\n    }\n    return 38;\n  }\n  *v3 = 0;\n  v4 = v3 + 1;\n  v5 = sub_1800B7430(v2, (__int64)v9, 4095);\n  if ( !v5 )\n  {\n    qword_1801EF278 = sub_1800B7DF0(v9);\n    if ( !qword_1801EF278 )\n      return 38;\n    goto LABEL_17;\n  }\n  sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v2);\n  return v5;\n}", "assembly": "; \n; sub_1800B7960 from 0x1800b7960 to 0x1800b7ba2 (578 bytes)\n; \n; 6 xrefs:\n; > sub_1800E75B0 @ 0x1800e75b3\n; > <???> @ 0x18018985c\n; > <???> @ 0x18018986c\n; > <???> @ 0x180189880\n; > <???> @ 0x180189890\n; > <???> @ 0x1801fd1b8\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_10], rbx                                              ; +0x0, 0x1800b7960\npush    rdi                                                            ; +0x5, 0x1800b7965\nmov     eax, 1040h                                                     ; +0x6, 0x1800b7966\ncall    __alloca_probe                                                 ; +0xb, 0x1800b796b\nsub     rsp, rax                                                       ; +0x10, 0x1800b7970\nmov     rax, cs:__security_cookie                                      ; +0x13, 0x1800b7973\nxor     rax, rsp                                                       ; +0x1a, 0x1800b797a\nmov     [rsp+1048h+var_18], rax                                        ; +0x1d, 0x1800b797d\nmov     rdx, cs:qword_1801EF280                                        ; +0x25, 0x1800b7985\nxor     edi, edi                                                       ; +0x2c, 0x1800b798c\nmov     rbx, rcx                                                       ; +0x2e, 0x1800b798e\ntest    rdx, rdx                                                       ; +0x31, 0x1800b7991\njz      short loc_1800B79C2                                            ; +0x34, 0x1800b7994\nmov     rcx, cs:off_1801AED20                                          ; +0x36, 0x1800b7996\nlea     r8, aCBuildagent1Wo_35; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x3d, 0x1800b799d\nmov     r9d, 0D7h                                                      ; +0x44, 0x1800b79a4\nmov     [rsp+1048h+var_1028], 1                                        ; +0x4a, 0x1800b79aa\nmov     rcx, [rcx+1A0h]                                                ; +0x4f, 0x1800b79af\ncall    sub_1800B6AA0                                                  ; +0x56, 0x1800b79b6\nmov     cs:qword_1801EF280, rdi                                        ; +0x5b, 0x1800b79bb\nmov     rdx, cs:qword_1801EF268                                        ; +0x62, 0x1800b79c2\ntest    rdx, rdx                                                       ; +0x69, 0x1800b79c9\njz      short loc_1800B79FA                                            ; +0x6c, 0x1800b79cc\nmov     rcx, cs:off_1801AED20                                          ; +0x6e, 0x1800b79ce\nlea     r8, aCBuildagent1Wo_35; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x75, 0x1800b79d5\nmov     r9d, 0DDh                                                      ; +0x7c, 0x1800b79dc\nmov     [rsp+1048h+var_1028], 1                                        ; +0x82, 0x1800b79e2\nmov     rcx, [rcx+1A0h]                                                ; +0x87, 0x1800b79e7\ncall    sub_1800B6AA0                                                  ; +0x8e, 0x1800b79ee\nmov     cs:qword_1801EF268, rdi                                        ; +0x93, 0x1800b79f3\nmov     rdx, cs:qword_1801EF278                                        ; +0x9a, 0x1800b79fa\ntest    rdx, rdx                                                       ; +0xa1, 0x1800b7a01\njz      short loc_1800B7A32                                            ; +0xa4, 0x1800b7a04\nmov     rcx, cs:off_1801AED20                                          ; +0xa6, 0x1800b7a06\nlea     r8, aCBuildagent1Wo_35; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xad, 0x1800b7a0d\nmov     r9d, 0E3h                                                      ; +0xb4, 0x1800b7a14\nmov     [rsp+1048h+var_1028], 1                                        ; +0xba, 0x1800b7a1a\nmov     rcx, [rcx+1A0h]                                                ; +0xbf, 0x1800b7a1f\ncall    sub_1800B6AA0                                                  ; +0xc6, 0x1800b7a26\nmov     cs:qword_1801EF278, rdi                                        ; +0xcb, 0x1800b7a2b\nmov     rcx, rbx                                                       ; +0xd2, 0x1800b7a32\nmov     cs:dword_1801EF270, edi                                        ; +0xd5, 0x1800b7a35\ncall    sub_1800B7F50                                                  ; +0xdb, 0x1800b7a3b\ntest    eax, eax                                                       ; +0xe0, 0x1800b7a40\njz      loc_1800B7B9B                                                  ; +0xe2, 0x1800b7a42\nmov     rcx, rbx                                                       ; +0xe8, 0x1800b7a48\nmov     [rsp+1048h+arg_8], rsi                                         ; +0xeb, 0x1800b7a4b\ncall    sub_1800B7DF0                                                  ; +0xf3, 0x1800b7a53\nmov     rdi, rax                                                       ; +0xf8, 0x1800b7a58\ntest    rax, rax                                                       ; +0xfb, 0x1800b7a5b\njz      loc_1800B7B1F                                                  ; +0xfe, 0x1800b7a5e\nmov     rcx, rbx                                                       ; +0x104, 0x1800b7a64\ncall    sub_1800B7DF0                                                  ; +0x107, 0x1800b7a67\nmov     cs:qword_1801EF280, rax                                        ; +0x10c, 0x1800b7a6c\ntest    rax, rax                                                       ; +0x113, 0x1800b7a73\njz      loc_1800B7B1F                                                  ; +0x116, 0x1800b7a76\nlea     rdx, asc_18016B978; \"@\"                                        ; +0x11c, 0x1800b7a7c\nmov     rcx, rdi; Buf1                                                 ; +0x123, 0x1800b7a83\ncall    sub_1800B80C0                                                  ; +0x126, 0x1800b7a86\nmov     rbx, rax                                                       ; +0x12b, 0x1800b7a8b\ntest    rax, rax                                                       ; +0x12e, 0x1800b7a8e\njz      loc_1800B7B26                                                  ; +0x131, 0x1800b7a91\nmov     r8d, 0FFFh                                                     ; +0x137, 0x1800b7a97\nmov     byte ptr [rax], 0                                              ; +0x13d, 0x1800b7a9d\nlea     rdx, [rsp+1048h+var_1018]                                      ; +0x140, 0x1800b7aa0\nmov     rcx, rdi                                                       ; +0x145, 0x1800b7aa5\ninc     rbx                                                            ; +0x148, 0x1800b7aa8\ncall    sub_1800B7430                                                  ; +0x14b, 0x1800b7aab\nmov     esi, eax                                                       ; +0x150, 0x1800b7ab0\ntest    eax, eax                                                       ; +0x152, 0x1800b7ab2\njz      short loc_1800B7B09                                            ; +0x154, 0x1800b7ab4\nmov     rcx, cs:off_1801AED20                                          ; +0x156, 0x1800b7ab6\nlea     r8, aCBuildagent1Wo_35; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x15d, 0x1800b7abd\nmov     r9d, 113h                                                      ; +0x164, 0x1800b7ac4\nmov     [rsp+1048h+var_1028], 1                                        ; +0x16a, 0x1800b7aca\nmov     rdx, rdi                                                       ; +0x16f, 0x1800b7acf\nmov     rcx, [rcx+1A0h]                                                ; +0x172, 0x1800b7ad2\ncall    sub_1800B6AA0                                                  ; +0x179, 0x1800b7ad9\nmov     eax, esi                                                       ; +0x17e, 0x1800b7ade\nmov     rsi, [rsp+1048h+arg_8]                                         ; +0x180, 0x1800b7ae0\nmov     rcx, [rsp+1048h+var_18]                                        ; +0x188, 0x1800b7ae8\nxor     rcx, rsp; StackCookie                                          ; +0x190, 0x1800b7af0\ncall    __security_check_cookie                                        ; +0x193, 0x1800b7af3\nmov     rbx, [rsp+1048h+arg_10]                                        ; +0x198, 0x1800b7af8\nadd     rsp, 1040h                                                     ; +0x1a0, 0x1800b7b00\npop     rdi                                                            ; +0x1a7, 0x1800b7b07\nretn                                                                   ; +0x1a8, 0x1800b7b08\nlea     rcx, [rsp+1048h+var_1018]                                      ; +0x1a9, 0x1800b7b09\ncall    sub_1800B7DF0                                                  ; +0x1ae, 0x1800b7b0e\nmov     cs:qword_1801EF278, rax                                        ; +0x1b3, 0x1800b7b13\ntest    rax, rax                                                       ; +0x1ba, 0x1800b7b1a\njnz     short loc_1800B7B29                                            ; +0x1bd, 0x1800b7b1d\nmov     eax, 26h ; '&'                                                 ; +0x1bf, 0x1800b7b1f\njmp     short loc_1800B7AE0                                            ; +0x1c4, 0x1800b7b24\nmov     rbx, rdi                                                       ; +0x1c6, 0x1800b7b26\nlea     rdx, asc_18016B97C; \":\"                                        ; +0x1c9, 0x1800b7b29\nmov     rcx, rbx; Buf1                                                 ; +0x1d0, 0x1800b7b30\ncall    sub_1800B80C0                                                  ; +0x1d3, 0x1800b7b33\ntest    rax, rax                                                       ; +0x1d8, 0x1800b7b38\njz      short loc_1800B7B4D                                            ; +0x1db, 0x1800b7b3b\nlea     rcx, [rax+1]                                                   ; +0x1dd, 0x1800b7b3d\nmov     byte ptr [rax], 0                                              ; +0x1e1, 0x1800b7b41\ncall    unknown_libname_28; Microsoft VisualC 64bit universal runtime  ; +0x1e4, 0x1800b7b44\nmov     esi, eax                                                       ; +0x1e9, 0x1800b7b49\njmp     short loc_1800B7B52                                            ; +0x1eb, 0x1800b7b4b\nmov     esi, 50h ; 'P'                                                 ; +0x1ed, 0x1800b7b4d\nmov     rcx, rbx                                                       ; +0x1f2, 0x1800b7b52\ncall    sub_1800B7DF0                                                  ; +0x1f5, 0x1800b7b55\nmov     cs:qword_1801EF268, rax                                        ; +0x1fa, 0x1800b7b5a\ntest    rax, rax                                                       ; +0x201, 0x1800b7b61\njz      short loc_1800B7B1F                                            ; +0x204, 0x1800b7b64\nmov     rcx, cs:off_1801AED20                                          ; +0x206, 0x1800b7b66\nlea     r8, aCBuildagent1Wo_35; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x20d, 0x1800b7b6d\nmov     cs:dword_1801EF270, esi                                        ; +0x214, 0x1800b7b74\nmov     r9d, 132h                                                      ; +0x21a, 0x1800b7b7a\nmov     rdx, rdi                                                       ; +0x220, 0x1800b7b80\nmov     [rsp+1048h+var_1028], 1                                        ; +0x223, 0x1800b7b83\nmov     rcx, [rcx+1A0h]                                                ; +0x228, 0x1800b7b88\ncall    sub_1800B6AA0                                                  ; +0x22f, 0x1800b7b8f\nxor     eax, eax                                                       ; +0x234, 0x1800b7b94\njmp     loc_1800B7AE0                                                  ; +0x236, 0x1800b7b96\nxor     eax, eax                                                       ; +0x23b, 0x1800b7b9b\njmp     loc_1800B7AE8                                                  ; +0x23d, 0x1800b7b9d", "xrefs": ["sub_1800E75B0 @ 0x1800e75b3", "<???> @ 0x18018985c", "<???> @ 0x18018986c", "<???> @ 0x180189880", "<???> @ 0x180189890", "<???> @ 0x1801fd1b8"], "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"}