{"type": "func", "start": 6442693744, "end": 6442693872, "name": "sub_18003B470", "pseudocode": "// \n// sub_18003B470 from 0x18003b470 to 0x18003b4f0 (128 bytes)\n// \n// 2 xrefs:\n// > sub_18003B680 @ 0x18003b6ec\n// > <???> @ 0x1801f7d58\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_18003B470(__int64 a1)\n{\n  __int64 v1; // rdx\n  __int64 result; // rax\n\n  v1 = *(_QWORD *)(a1 + 616);\n  if ( !v1 || *(_QWORD *)(a1 + 376) )\n    return 39;\n  if ( *(_WORD *)v1 == 0xFFFE )\n  {\n    if ( (*(_QWORD *)(v1 + 24) != 0x10000000000001LL || *(_QWORD *)(v1 + 32) != 0x719B3800AA000080LL)\n      && (*(_QWORD *)(v1 + 24) != 0x10000000000003LL || *(_QWORD *)(v1 + 32) != 0x719B3800AA000080LL) )\n    {\n      return 39;\n    }\n  }\n  else if ( ((*(_WORD *)v1 - 1) & 0xFFFD) != 0 )\n  {\n    return 39;\n  }\n  result = 0;\n  if ( *(_WORD *)(v1 + 14) == 8 )\n    return 39;\n  return result;\n}", "assembly": "; \n; sub_18003B470 from 0x18003b470 to 0x18003b4f0 (128 bytes)\n; \n; 2 xrefs:\n; > sub_18003B680 @ 0x18003b6ec\n; > <???> @ 0x1801f7d58\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     rdx, [rcx+268h]                                                ; +0x0, 0x18003b470\ntest    rdx, rdx                                                       ; +0x7, 0x18003b477\njz      short loc_18003B4C7                                            ; +0xa, 0x18003b47a\ncmp     qword ptr [rcx+178h], 0                                        ; +0xc, 0x18003b47c\njnz     short loc_18003B4C7                                            ; +0x14, 0x18003b484\nmovzx   eax, word ptr [rdx]                                            ; +0x16, 0x18003b486\nmov     ecx, 0FFFEh                                                    ; +0x19, 0x18003b489\ncmp     ax, cx                                                         ; +0x1e, 0x18003b48e\njnz     short loc_18003B4CD                                            ; +0x21, 0x18003b491\nmov     rax, [rdx+18h]                                                 ; +0x23, 0x18003b493\ncmp     rax, cs:qword_180165300                                        ; +0x27, 0x18003b497\njnz     short loc_18003B4AD                                            ; +0x2e, 0x18003b49e\nmov     rax, [rdx+20h]                                                 ; +0x30, 0x18003b4a0\ncmp     rax, cs:qword_180165308                                        ; +0x34, 0x18003b4a4\njz      short loc_18003B4E0                                            ; +0x3b, 0x18003b4ab\nmov     rax, [rdx+18h]                                                 ; +0x3d, 0x18003b4ad\ncmp     rax, cs:qword_180165310                                        ; +0x41, 0x18003b4b1\njnz     short loc_18003B4C7                                            ; +0x48, 0x18003b4b8\nmov     rax, [rdx+20h]                                                 ; +0x4a, 0x18003b4ba\ncmp     rax, cs:qword_180165318                                        ; +0x4e, 0x18003b4be\njz      short loc_18003B4E0                                            ; +0x55, 0x18003b4c5\nmov     eax, 27h ; '''                                                 ; +0x57, 0x18003b4c7\nretn                                                                   ; +0x5c, 0x18003b4cc\ndec     ax                                                             ; +0x5d, 0x18003b4cd\nmov     ecx, 0FFFDh                                                    ; +0x60, 0x18003b4d0\ntest    cx, ax                                                         ; +0x65, 0x18003b4d5\njz      short loc_18003B4E0                                            ; +0x68, 0x18003b4d8\nmov     eax, 27h ; '''                                                 ; +0x6a, 0x18003b4da\nretn                                                                   ; +0x6f, 0x18003b4df\nxor     eax, eax                                                       ; +0x70, 0x18003b4e0\nmov     ecx, 27h ; '''                                                 ; +0x72, 0x18003b4e2\ncmp     word ptr [rdx+0Eh], 8                                          ; +0x77, 0x18003b4e7\ncmovz   eax, ecx                                                       ; +0x7c, 0x18003b4ec\nretn                                                                   ; +0x7f, 0x18003b4ef", "xrefs": ["sub_18003B680 @ 0x18003b6ec", "<???> @ 0x1801f7d58"], "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"}