{"type": "func", "start": 6442720928, "end": 6442721079, "name": "sub_180041EA0", "pseudocode": "// \n// sub_180041EA0 from 0x180041ea0 to 0x180041f37 (151 bytes)\n// \n// 7 xrefs:\n// > sub_180045B60 @ 0x180045d53\n// > sub_180045B60 @ 0x180045d97\n// > sub_180046250 @ 0x1800462be\n// > sub_180046250 @ 0x1800463c4\n// > sub_180046250 @ 0x180046520\n// > sub_180046810 @ 0x1800469f0\n// > <???> @ 0x1801f8004\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:11 +0000\n// \n\n__int64 __fastcall sub_180041EA0(__int64 a1, __int64 a2, unsigned __int64 *a3, unsigned int a4)\n{\n  unsigned __int64 v7; // rcx\n  unsigned int v9[6]; // [rsp+20h] [rbp-18h] BYREF\n  unsigned int v10; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( a4 <= 0x20 )\n  {\n    if ( (unsigned int)sub_180041D20(a1, a2, &v10, a4) )\n    {\n      v7 = v10;\n      goto LABEL_8;\n    }\n    return 0;\n  }\n  if ( !(unsigned int)sub_180041D20(a1, a2, v9, a4 - 32) || !(unsigned int)sub_180041D20(a1, a2, &v10, 0x20u) )\n    return 0;\n  v7 = v10 | ((unsigned __int64)v9[0] << 32);\nLABEL_8:\n  *a3 = v7;\n  return 1;\n}", "assembly": "; \n; sub_180041EA0 from 0x180041ea0 to 0x180041f37 (151 bytes)\n; \n; 7 xrefs:\n; > sub_180045B60 @ 0x180045d53\n; > sub_180045B60 @ 0x180045d97\n; > sub_180046250 @ 0x1800462be\n; > sub_180046250 @ 0x1800463c4\n; > sub_180046250 @ 0x180046520\n; > sub_180046810 @ 0x1800469f0\n; > <???> @ 0x1801f8004\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:11 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180041ea0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180041ea5\npush    rdi                                                            ; +0xa, 0x180041eaa\nsub     rsp, 30h                                                       ; +0xb, 0x180041eab\nmov     rsi, r8                                                        ; +0xf, 0x180041eaf\nmov     rbx, rdx                                                       ; +0x12, 0x180041eb2\nmov     rdi, rcx                                                       ; +0x15, 0x180041eb5\ncmp     r9d, 20h ; ' '                                                 ; +0x18, 0x180041eb8\njbe     short loc_180041EFB                                            ; +0x1c, 0x180041ebc\nadd     r9d, 0FFFFFFE0h                                                ; +0x1e, 0x180041ebe\nlea     r8, [rsp+38h+var_18]                                           ; +0x22, 0x180041ec2\ncall    sub_180041D20                                                  ; +0x27, 0x180041ec7\ntest    eax, eax                                                       ; +0x2c, 0x180041ecc\njz      short loc_180041F09                                            ; +0x2e, 0x180041ece\nmov     r9d, 20h ; ' '                                                 ; +0x30, 0x180041ed0\nlea     r8, [rsp+38h+arg_18]                                           ; +0x36, 0x180041ed6\nmov     rdx, rbx                                                       ; +0x3b, 0x180041edb\nmov     rcx, rdi                                                       ; +0x3e, 0x180041ede\ncall    sub_180041D20                                                  ; +0x41, 0x180041ee1\ntest    eax, eax                                                       ; +0x46, 0x180041ee6\njz      short loc_180041F09                                            ; +0x48, 0x180041ee8\nmov     ecx, [rsp+38h+var_18]                                          ; +0x4a, 0x180041eea\nmov     eax, [rsp+38h+arg_18]                                          ; +0x4e, 0x180041eee\nshl     rcx, 20h                                                       ; +0x52, 0x180041ef2\nor      rcx, rax                                                       ; +0x56, 0x180041ef6\njmp     short loc_180041F1F                                            ; +0x59, 0x180041ef9\nlea     r8, [rsp+38h+arg_18]                                           ; +0x5b, 0x180041efb\ncall    sub_180041D20                                                  ; +0x60, 0x180041f00\ntest    eax, eax                                                       ; +0x65, 0x180041f05\njnz     short loc_180041F1B                                            ; +0x67, 0x180041f07\nxor     eax, eax                                                       ; +0x69, 0x180041f09\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x6b, 0x180041f0b\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x70, 0x180041f10\nadd     rsp, 30h                                                       ; +0x75, 0x180041f15\npop     rdi                                                            ; +0x79, 0x180041f19\nretn                                                                   ; +0x7a, 0x180041f1a\nmov     ecx, [rsp+38h+arg_18]                                          ; +0x7b, 0x180041f1b\nmov     [rsi], rcx                                                     ; +0x7f, 0x180041f1f\nmov     eax, 1                                                         ; +0x82, 0x180041f22\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x87, 0x180041f27\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x8c, 0x180041f2c\nadd     rsp, 30h                                                       ; +0x91, 0x180041f31\npop     rdi                                                            ; +0x95, 0x180041f35\nretn                                                                   ; +0x96, 0x180041f36", "xrefs": ["sub_180045B60 @ 0x180045d53", "sub_180045B60 @ 0x180045d97", "sub_180046250 @ 0x1800462be", "sub_180046250 @ 0x1800463c4", "sub_180046250 @ 0x180046520", "sub_180046810 @ 0x1800469f0", "<???> @ 0x1801f8004"], "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"}