{"type": "func", "start": 6442975520, "end": 6442975638, "name": "sub_180080120", "pseudocode": "// \n// sub_180080120 from 0x180080120 to 0x180080196 (118 bytes)\n// \n// 6 xrefs:\n// > sub_180080B10 @ 0x180080b39\n// > sub_180080B10 @ 0x180080b4b\n// > sub_180080B10 @ 0x180080b83\n// > sub_180080B10 @ 0x180080b94\n// > sub_180085720 @ 0x180085771\n// > sub_180085720 @ 0x180085869\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\nvoid __fastcall sub_180080120(_QWORD *a1, __int64 a2)\n{\n  unsigned int v3; // eax\n  __int64 v4; // r9\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rcx\n\n  v3 = *(unsigned __int16 *)(a2 - 2);\n  v4 = a2 - 4 - *(unsigned __int16 *)(a2 - 4) - 48;\n  v5 = *(_QWORD *)(v4 + 32);\n  v6 = v5;\n  if ( (_WORD)v3 )\n    v6 = v3;\n  if ( v4 == *a1 )\n  {\n    v5 = a1[1];\n    *(_QWORD *)(v4 + 32) = v5;\n  }\n  v7 = *(_QWORD *)(v4 + 40) + v6;\n  *(_QWORD *)(v4 + 40) = v7;\n  if ( v7 == v5 )\n  {\n    v8 = *(_QWORD *)(v4 + 24);\n    if ( v8 )\n    {\n      *(_QWORD *)(*(_QWORD *)(v4 + 16) + 24LL) = v8;\n      *(_QWORD *)(*(_QWORD *)(v4 + 24) + 16LL) = *(_QWORD *)(v4 + 16);\n      off_1801A2FA8(*(void **)(v4 + 8));\n    }\n    else\n    {\n      *(_QWORD *)(v4 + 40) = 0;\n      *(_QWORD *)(v4 + 32) = 0;\n      a1[1] = 0;\n    }\n  }\n}", "assembly": "; \n; sub_180080120 from 0x180080120 to 0x180080196 (118 bytes)\n; \n; 6 xrefs:\n; > sub_180080B10 @ 0x180080b39\n; > sub_180080B10 @ 0x180080b4b\n; > sub_180080B10 @ 0x180080b83\n; > sub_180080B10 @ 0x180080b94\n; > sub_180085720 @ 0x180085771\n; > sub_180085720 @ 0x180085869\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\nmovzx   eax, word ptr [rdx-4]                                          ; +0x0, 0x180080120\nlea     r9, [rdx-4]                                                    ; +0x4, 0x180080124\nsub     r9, rax                                                        ; +0x8, 0x180080128\nmov     r10, rcx                                                       ; +0xb, 0x18008012b\nmovzx   eax, word ptr [rdx-2]                                          ; +0xe, 0x18008012e\nadd     r9, 0FFFFFFFFFFFFFFD0h                                         ; +0x12, 0x180080132\nmov     rdx, [r9+20h]                                                  ; +0x16, 0x180080136\nmov     rcx, rdx                                                       ; +0x1a, 0x18008013a\ntest    ax, ax                                                         ; +0x1d, 0x18008013d\njz      short loc_180080144                                            ; +0x20, 0x180080140\nmov     ecx, eax                                                       ; +0x22, 0x180080142\ncmp     r9, [r10]                                                      ; +0x24, 0x180080144\njnz     short loc_180080151                                            ; +0x27, 0x180080147\nmov     rdx, [r10+8]                                                   ; +0x29, 0x180080149\nmov     [r9+20h], rdx                                                  ; +0x2d, 0x18008014d\nadd     rcx, [r9+28h]                                                  ; +0x31, 0x180080151\nmov     [r9+28h], rcx                                                  ; +0x35, 0x180080155\ncmp     rcx, rdx                                                       ; +0x39, 0x180080159\njnz     short locret_180080195                                         ; +0x3c, 0x18008015c\nmov     rcx, [r9+18h]                                                  ; +0x3e, 0x18008015e\ntest    rcx, rcx                                                       ; +0x42, 0x180080162\njnz     short loc_180080176                                            ; +0x45, 0x180080165\nxor     eax, eax                                                       ; +0x47, 0x180080167\nmov     [r9+28h], rax                                                  ; +0x49, 0x180080169\nmov     [r9+20h], rax                                                  ; +0x4d, 0x18008016d\nmov     [r10+8], rax                                                   ; +0x51, 0x180080171\nretn                                                                   ; +0x55, 0x180080175\nmov     rax, [r9+10h]                                                  ; +0x56, 0x180080176\nmov     [rax+18h], rcx                                                 ; +0x5a, 0x18008017a\nmov     rdx, [r9+18h]                                                  ; +0x5e, 0x18008017e\nmov     rax, [r9+10h]                                                  ; +0x62, 0x180080182\nmov     [rdx+10h], rax                                                 ; +0x66, 0x180080186\nmov     rcx, [r9+8]; Block                                             ; +0x6a, 0x18008018a\njmp     cs:off_1801A2FA8                                               ; +0x6e, 0x18008018e\nretn                                                                   ; +0x75, 0x180080195", "xrefs": ["sub_180080B10 @ 0x180080b39", "sub_180080B10 @ 0x180080b4b", "sub_180080B10 @ 0x180080b83", "sub_180080B10 @ 0x180080b94", "sub_180085720 @ 0x180085771", "sub_180085720 @ 0x180085869"], "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"}