{"type": "func", "start": 6443282528, "end": 6443282700, "name": "sub_1800CB060", "pseudocode": "// \n// sub_1800CB060 from 0x1800cb060 to 0x1800cb10c (172 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18016c768\n// > <???> @ 0x1801fe52c\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_1800CB060(_QWORD *a1, _QWORD *a2, _QWORD *a3)\n{\n  __int64 result; // rax\n  __int64 v7; // rcx\n  __int64 v8; // [rsp+38h] [rbp+10h] BYREF\n\n  if ( a2 )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64 *))(*a1 + 288LL))(a1, 4294967293LL, &v8);\n    if ( (_DWORD)result )\n      return result;\n    *a2 = *(_QWORD *)(v8 + 16);\n  }\n  if ( !a3 )\n    return 0;\n  v7 = a1[4];\n  v8 = 0;\n  if ( !v7 )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64 *))(*a1 + 288LL))(a1, 4294967293LL, &v8);\n    if ( (_DWORD)result )\n      return result;\n    goto LABEL_9;\n  }\n  result = (*(__int64 (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)v7 + 288LL))(v7, 4294967293LL, &v8);\n  if ( !(_DWORD)result )\n  {\nLABEL_9:\n    *a3 = *(_QWORD *)(v8 + 16);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800CB060 from 0x1800cb060 to 0x1800cb10c (172 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18016c768\n; > <???> @ 0x1801fe52c\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_0], rbx                                               ; +0x0, 0x1800cb060\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800cb065\npush    rdi                                                            ; +0xa, 0x1800cb06a\nsub     rsp, 20h                                                       ; +0xb, 0x1800cb06b\nmov     rdi, r8                                                        ; +0xf, 0x1800cb06f\nmov     rsi, rdx                                                       ; +0x12, 0x1800cb072\nmov     rbx, rcx                                                       ; +0x15, 0x1800cb075\ntest    rdx, rdx                                                       ; +0x18, 0x1800cb078\njz      short loc_1800CB0A0                                            ; +0x1b, 0x1800cb07b\nmov     rax, [rcx]                                                     ; +0x1d, 0x1800cb07d\nlea     r8, [rsp+28h+arg_8]                                            ; +0x20, 0x1800cb080\nmov     edx, 0FFFFFFFDh                                                ; +0x25, 0x1800cb085\ncall    qword ptr [rax+120h]                                           ; +0x2a, 0x1800cb08a\ntest    eax, eax                                                       ; +0x30, 0x1800cb090\njnz     short loc_1800CB0FC                                            ; +0x32, 0x1800cb092\nmov     rax, [rsp+28h+arg_8]                                           ; +0x34, 0x1800cb094\nmov     rcx, [rax+10h]                                                 ; +0x39, 0x1800cb099\nmov     [rsi], rcx                                                     ; +0x3d, 0x1800cb09d\ntest    rdi, rdi                                                       ; +0x40, 0x1800cb0a0\njz      short loc_1800CB0FA                                            ; +0x43, 0x1800cb0a3\nmov     rcx, [rbx+20h]                                                 ; +0x45, 0x1800cb0a5\nlea     r8, [rsp+28h+arg_8]                                            ; +0x49, 0x1800cb0a9\nmov     [rsp+28h+arg_8], 0                                             ; +0x4e, 0x1800cb0ae\nmov     edx, 0FFFFFFFDh                                                ; +0x57, 0x1800cb0b7\ntest    rcx, rcx                                                       ; +0x5c, 0x1800cb0bc\njz      short loc_1800CB0DE                                            ; +0x5f, 0x1800cb0bf\nmov     rax, [rcx]                                                     ; +0x61, 0x1800cb0c1\ncall    qword ptr [rax+120h]                                           ; +0x64, 0x1800cb0c4\ntest    eax, eax                                                       ; +0x6a, 0x1800cb0ca\njz      short loc_1800CB0EE                                            ; +0x6c, 0x1800cb0cc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6e, 0x1800cb0ce\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x73, 0x1800cb0d3\nadd     rsp, 20h                                                       ; +0x78, 0x1800cb0d8\npop     rdi                                                            ; +0x7c, 0x1800cb0dc\nretn                                                                   ; +0x7d, 0x1800cb0dd\nmov     rax, [rbx]                                                     ; +0x7e, 0x1800cb0de\nmov     rcx, rbx                                                       ; +0x81, 0x1800cb0e1\ncall    qword ptr [rax+120h]                                           ; +0x84, 0x1800cb0e4\ntest    eax, eax                                                       ; +0x8a, 0x1800cb0ea\njnz     short loc_1800CB0FC                                            ; +0x8c, 0x1800cb0ec\nmov     rax, [rsp+28h+arg_8]                                           ; +0x8e, 0x1800cb0ee\nmov     rcx, [rax+10h]                                                 ; +0x93, 0x1800cb0f3\nmov     [rdi], rcx                                                     ; +0x97, 0x1800cb0f7\nxor     eax, eax                                                       ; +0x9a, 0x1800cb0fa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9c, 0x1800cb0fc\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa1, 0x1800cb101\nadd     rsp, 20h                                                       ; +0xa6, 0x1800cb106\npop     rdi                                                            ; +0xaa, 0x1800cb10a\nretn                                                                   ; +0xab, 0x1800cb10b", "xrefs": ["<???> @ 0x18016c768", "<???> @ 0x1801fe52c"], "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"}