{"type": "func", "start": 6442698656, "end": 6442698844, "name": "sub_18003C7A0", "pseudocode": "// \n// sub_18003C7A0 from 0x18003c7a0 to 0x18003c85c (188 bytes)\n// \n// 1 xrefs:\n// > sub_18003B680 @ 0x18003b708\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_18003C7A0(__int64 a1, int a2, __int64 a3, __int64 a4, int a5, __int64 a6)\n{\n  int v6; // eax\n  _WORD *v8; // rdx\n\n  v6 = *(_DWORD *)(a6 + 40);\n  if ( v6 == 5 )\n  {\n    *(_DWORD *)(a1 + 568) = 0;\n    *(_QWORD *)(a1 + 616) = a1 + 576;\n    *(_WORD *)(a1 + 576) = 1;\n    if ( *(_DWORD *)(*(_QWORD *)(a6 + 376) + 44LL) == 7 )\n    {\n      *(_WORD *)(a1 + 576) = 17;\n      *(_DWORD *)(a1 + 568) = 36 * a2;\n      *(_DWORD *)(a1 + 552) = 64;\n      return 0;\n    }\n    return 0;\n  }\n  if ( v6 == 15 )\n  {\n    v8 = *(_WORD **)(a6 + 616);\n    *(_QWORD *)(a1 + 616) = v8;\n    if ( *v8 == 17 || *v8 == 105 )\n    {\n      *(_DWORD *)(a1 + 568) = (unsigned __int16)v8[6];\n      *(_DWORD *)(a1 + 552) = (unsigned __int16)v8[9];\n    }\n    if ( (*(_DWORD *)(a1 + 352) & 0x200) == 0 || ((*v8 - 1) & 0xFFFD) == 0 )\n      return 0;\n  }\n  return 19;\n}", "assembly": "; \n; sub_18003C7A0 from 0x18003c7a0 to 0x18003c85c (188 bytes)\n; \n; 1 xrefs:\n; > sub_18003B680 @ 0x18003b708\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     r9d, edx                                                       ; +0x0, 0x18003c7a0\nmov     rdx, [rsp+arg_28]                                              ; +0x3, 0x18003c7a3\nmov     eax, [rdx+28h]                                                 ; +0x8, 0x18003c7a8\ncmp     eax, 5                                                         ; +0xb, 0x18003c7ab\njnz     short loc_18003C801                                            ; +0xe, 0x18003c7ae\nmov     dword ptr [rcx+238h], 0                                        ; +0x10, 0x18003c7b0\nlea     r8, [rcx+240h]                                                 ; +0x1a, 0x18003c7ba\nmov     [rcx+268h], r8                                                 ; +0x21, 0x18003c7c1\nmov     eax, 1                                                         ; +0x28, 0x18003c7c8\nmov     [r8], ax                                                       ; +0x2d, 0x18003c7cd\nmov     rax, [rdx+178h]                                                ; +0x31, 0x18003c7d1\ncmp     dword ptr [rax+2Ch], 7                                         ; +0x38, 0x18003c7d8\njnz     short loc_18003C853                                            ; +0x3c, 0x18003c7dc\nmov     eax, 11h                                                       ; +0x3e, 0x18003c7de\nmov     [r8], ax                                                       ; +0x43, 0x18003c7e3\nlea     eax, [r9+r9*8]                                                 ; +0x47, 0x18003c7e7\nshl     eax, 2                                                         ; +0x4b, 0x18003c7eb\nmov     [rcx+238h], eax                                                ; +0x4e, 0x18003c7ee\nxor     eax, eax                                                       ; +0x54, 0x18003c7f4\nmov     dword ptr [rcx+228h], 40h ; '@'                                ; +0x56, 0x18003c7f6\nretn                                                                   ; +0x60, 0x18003c800\ncmp     eax, 0Fh                                                       ; +0x61, 0x18003c801\njnz     short loc_18003C856                                            ; +0x64, 0x18003c804\nmov     rdx, [rdx+268h]                                                ; +0x66, 0x18003c806\nmov     [rcx+268h], rdx                                                ; +0x6d, 0x18003c80d\nmovzx   eax, word ptr [rdx]                                            ; +0x74, 0x18003c814\ncmp     ax, 11h                                                        ; +0x77, 0x18003c817\njz      short loc_18003C823                                            ; +0x7b, 0x18003c81b\ncmp     ax, 69h ; 'i'                                                  ; +0x7d, 0x18003c81d\njnz     short loc_18003C837                                            ; +0x81, 0x18003c821\nmovzx   eax, word ptr [rdx+0Ch]                                        ; +0x83, 0x18003c823\nmov     [rcx+238h], eax                                                ; +0x87, 0x18003c827\nmovzx   eax, word ptr [rdx+12h]                                        ; +0x8d, 0x18003c82d\nmov     [rcx+228h], eax                                                ; +0x91, 0x18003c831\ntest    dword ptr [rcx+160h], 200h                                     ; +0x97, 0x18003c837\njz      short loc_18003C853                                            ; +0xa1, 0x18003c841\nmovzx   eax, word ptr [rdx]                                            ; +0xa3, 0x18003c843\nmov     ecx, 0FFFDh                                                    ; +0xa6, 0x18003c846\ndec     ax                                                             ; +0xab, 0x18003c84b\ntest    cx, ax                                                         ; +0xae, 0x18003c84e\njnz     short loc_18003C856                                            ; +0xb1, 0x18003c851\nxor     eax, eax                                                       ; +0xb3, 0x18003c853\nretn                                                                   ; +0xb5, 0x18003c855\nmov     eax, 13h                                                       ; +0xb6, 0x18003c856\nretn                                                                   ; +0xbb, 0x18003c85b", "xrefs": ["sub_18003B680 @ 0x18003b708"], "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"}