{"type": "func", "start": 6442550000, "end": 6442550080, "name": "sub_1800182F0", "pseudocode": "// \n// sub_1800182F0 from 0x1800182f0 to 0x180018340 (80 bytes)\n// \n// 17 xrefs:\n// > sub_180006640 @ 0x180006690\n// > sub_180006640 @ 0x1800066e3\n// > sub_180006640 @ 0x1800067f9\n// > sub_180006640 @ 0x18000685e\n// > sub_180006640 @ 0x180006869\n// > sub_180006640 @ 0x180006874\n// > sub_180006640 @ 0x18000687f\n// > sub_180007790 @ 0x180007864\n// > sub_180007790 @ 0x180007870\n// > sub_180007790 @ 0x1800078fe\n// > sub_180007790 @ 0x180007951\n// > sub_180007790 @ 0x1800079b4\n// > sub_180007E10 @ 0x180007e9a\n// > sub_180007E10 @ 0x180007f63\n// > sub_180007E10 @ 0x180007fb3\n// > sub_180009F30 @ 0x180009fe4\n// > sub_180009F30 @ 0x180009ff4\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:52:48 +0000\n// \n\nunsigned __int64 __fastcall sub_1800182F0(int a1)\n{\n  __int64 v1; // r8\n  unsigned __int64 v2; // rcx\n  int v3; // edx\n\n  v1 = qword_1801B2810;\n  if ( !qword_1801B2810 || dword_1801B2818 <= 0 )\n    return 0;\n  v2 = (a1 + 3) & 0xFFFFFFFFFFFFFFFCuLL;\n  v3 = ((qword_1801B2810 + 3) & 0xFFFFFFFC) - qword_1801B2810;\n  qword_1801B2810 = ((qword_1801B2810 + 3) & 0xFFFFFFFFFFFFFFFCuLL) + v2;\n  dword_1801B2818 -= v3 + v2;\n  return (v1 + 3) & 0xFFFFFFFFFFFFFFFCuLL;\n}", "assembly": "; \n; sub_1800182F0 from 0x1800182f0 to 0x180018340 (80 bytes)\n; \n; 17 xrefs:\n; > sub_180006640 @ 0x180006690\n; > sub_180006640 @ 0x1800066e3\n; > sub_180006640 @ 0x1800067f9\n; > sub_180006640 @ 0x18000685e\n; > sub_180006640 @ 0x180006869\n; > sub_180006640 @ 0x180006874\n; > sub_180006640 @ 0x18000687f\n; > sub_180007790 @ 0x180007864\n; > sub_180007790 @ 0x180007870\n; > sub_180007790 @ 0x1800078fe\n; > sub_180007790 @ 0x180007951\n; > sub_180007790 @ 0x1800079b4\n; > sub_180007E10 @ 0x180007e9a\n; > sub_180007E10 @ 0x180007f63\n; > sub_180007E10 @ 0x180007fb3\n; > sub_180009F30 @ 0x180009fe4\n; > sub_180009F30 @ 0x180009ff4\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:52:48 +0000\n; \nmov     r8, cs:qword_1801B2810                                         ; +0x0, 0x1800182f0\ntest    r8, r8                                                         ; +0x7, 0x1800182f7\njz      short loc_18001833D                                            ; +0xa, 0x1800182fa\nmov     r9d, cs:dword_1801B2818                                        ; +0xc, 0x1800182fc\ntest    r9d, r9d                                                       ; +0x13, 0x180018303\njle     short loc_18001833D                                            ; +0x16, 0x180018306\nlea     eax, [rcx+3]                                                   ; +0x18, 0x180018308\nmovsxd  rcx, eax                                                       ; +0x1b, 0x18001830b\nlea     rdx, [r8+3]                                                    ; +0x1e, 0x18001830e\nand     rcx, 0FFFFFFFFFFFFFFFCh                                        ; +0x22, 0x180018312\nand     rdx, 0FFFFFFFFFFFFFFFCh                                        ; +0x26, 0x180018316\nsub     rdx, r8                                                        ; +0x2a, 0x18001831a\nlea     rax, [r8+rcx]                                                  ; +0x2d, 0x18001831d\nadd     rax, rdx                                                       ; +0x31, 0x180018321\nmov     cs:qword_1801B2810, rax                                        ; +0x34, 0x180018324\nlea     eax, [rdx+rcx]                                                 ; +0x3b, 0x18001832b\nsub     r9d, eax                                                       ; +0x3e, 0x18001832e\nlea     rax, [rdx+r8]                                                  ; +0x41, 0x180018331\nmov     cs:dword_1801B2818, r9d                                        ; +0x45, 0x180018335\nretn                                                                   ; +0x4c, 0x18001833c\nxor     eax, eax                                                       ; +0x4d, 0x18001833d\nretn                                                                   ; +0x4f, 0x18001833f", "xrefs": ["sub_180006640 @ 0x180006690", "sub_180006640 @ 0x1800066e3", "sub_180006640 @ 0x1800067f9", "sub_180006640 @ 0x18000685e", "sub_180006640 @ 0x180006869", "sub_180006640 @ 0x180006874", "sub_180006640 @ 0x18000687f", "sub_180007790 @ 0x180007864", "sub_180007790 @ 0x180007870", "sub_180007790 @ 0x1800078fe", "sub_180007790 @ 0x180007951", "sub_180007790 @ 0x1800079b4", "sub_180007E10 @ 0x180007e9a", "sub_180007E10 @ 0x180007f63", "sub_180007E10 @ 0x180007fb3", "sub_180009F30 @ 0x180009fe4", "sub_180009F30 @ 0x180009ff4"], "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"}