{"type": "func", "start": 6443194608, "end": 6443194726, "name": "sub_1800B58F0", "pseudocode": "// \n// sub_1800B58F0 from 0x1800b58f0 to 0x1800b5966 (118 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016b230\n// > <???> @ 0x1801fcf9c\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_1800B58F0(__int64 a1)\n{\n  SOCKET v2; // rcx\n  __int64 result; // rax\n  __int64 v4; // rdx\n  char v5; // [rsp+20h] [rbp-18h]\n\n  v2 = *(_QWORD *)(a1 + 496);\n  if ( v2 == -1 || (result = sub_180109E80(v2), *(_QWORD *)(a1 + 496) = -1, !(_DWORD)result) )\n  {\n    v4 = *(_QWORD *)(a1 + 520);\n    if ( v4 )\n    {\n      v5 = 1;\n      sub_1800B6AA0(\n        *((_QWORD *)off_1801AED20 + 52),\n        v4,\n        \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_file_net.cpp\",\n        777,\n        v5);\n      *(_QWORD *)(a1 + 520) = 0;\n    }\n    return sub_1800B7BC0();\n  }\n  return result;\n}", "assembly": "; \n; sub_1800B58F0 from 0x1800b58f0 to 0x1800b5966 (118 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016b230\n; > <???> @ 0x1801fcf9c\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\npush    rbx                                                            ; +0x0, 0x1800b58f0\nsub     rsp, 30h                                                       ; +0x2, 0x1800b58f2\nmov     rbx, rcx                                                       ; +0x6, 0x1800b58f6\nmov     rcx, [rcx+1F0h]; s                                             ; +0x9, 0x1800b58f9\ncmp     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x10, 0x1800b5900\njz      short loc_1800B591A                                            ; +0x14, 0x1800b5904\ncall    sub_180109E80                                                  ; +0x16, 0x1800b5906\nmov     qword ptr [rbx+1F0h], 0FFFFFFFFFFFFFFFFh                       ; +0x1b, 0x1800b590b\ntest    eax, eax                                                       ; +0x26, 0x1800b5916\njnz     short loc_1800B5960                                            ; +0x28, 0x1800b5918\nmov     rdx, [rbx+208h]                                                ; +0x2a, 0x1800b591a\ntest    rdx, rdx                                                       ; +0x31, 0x1800b5921\njz      short loc_1800B5956                                            ; +0x34, 0x1800b5924\nmov     rcx, cs:off_1801AED20                                          ; +0x36, 0x1800b5926\nlea     r8, aCBuildagent1Wo_32; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x3d, 0x1800b592d\nmov     r9d, 309h                                                      ; +0x44, 0x1800b5934\nmov     [rsp+38h+var_18], 1                                            ; +0x4a, 0x1800b593a\nmov     rcx, [rcx+1A0h]                                                ; +0x4f, 0x1800b593f\ncall    sub_1800B6AA0                                                  ; +0x56, 0x1800b5946\nmov     qword ptr [rbx+208h], 0                                        ; +0x5b, 0x1800b594b\nadd     rsp, 30h                                                       ; +0x66, 0x1800b5956\npop     rbx                                                            ; +0x6a, 0x1800b595a\njmp     sub_1800B7BC0                                                  ; +0x6b, 0x1800b595b\nadd     rsp, 30h                                                       ; +0x70, 0x1800b5960\npop     rbx                                                            ; +0x74, 0x1800b5964\nretn                                                                   ; +0x75, 0x1800b5965", "xrefs": ["<???> @ 0x18016b230", "<???> @ 0x1801fcf9c"], "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"}