{"type": "func", "start": 6443049632, "end": 6443049878, "name": "sub_1800922A0", "pseudocode": "// \n// sub_1800922A0 from 0x1800922a0 to 0x180092396 (246 bytes)\n// \n// 2 xrefs:\n// > sub_1800933C0 @ 0x180093471\n// > <???> @ 0x1801fa830\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_1800922A0(__int64 *a1, unsigned int a2, __int64 a3, __int64 a4, unsigned int a5, int a6)\n{\n  __int64 v6; // rsi\n  unsigned int v7; // r10d\n  int v10; // ebp\n  int v11; // edi\n  __int64 v12; // rax\n  __int64 (__fastcall *v13)(__int64 *, _QWORD, _QWORD, _QWORD, int, int); // r11\n  _DWORD *v14; // rax\n  int v15; // ecx\n  int v16; // eax\n  __int64 result; // rax\n  __int64 (__fastcall *v18)(__int64 *, _QWORD, _QWORD, _QWORD, int, int *); // r11\n  _QWORD *v19; // rdx\n  _QWORD *v20; // r8\n\n  v6 = *a1;\n  v7 = 0;\n  if ( a3 )\n  {\n    v10 = *(_DWORD *)(a3 + 32);\n    v11 = **(_DWORD **)(a3 + 8);\n  }\n  else\n  {\n    v10 = 0;\n    v11 = 0;\n  }\n  v12 = *(_QWORD *)(v6 + 232);\n  if ( a6 == 1 )\n  {\n    v13 = *(__int64 (__fastcall **)(__int64 *, _QWORD, _QWORD, _QWORD, int, int))(v12 + 176);\n    if ( v13 )\n      v7 = v13(a1, a5, a2, 0, v11, v10);\n    if ( a4 )\n    {\n      v14 = *(_DWORD **)(a4 + 8);\n      if ( v14 )\n      {\n        v15 = *(unsigned __int16 *)(v6 + 280);\n        if ( !(_WORD)v15 )\n          v15 = v11;\n        *v14 = v15;\n      }\n      v16 = *(_DWORD *)(v6 + 196);\n      if ( !v16 )\n        v16 = v10;\n      *(_DWORD *)(a4 + 32) = v16;\n    }\n    return v7;\n  }\n  v18 = *(__int64 (__fastcall **)(__int64 *, _QWORD, _QWORD, _QWORD, int, int *))(v12 + 72);\n  if ( !v18 )\n    return v7;\n  v19 = *(_QWORD **)(a3 + 24);\n  v20 = *(_QWORD **)(a4 + 24);\n  a6 = v11;\n  result = v18(a1, *v19, *v20, a2, v11, &a6);\n  **(_DWORD **)(a4 + 8) = a6;\n  return result;\n}", "assembly": "; \n; sub_1800922A0 from 0x1800922a0 to 0x180092396 (246 bytes)\n; \n; 2 xrefs:\n; > sub_1800933C0 @ 0x180093471\n; > <???> @ 0x1801fa830\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, 0x1800922a0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800922a5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800922aa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800922af\npush    r14                                                            ; +0x14, 0x1800922b4\nsub     rsp, 30h                                                       ; +0x16, 0x1800922b6\nmov     rsi, [rcx]                                                     ; +0x1a, 0x1800922ba\nxor     r10d, r10d                                                     ; +0x1d, 0x1800922bd\nmov     rbx, r9                                                        ; +0x20, 0x1800922c0\nmov     r9, r8                                                         ; +0x23, 0x1800922c3\nmov     r14d, edx                                                      ; +0x26, 0x1800922c6\ntest    r8, r8                                                         ; +0x29, 0x1800922c9\njz      short loc_1800922DA                                            ; +0x2c, 0x1800922cc\nmov     rax, [r8+8]                                                    ; +0x2e, 0x1800922ce\nmov     ebp, [r8+20h]                                                  ; +0x32, 0x1800922d2\nmov     edi, [rax]                                                     ; +0x36, 0x1800922d6\njmp     short loc_1800922E0                                            ; +0x38, 0x1800922d8\nmov     ebp, r10d                                                      ; +0x3a, 0x1800922da\nmov     edi, r10d                                                      ; +0x3d, 0x1800922dd\ncmp     [rsp+38h+arg_28], 1                                            ; +0x40, 0x1800922e0\nmov     rax, [rsi+0E8h]                                                ; +0x45, 0x1800922e5\njnz     short loc_18009235B                                            ; +0x4c, 0x1800922ec\nmov     r11, [rax+0B0h]                                                ; +0x4e, 0x1800922ee\ntest    r11, r11                                                       ; +0x55, 0x1800922f5\njz      short loc_180092312                                            ; +0x58, 0x1800922f8\nmov     edx, [rsp+38h+arg_20]                                          ; +0x5a, 0x1800922fa\nxor     r9d, r9d                                                       ; +0x5e, 0x1800922fe\nmov     dword ptr [rsp+38h+var_10], ebp                                ; +0x61, 0x180092301\nmov     r8d, r14d                                                      ; +0x65, 0x180092305\nmov     [rsp+38h+var_18], edi                                          ; +0x68, 0x180092308\ncall    r11                                                            ; +0x6c, 0x18009230c\nmov     r10d, eax                                                      ; +0x6f, 0x18009230f\ntest    rbx, rbx                                                       ; +0x72, 0x180092312\njz      short loc_18009233D                                            ; +0x75, 0x180092315\nmov     rax, [rbx+8]                                                   ; +0x77, 0x180092317\ntest    rax, rax                                                       ; +0x7b, 0x18009231b\njz      short loc_18009232F                                            ; +0x7e, 0x18009231e\nmovzx   ecx, word ptr [rsi+118h]                                       ; +0x80, 0x180092320\ntest    cx, cx                                                         ; +0x87, 0x180092327\ncmovz   ecx, edi                                                       ; +0x8a, 0x18009232a\nmov     [rax], ecx                                                     ; +0x8d, 0x18009232d\nmov     eax, [rsi+0C4h]                                                ; +0x8f, 0x18009232f\ntest    eax, eax                                                       ; +0x95, 0x180092335\ncmovz   eax, ebp                                                       ; +0x97, 0x180092337\nmov     [rbx+20h], eax                                                 ; +0x9a, 0x18009233a\nmov     eax, r10d                                                      ; +0x9d, 0x18009233d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa0, 0x180092340\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xa5, 0x180092345\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xaa, 0x18009234a\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xaf, 0x18009234f\nadd     rsp, 30h                                                       ; +0xb4, 0x180092354\npop     r14                                                            ; +0xb8, 0x180092358\nretn                                                                   ; +0xba, 0x18009235a\nmov     r11, [rax+48h]                                                 ; +0xbb, 0x18009235b\ntest    r11, r11                                                       ; +0xbf, 0x18009235f\njz      short loc_18009233D                                            ; +0xc2, 0x180092362\nmov     rdx, [r9+18h]                                                  ; +0xc4, 0x180092364\nlea     rax, [rsp+38h+arg_28]                                          ; +0xc8, 0x180092368\nmov     r8, [rbx+18h]                                                  ; +0xcd, 0x18009236d\nmov     r9d, r14d                                                      ; +0xd1, 0x180092371\nmov     [rsp+38h+arg_28], edi                                          ; +0xd4, 0x180092374\nmov     [rsp+38h+var_10], rax                                          ; +0xd8, 0x180092378\nmov     rdx, [rdx]                                                     ; +0xdd, 0x18009237d\nmov     r8, [r8]                                                       ; +0xe0, 0x180092380\nmov     [rsp+38h+var_18], edi                                          ; +0xe3, 0x180092383\ncall    r11                                                            ; +0xe7, 0x180092387\nmov     rdx, [rbx+8]                                                   ; +0xea, 0x18009238a\nmov     ecx, [rsp+38h+arg_28]                                          ; +0xee, 0x18009238e\nmov     [rdx], ecx                                                     ; +0xf2, 0x180092392\njmp     short loc_180092340                                            ; +0xf4, 0x180092394", "xrefs": ["sub_1800933C0 @ 0x180093471", "<???> @ 0x1801fa830"], "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"}