{"type": "func", "start": 6442467104, "end": 6442467181, "name": "sub_180003F20", "pseudocode": "// \n// sub_180003F20 from 0x180003f20 to 0x180003f6d (77 bytes)\n// \n// 2 xrefs:\n// > sub_180017E70 @ 0x180017e98\n// > sub_1800180F0 @ 0x18001824a\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_180003F20(__int64 a1)\n{\n  __int64 v1; // rdx\n\n  if ( !a1 )\n    return 0xFFFFFFFFLL;\n  if ( !*(_QWORD *)a1 )\n    return 0xFFFFFFFFLL;\n  v1 = *(_QWORD *)(*(_QWORD *)a1 + 32LL);\n  if ( !v1 )\n    return 0xFFFFFFFFLL;\n  *(_QWORD *)(a1 + 24) = -1;\n  *(_QWORD *)(a1 + 36) = 0;\n  *(_QWORD *)(a1 + 48) = -1;\n  *(_QWORD *)(a1 + 56) = -1;\n  *(_QWORD *)(a1 + 64) = -1;\n  *(_DWORD *)(a1 + 32) = *(int *)(v1 + 4) >> 1;\n  return 0;\n}", "assembly": "; \n; sub_180003F20 from 0x180003f20 to 0x180003f6d (77 bytes)\n; \n; 2 xrefs:\n; > sub_180017E70 @ 0x180017e98\n; > sub_1800180F0 @ 0x18001824a\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\ntest    rcx, rcx                                                       ; +0x0, 0x180003f20\njz      short loc_180003F67                                            ; +0x3, 0x180003f23\nmov     rax, [rcx]                                                     ; +0x5, 0x180003f25\ntest    rax, rax                                                       ; +0x8, 0x180003f28\njz      short loc_180003F67                                            ; +0xb, 0x180003f2b\nmov     rdx, [rax+20h]                                                 ; +0xd, 0x180003f2d\ntest    rdx, rdx                                                       ; +0x11, 0x180003f31\njz      short loc_180003F67                                            ; +0x14, 0x180003f34\nxor     eax, eax                                                       ; +0x16, 0x180003f36\nmov     qword ptr [rcx+18h], 0FFFFFFFFFFFFFFFFh                        ; +0x18, 0x180003f38\nmov     [rcx+24h], rax                                                 ; +0x20, 0x180003f40\nmov     qword ptr [rcx+30h], 0FFFFFFFFFFFFFFFFh                        ; +0x24, 0x180003f44\nmov     qword ptr [rcx+38h], 0FFFFFFFFFFFFFFFFh                        ; +0x2c, 0x180003f4c\nmov     qword ptr [rcx+40h], 0FFFFFFFFFFFFFFFFh                        ; +0x34, 0x180003f54\nmov     eax, [rdx+4]                                                   ; +0x3c, 0x180003f5c\nsar     eax, 1                                                         ; +0x3f, 0x180003f5f\nmov     [rcx+20h], eax                                                 ; +0x41, 0x180003f61\nxor     eax, eax                                                       ; +0x44, 0x180003f64\nretn                                                                   ; +0x46, 0x180003f66\nmov     eax, 0FFFFFFFFh                                                ; +0x47, 0x180003f67\nretn                                                                   ; +0x4c, 0x180003f6c", "xrefs": ["sub_180017E70 @ 0x180017e98", "sub_1800180F0 @ 0x18001824a"], "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"}