{"type": "func", "start": 6442692848, "end": 6442693168, "name": "sub_18003B0F0", "pseudocode": "// \n// sub_18003B0F0 from 0x18003b0f0 to 0x18003b230 (320 bytes)\n// \n// 2 xrefs:\n// > sub_18003B070 @ 0x18003b088\n// > <???> @ 0x1801f7d4c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:53:08 +0000\n// \n\n__int64 __fastcall sub_18003B0F0(__int64 a1, __int64 a2, unsigned int *a3)\n{\n  __int64 result; // rax\n  __int64 v6; // rcx\n  unsigned int v7; // r9d\n  __int64 v8; // r8\n  __int64 v9; // rdx\n  unsigned __int64 v10; // rcx\n\n  *(_DWORD *)(a1 + 40) = 14;\n  *(_QWORD *)(a1 + 288) = 0;\n  *(_QWORD *)(a1 + 296) = 0;\n  *(_QWORD *)(a1 + 304) = 0;\n  *(_QWORD *)(a1 + 328) = 0;\n  *(_QWORD *)(a1 + 312) = 0;\n  *(_QWORD *)(a1 + 360) = 0;\n  *(_DWORD *)(a1 + 24) = 0;\n  *(_QWORD *)(a1 + 8) = a1 + 376;\n  if ( a3[5] - 1 > 4 )\n    return 19;\n  result = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 16LL))(\n             *(_QWORD *)(a1 + 368),\n             a1 + 396);\n  if ( (_DWORD)result )\n    return result;\n  v6 = *(_QWORD *)(a1 + 8);\n  *(_DWORD *)(a1 + 272) = 0;\n  *(_DWORD *)(v6 + 8) = a3[5];\n  *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL) = a3[3];\n  *(_DWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = a3[4];\n  v7 = a3[3];\n  v8 = *(_QWORD *)(a1 + 8);\n  v9 = a3[1];\n  if ( v7 )\n  {\n    switch ( a3[5] )\n    {\n      case 1u:\n        v10 = 8;\n        break;\n      case 2u:\n        v10 = 16;\n        break;\n      case 3u:\n        v10 = 24;\n        break;\n      default:\n        if ( a3[5] - 4 >= 2 )\n        {\n          *(_DWORD *)(v8 + 24) = v9;\n          *(_DWORD *)(a1 + 24) = 0;\n          return 0;\n        }\n        v10 = 32;\n        break;\n    }\n    *(_DWORD *)(v8 + 24) = (unsigned int)(8 * v9 / v10) / v7;\n  }\n  *(_DWORD *)(a1 + 24) = 0;\n  return 0;\n}", "assembly": "; \n; sub_18003B0F0 from 0x18003b0f0 to 0x18003b230 (320 bytes)\n; \n; 2 xrefs:\n; > sub_18003B070 @ 0x18003b088\n; > <???> @ 0x1801f7d4c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:53:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18003b0f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18003b0f5\npush    rdi                                                            ; +0xa, 0x18003b0fa\nsub     rsp, 20h                                                       ; +0xb, 0x18003b0fb\nxor     esi, esi                                                       ; +0xf, 0x18003b0ff\nmov     dword ptr [rcx+28h], 0Eh                                       ; +0x11, 0x18003b101\nlea     rdx, [rcx+178h]                                                ; +0x18, 0x18003b108\nmov     [rcx+120h], rsi                                                ; +0x1f, 0x18003b10f\nmov     [rcx+128h], rsi                                                ; +0x26, 0x18003b116\nmov     rdi, r8                                                        ; +0x2d, 0x18003b11d\nmov     [rcx+130h], rsi                                                ; +0x30, 0x18003b120\nmov     rbx, rcx                                                       ; +0x37, 0x18003b127\nmov     [rcx+148h], rsi                                                ; +0x3a, 0x18003b12a\nmov     [rcx+138h], rsi                                                ; +0x41, 0x18003b131\nmov     [rcx+168h], rsi                                                ; +0x48, 0x18003b138\nmov     [rcx+18h], esi                                                 ; +0x4f, 0x18003b13f\nmov     [rcx+8], rdx                                                   ; +0x52, 0x18003b142\nmov     eax, [r8+14h]                                                  ; +0x56, 0x18003b146\ndec     eax                                                            ; +0x5a, 0x18003b14a\ncmp     eax, 4                                                         ; +0x5c, 0x18003b14c\nja      loc_18003B21B                                                  ; +0x5f, 0x18003b14f\nmov     rcx, [rcx+170h]                                                ; +0x65, 0x18003b155\nadd     rdx, 14h                                                       ; +0x6c, 0x18003b15c\nmov     rax, [rcx]                                                     ; +0x70, 0x18003b160\ncall    qword ptr [rax+10h]                                            ; +0x73, 0x18003b163\ntest    eax, eax                                                       ; +0x76, 0x18003b166\njnz     loc_18003B220                                                  ; +0x78, 0x18003b168\nmov     rcx, [rbx+8]                                                   ; +0x7e, 0x18003b16e\nmov     [rbx+110h], esi                                                ; +0x82, 0x18003b172\nmov     eax, [rdi+14h]                                                 ; +0x88, 0x18003b178\nmov     [rcx+8], eax                                                   ; +0x8b, 0x18003b17b\nmov     rcx, [rbx+8]                                                   ; +0x8e, 0x18003b17e\nmov     eax, [rdi+0Ch]                                                 ; +0x92, 0x18003b182\nmov     [rcx+0Ch], eax                                                 ; +0x95, 0x18003b185\nmov     rcx, [rbx+8]                                                   ; +0x98, 0x18003b188\nmov     eax, [rdi+10h]                                                 ; +0x9c, 0x18003b18c\nmov     [rcx+10h], eax                                                 ; +0x9f, 0x18003b18f\nmov     r9d, [rdi+0Ch]                                                 ; +0xa2, 0x18003b192\nmov     r8, [rbx+8]                                                    ; +0xa6, 0x18003b196\nmov     edx, [rdi+4]                                                   ; +0xaa, 0x18003b19a\ntest    r9d, r9d                                                       ; +0xad, 0x18003b19d\njz      short loc_18003B206                                            ; +0xb0, 0x18003b1a0\nmov     ecx, [rdi+14h]                                                 ; +0xb2, 0x18003b1a2\nsub     ecx, 1                                                         ; +0xb5, 0x18003b1a5\njz      short loc_18003B1EC                                            ; +0xb8, 0x18003b1a8\nsub     ecx, 1                                                         ; +0xba, 0x18003b1aa\njz      short loc_18003B1E5                                            ; +0xbd, 0x18003b1ad\nsub     ecx, 1                                                         ; +0xbf, 0x18003b1af\njz      short loc_18003B1DE                                            ; +0xc2, 0x18003b1b2\nsub     ecx, 1                                                         ; +0xc4, 0x18003b1b4\njz      short loc_18003B1D7                                            ; +0xc7, 0x18003b1b7\ncmp     ecx, 1                                                         ; +0xc9, 0x18003b1b9\njz      short loc_18003B1D7                                            ; +0xcc, 0x18003b1bc\nmov     [r8+18h], edx                                                  ; +0xce, 0x18003b1be\nmov     eax, esi                                                       ; +0xd2, 0x18003b1c2\nmov     [rbx+18h], esi                                                 ; +0xd4, 0x18003b1c4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd7, 0x18003b1c7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xdc, 0x18003b1cc\nadd     rsp, 20h                                                       ; +0xe1, 0x18003b1d1\npop     rdi                                                            ; +0xe5, 0x18003b1d5\nretn                                                                   ; +0xe6, 0x18003b1d6\nmov     ecx, 20h ; ' '                                                 ; +0xe7, 0x18003b1d7\njmp     short loc_18003B1F1                                            ; +0xec, 0x18003b1dc\nmov     ecx, 18h                                                       ; +0xee, 0x18003b1de\njmp     short loc_18003B1F1                                            ; +0xf3, 0x18003b1e3\nmov     ecx, 10h                                                       ; +0xf5, 0x18003b1e5\njmp     short loc_18003B1F1                                            ; +0xfa, 0x18003b1ea\nmov     ecx, 8                                                         ; +0xfc, 0x18003b1ec\nmov     rax, rdx                                                       ; +0x101, 0x18003b1f1\nxor     edx, edx                                                       ; +0x104, 0x18003b1f4\nshl     rax, 3                                                         ; +0x106, 0x18003b1f6\ndiv     rcx                                                            ; +0x10a, 0x18003b1fa\nxor     edx, edx                                                       ; +0x10d, 0x18003b1fd\ndiv     r9d                                                            ; +0x10f, 0x18003b1ff\nmov     [r8+18h], eax                                                  ; +0x112, 0x18003b202\nmov     [rbx+18h], esi                                                 ; +0x116, 0x18003b206\nmov     eax, esi                                                       ; +0x119, 0x18003b209\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x11b, 0x18003b20b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x120, 0x18003b210\nadd     rsp, 20h                                                       ; +0x125, 0x18003b215\npop     rdi                                                            ; +0x129, 0x18003b219\nretn                                                                   ; +0x12a, 0x18003b21a\nmov     eax, 13h                                                       ; +0x12b, 0x18003b21b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x130, 0x18003b220\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x135, 0x18003b225\nadd     rsp, 20h                                                       ; +0x13a, 0x18003b22a\npop     rdi                                                            ; +0x13e, 0x18003b22e\nretn                                                                   ; +0x13f, 0x18003b22f", "xrefs": ["sub_18003B070 @ 0x18003b088", "<???> @ 0x1801f7d4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}