{"type": "func", "start": 6442617472, "end": 6442617610, "name": "sub_180028A80", "pseudocode": "// \n// sub_180028A80 from 0x180028a80 to 0x180028b0a (138 bytes)\n// \n// 2 xrefs:\n// > sub_180028B10 @ 0x180028b7c\n// > <???> @ 0x1801f76f8\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:00 +0000\n// \n\n__int64 __fastcall sub_180028A80(__int64 a1, int a2, _DWORD *a3, _DWORD *a4)\n{\n  __int64 result; // rax\n\n  if ( !byte_1801B3BA0 )\n  {\n    qword_1801B44E8 = (unsigned __int64)&unk_1801B3BBF & 0xFFFFFFFFFFFFFFF0uLL;\n    if ( !(unsigned int)sub_180028BE0(1) && !(unsigned int)sub_18002D350() )\n      sub_180032180(32);\n    byte_1801B3BA0 = 1;\n  }\n  if ( a3 )\n    *a3 = 18640 * ((a2 + 1) / 2);\n  result = 0;\n  if ( a4 )\n    *a4 = 1152;\n  return result;\n}", "assembly": "; \n; sub_180028A80 from 0x180028a80 to 0x180028b0a (138 bytes)\n; \n; 2 xrefs:\n; > sub_180028B10 @ 0x180028b7c\n; > <???> @ 0x1801f76f8\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:00 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180028a80\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180028a85\npush    rdi                                                            ; +0xa, 0x180028a8a\nsub     rsp, 20h                                                       ; +0xb, 0x180028a8b\ncmp     cs:byte_1801B3BA0, 0                                           ; +0xf, 0x180028a8f\nmov     rbx, r9                                                        ; +0x16, 0x180028a96\nmov     rdi, r8                                                        ; +0x19, 0x180028a99\nmov     esi, edx                                                       ; +0x1c, 0x180028a9c\njnz     short loc_180028AD8                                            ; +0x1e, 0x180028a9e\nlea     rax, unk_1801B3BBF                                             ; +0x20, 0x180028aa0\nmov     ecx, 1                                                         ; +0x27, 0x180028aa7\nand     rax, 0FFFFFFFFFFFFFFF0h                                        ; +0x2c, 0x180028aac\nmov     cs:qword_1801B44E8, rax                                        ; +0x30, 0x180028ab0\ncall    sub_180028BE0                                                  ; +0x37, 0x180028ab7\ntest    eax, eax                                                       ; +0x3c, 0x180028abc\njnz     short loc_180028AD1                                            ; +0x3e, 0x180028abe\ncall    sub_18002D350                                                  ; +0x40, 0x180028ac0\ntest    eax, eax                                                       ; +0x45, 0x180028ac5\njnz     short loc_180028AD1                                            ; +0x47, 0x180028ac7\nlea     ecx, [rax+20h]                                                 ; +0x49, 0x180028ac9\ncall    sub_180032180                                                  ; +0x4c, 0x180028acc\nmov     cs:byte_1801B3BA0, 1                                           ; +0x51, 0x180028ad1\ntest    rdi, rdi                                                       ; +0x58, 0x180028ad8\njz      short loc_180028AED                                            ; +0x5b, 0x180028adb\nlea     eax, [rsi+1]                                                   ; +0x5d, 0x180028add\ncdq                                                                    ; +0x60, 0x180028ae0\nsub     eax, edx                                                       ; +0x61, 0x180028ae1\nsar     eax, 1                                                         ; +0x63, 0x180028ae3\nimul    ecx, eax, 48D0h                                                ; +0x65, 0x180028ae5\nmov     [rdi], ecx                                                     ; +0x6b, 0x180028aeb\nxor     eax, eax                                                       ; +0x6d, 0x180028aed\ntest    rbx, rbx                                                       ; +0x6f, 0x180028aef\njz      short loc_180028AFA                                            ; +0x72, 0x180028af2\nmov     dword ptr [rbx], 480h                                          ; +0x74, 0x180028af4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7a, 0x180028afa\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7f, 0x180028aff\nadd     rsp, 20h                                                       ; +0x84, 0x180028b04\npop     rdi                                                            ; +0x88, 0x180028b08\nretn                                                                   ; +0x89, 0x180028b09", "xrefs": ["sub_180028B10 @ 0x180028b7c", "<???> @ 0x1801f76f8"], "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"}