{"type": "func", "start": 6442512464, "end": 6442512653, "name": "sub_18000F050", "pseudocode": "// \n// sub_18000F050 from 0x18000f050 to 0x18000f10d (189 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18016c7b0\n// > <???> @ 0x18016ca28\n// > <???> @ 0x1801f6d38\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_18000F050(_QWORD *a1, int a2, _QWORD *a3)\n{\n  __int64 v3; // rbx\n  __int64 result; // rax\n  __int64 v7; // rbp\n  __int64 v8; // r14\n  __int64 v9; // r15\n  int v10; // [rsp+50h] [rbp+18h] BYREF\n\n  v3 = a2;\n  v10 = 0;\n  if ( !a3 )\n    return 31;\n  v7 = a1[12];\n  v8 = a1[13];\n  v9 = a1[14];\n  if ( v7 )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD *, int *))(*a1 + 296LL))(a1, &v10);\n    if ( (_DWORD)result )\n      return result;\n    if ( (unsigned int)(v3 + 1) <= 1 )\n    {\n      *a3 = v7;\n      return 0;\n    }\n    if ( (_DWORD)v3 == v10 - 1 || (_DWORD)v3 == -3 )\n    {\n      *a3 = v8;\n      return 0;\n    }\n    if ( (_DWORD)v3 == -2 )\n    {\n      *a3 = v9;\n      return 0;\n    }\n    if ( (int)v3 < v10 )\n    {\n      *a3 = *(_QWORD *)(a1[2] + 8 * v3);\n      return 0;\n    }\n  }\n  return 9;\n}", "assembly": "; \n; sub_18000F050 from 0x18000f050 to 0x18000f10d (189 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18016c7b0\n; > <???> @ 0x18016ca28\n; > <???> @ 0x1801f6d38\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, 0x18000f050\npush    rsi                                                            ; +0x2, 0x18000f052\npush    rdi                                                            ; +0x3, 0x18000f053\nsub     rsp, 20h                                                       ; +0x4, 0x18000f054\nmovsxd  rbx, edx                                                       ; +0x8, 0x18000f058\nmov     rdi, r8                                                        ; +0xb, 0x18000f05b\nmov     [rsp+38h+arg_10], 0                                            ; +0xe, 0x18000f05e\nmov     rsi, rcx                                                       ; +0x16, 0x18000f066\ntest    r8, r8                                                         ; +0x19, 0x18000f069\njnz     short loc_18000F07A                                            ; +0x1c, 0x18000f06c\nlea     eax, [r8+1Fh]                                                  ; +0x1e, 0x18000f06e\nadd     rsp, 20h                                                       ; +0x22, 0x18000f072\npop     rdi                                                            ; +0x26, 0x18000f076\npop     rsi                                                            ; +0x27, 0x18000f077\npop     rbx                                                            ; +0x28, 0x18000f078\nretn                                                                   ; +0x29, 0x18000f079\nmov     [rsp+38h+arg_0], rbp                                           ; +0x2a, 0x18000f07a\nmov     rbp, [rcx+60h]                                                 ; +0x2f, 0x18000f07f\nmov     [rsp+38h+arg_8], r14                                           ; +0x33, 0x18000f083\nmov     r14, [rcx+68h]                                                 ; +0x38, 0x18000f088\nmov     [rsp+38h+arg_18], r15                                          ; +0x3c, 0x18000f08c\nmov     r15, [rcx+70h]                                                 ; +0x41, 0x18000f091\ntest    rbp, rbp                                                       ; +0x45, 0x18000f095\njz      short loc_18000F0F1                                            ; +0x48, 0x18000f098\nmov     rax, [rcx]                                                     ; +0x4a, 0x18000f09a\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x4d, 0x18000f09d\ncall    qword ptr [rax+128h]                                           ; +0x52, 0x18000f0a2\ntest    eax, eax                                                       ; +0x58, 0x18000f0a8\njnz     short loc_18000F0F6                                            ; +0x5a, 0x18000f0aa\nlea     eax, [rbx+1]                                                   ; +0x5c, 0x18000f0ac\ncmp     eax, 1                                                         ; +0x5f, 0x18000f0af\njbe     short loc_18000F0EA                                            ; +0x62, 0x18000f0b2\nmov     ecx, [rsp+38h+arg_10]                                          ; +0x64, 0x18000f0b4\nlea     eax, [rcx-1]                                                   ; +0x68, 0x18000f0b8\ncmp     ebx, eax                                                       ; +0x6b, 0x18000f0bb\njz      short loc_18000F0E3                                            ; +0x6d, 0x18000f0bd\ncmp     ebx, 0FFFFFFFDh                                                ; +0x6f, 0x18000f0bf\njz      short loc_18000F0E3                                            ; +0x72, 0x18000f0c2\ncmp     ebx, 0FFFFFFFEh                                                ; +0x74, 0x18000f0c4\njnz     short loc_18000F0D0                                            ; +0x77, 0x18000f0c7\nmov     [rdi], r15                                                     ; +0x79, 0x18000f0c9\nxor     eax, eax                                                       ; +0x7c, 0x18000f0cc\njmp     short loc_18000F0F6                                            ; +0x7e, 0x18000f0ce\ncmp     ebx, ecx                                                       ; +0x80, 0x18000f0d0\njge     short loc_18000F0F1                                            ; +0x82, 0x18000f0d2\nmov     rax, [rsi+10h]                                                 ; +0x84, 0x18000f0d4\nmov     rcx, [rax+rbx*8]                                               ; +0x88, 0x18000f0d8\nxor     eax, eax                                                       ; +0x8c, 0x18000f0dc\nmov     [rdi], rcx                                                     ; +0x8e, 0x18000f0de\njmp     short loc_18000F0F6                                            ; +0x91, 0x18000f0e1\nmov     [rdi], r14                                                     ; +0x93, 0x18000f0e3\nxor     eax, eax                                                       ; +0x96, 0x18000f0e6\njmp     short loc_18000F0F6                                            ; +0x98, 0x18000f0e8\nmov     [rdi], rbp                                                     ; +0x9a, 0x18000f0ea\nxor     eax, eax                                                       ; +0x9d, 0x18000f0ed\njmp     short loc_18000F0F6                                            ; +0x9f, 0x18000f0ef\nmov     eax, 9                                                         ; +0xa1, 0x18000f0f1\nmov     r14, [rsp+38h+arg_8]                                           ; +0xa6, 0x18000f0f6\nmov     rbp, [rsp+38h+arg_0]                                           ; +0xab, 0x18000f0fb\nmov     r15, [rsp+38h+arg_18]                                          ; +0xb0, 0x18000f100\nadd     rsp, 20h                                                       ; +0xb5, 0x18000f105\npop     rdi                                                            ; +0xb9, 0x18000f109\npop     rsi                                                            ; +0xba, 0x18000f10a\npop     rbx                                                            ; +0xbb, 0x18000f10b\nretn                                                                   ; +0xbc, 0x18000f10c", "xrefs": ["<???> @ 0x18016c7b0", "<???> @ 0x18016ca28", "<???> @ 0x1801f6d38"], "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"}