{"type": "func", "start": 6442549904, "end": 6442549988, "name": "sub_180018290", "pseudocode": "// \n// sub_180018290 from 0x180018290 to 0x1800182e4 (84 bytes)\n// \n// 1 xrefs:\n// > sub_180006640 @ 0x180006678\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\nunsigned __int64 __fastcall sub_180018290(int a1, int a2)\n{\n  __int64 v2; // r9\n  int v3; // r8d\n  unsigned __int64 v4; // rcx\n\n  v2 = qword_1801B2810;\n  if ( !qword_1801B2810 || dword_1801B2818 <= 0 )\n    return 0;\n  v3 = ((qword_1801B2810 + 3) & 0xFFFFFFFC) - qword_1801B2810;\n  v4 = (a2 * a1 + 3) & 0xFFFFFFFFFFFFFFFCuLL;\n  qword_1801B2810 = ((qword_1801B2810 + 3) & 0xFFFFFFFFFFFFFFFCuLL) + v4;\n  dword_1801B2818 -= v3 + v4;\n  return (v2 + 3) & 0xFFFFFFFFFFFFFFFCuLL;\n}", "assembly": "; \n; sub_180018290 from 0x180018290 to 0x1800182e4 (84 bytes)\n; \n; 1 xrefs:\n; > sub_180006640 @ 0x180006678\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\nmov     r9, cs:qword_1801B2810                                         ; +0x0, 0x180018290\ntest    r9, r9                                                         ; +0x7, 0x180018297\njz      short loc_1800182E1                                            ; +0xa, 0x18001829a\nmov     r10d, cs:dword_1801B2818                                       ; +0xc, 0x18001829c\ntest    r10d, r10d                                                     ; +0x13, 0x1800182a3\njle     short loc_1800182E1                                            ; +0x16, 0x1800182a6\nimul    ecx, edx                                                       ; +0x18, 0x1800182a8\nlea     r8, [r9+3]                                                     ; +0x1b, 0x1800182ab\nand     r8, 0FFFFFFFFFFFFFFFCh                                         ; +0x1f, 0x1800182af\nsub     r8, r9                                                         ; +0x23, 0x1800182b3\nadd     ecx, 3                                                         ; +0x26, 0x1800182b6\nmovsxd  rcx, ecx                                                       ; +0x29, 0x1800182b9\nand     rcx, 0FFFFFFFFFFFFFFFCh                                        ; +0x2c, 0x1800182bc\nlea     rax, [r9+rcx]                                                  ; +0x30, 0x1800182c0\nadd     rax, r8                                                        ; +0x34, 0x1800182c4\nmov     cs:qword_1801B2810, rax                                        ; +0x37, 0x1800182c7\nlea     eax, [r8+rcx]                                                  ; +0x3e, 0x1800182ce\nsub     r10d, eax                                                      ; +0x42, 0x1800182d2\nlea     rax, [r8+r9]                                                   ; +0x45, 0x1800182d5\nmov     cs:dword_1801B2818, r10d                                       ; +0x49, 0x1800182d9\nretn                                                                   ; +0x50, 0x1800182e0\nxor     eax, eax                                                       ; +0x51, 0x1800182e1\nretn                                                                   ; +0x53, 0x1800182e3", "xrefs": ["sub_180006640 @ 0x180006678"], "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"}