{"type": "func", "start": 6442720464, "end": 6442720531, "name": "sub_180041CD0", "pseudocode": "// \n// sub_180041CD0 from 0x180041cd0 to 0x180041d13 (67 bytes)\n// \n// 8 xrefs:\n// > sub_180046C10 @ 0x180046e78\n// > sub_180046ED0 @ 0x180046ff4\n// > sub_180046ED0 @ 0x18004709f\n// > sub_180047260 @ 0x1800472e6\n// > sub_1800474C0 @ 0x180047556\n// > sub_1800474C0 @ 0x18004760c\n// > sub_1800474C0 @ 0x18004764e\n// > <???> @ 0x1801f7fec\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_180041CD0(__int64 a1, __int64 a2, int *a3, __int64 a4)\n{\n  char v4; // di\n  __int64 result; // rax\n\n  v4 = a4;\n  result = sub_180041D20(a1, a2, a3, a4);\n  if ( (_DWORD)result )\n  {\n    *a3 = *a3 << (32 - v4) >> (32 - v4);\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; sub_180041CD0 from 0x180041cd0 to 0x180041d13 (67 bytes)\n; \n; 8 xrefs:\n; > sub_180046C10 @ 0x180046e78\n; > sub_180046ED0 @ 0x180046ff4\n; > sub_180046ED0 @ 0x18004709f\n; > sub_180047260 @ 0x1800472e6\n; > sub_1800474C0 @ 0x180047556\n; > sub_1800474C0 @ 0x18004760c\n; > sub_1800474C0 @ 0x18004764e\n; > <???> @ 0x1801f7fec\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, 0x180041cd0\npush    rdi                                                            ; +0x5, 0x180041cd5\nsub     rsp, 20h                                                       ; +0x6, 0x180041cd6\nmov     edi, r9d                                                       ; +0xa, 0x180041cda\nmov     rbx, r8                                                        ; +0xd, 0x180041cdd\ncall    sub_180041D20                                                  ; +0x10, 0x180041ce0\ntest    eax, eax                                                       ; +0x15, 0x180041ce5\njnz     short loc_180041CF4                                            ; +0x17, 0x180041ce7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x19, 0x180041ce9\nadd     rsp, 20h                                                       ; +0x1e, 0x180041cee\npop     rdi                                                            ; +0x22, 0x180041cf2\nretn                                                                   ; +0x23, 0x180041cf3\nmov     eax, [rbx]                                                     ; +0x24, 0x180041cf4\nmov     ecx, 20h ; ' '                                                 ; +0x26, 0x180041cf6\nsub     ecx, edi                                                       ; +0x2b, 0x180041cfb\nshl     eax, cl                                                        ; +0x2d, 0x180041cfd\nsar     eax, cl                                                        ; +0x2f, 0x180041cff\nmov     [rbx], eax                                                     ; +0x31, 0x180041d01\nmov     eax, 1                                                         ; +0x33, 0x180041d03\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x38, 0x180041d08\nadd     rsp, 20h                                                       ; +0x3d, 0x180041d0d\npop     rdi                                                            ; +0x41, 0x180041d11\nretn                                                                   ; +0x42, 0x180041d12", "xrefs": ["sub_180046C10 @ 0x180046e78", "sub_180046ED0 @ 0x180046ff4", "sub_180046ED0 @ 0x18004709f", "sub_180047260 @ 0x1800472e6", "sub_1800474C0 @ 0x180047556", "sub_1800474C0 @ 0x18004760c", "sub_1800474C0 @ 0x18004764e", "<???> @ 0x1801f7fec"], "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"}