{"type": "func", "start": 6442749584, "end": 6442749741, "name": "sub_180048E90", "pseudocode": "// \n// sub_180048E90 from 0x180048e90 to 0x180048f2d (157 bytes)\n// \n// 3 xrefs:\n// > sub_180048300 @ 0x180048450\n// > sub_18004DE80 @ 0x18004df85\n// > <???> @ 0x1801bbadc\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 11:21:41 +0000\n// \n\n__int64 __fastcall sub_180048E90(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  _QWORD *v6; // rcx\n  __int64 result; // rax\n\n  v6 = *(_QWORD **)a1;\n  if ( v6 )\n  {\n    if ( (unsigned __int64)(2 * ((__int64)(*(_QWORD *)(a1 + 16) - (_QWORD)v6) >> 1)) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v6 - *(v6 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v6 = (_QWORD *)*(v6 - 1);\n    }\n    j_j_free_0(v6);\n  }\n  *(_QWORD *)a1 = a2;\n  *(_QWORD *)(a1 + 8) = a2 + 2 * a3;\n  result = a2 + 2 * a4;\n  *(_QWORD *)(a1 + 16) = result;\n  return result;\n}", "assembly": "; \n; sub_180048E90 from 0x180048e90 to 0x180048f2d (157 bytes)\n; \n; 3 xrefs:\n; > sub_180048300 @ 0x180048450\n; > sub_18004DE80 @ 0x18004df85\n; > <???> @ 0x1801bbadc\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 11:21:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180048e90\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180048e95\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180048e9a\npush    rdi                                                            ; +0xf, 0x180048e9f\nsub     rsp, 30h                                                       ; +0x10, 0x180048ea0\nmov     rbx, rcx                                                       ; +0x14, 0x180048ea4\nmov     rsi, r9                                                        ; +0x17, 0x180048ea7\nmov     rcx, [rcx]                                                     ; +0x1a, 0x180048eaa\nmov     rbp, r8                                                        ; +0x1d, 0x180048ead\nmov     rdi, rdx                                                       ; +0x20, 0x180048eb0\ntest    rcx, rcx                                                       ; +0x23, 0x180048eb3\njz      short loc_180048EEB                                            ; +0x26, 0x180048eb6\nmov     rdx, [rbx+10h]                                                 ; +0x28, 0x180048eb8\nsub     rdx, rcx                                                       ; +0x2c, 0x180048ebc\nsar     rdx, 1                                                         ; +0x2f, 0x180048ebf\nadd     rdx, rdx                                                       ; +0x32, 0x180048ec2\ncmp     rdx, 1000h                                                     ; +0x35, 0x180048ec5\njb      short loc_180048EE6                                            ; +0x3c, 0x180048ecc\nmov     rax, [rcx-8]                                                   ; +0x3e, 0x180048ece\nadd     rdx, 27h ; '''                                                 ; +0x42, 0x180048ed2\nsub     rcx, rax                                                       ; +0x46, 0x180048ed6\nsub     rcx, 8                                                         ; +0x49, 0x180048ed9\ncmp     rcx, 1Fh                                                       ; +0x4d, 0x180048edd\nja      short loc_180048F13                                            ; +0x51, 0x180048ee1\nmov     rcx, rax; Block                                                ; +0x53, 0x180048ee3\ncall    j_j_free_0                                                     ; +0x56, 0x180048ee6\nlea     rax, [rdi+rbp*2]                                               ; +0x5b, 0x180048eeb\nmov     [rbx], rdi                                                     ; +0x5f, 0x180048eef\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x62, 0x180048ef2\nmov     [rbx+8], rax                                                   ; +0x67, 0x180048ef7\nlea     rax, [rdi+rsi*2]                                               ; +0x6b, 0x180048efb\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x6f, 0x180048eff\nmov     [rbx+10h], rax                                                 ; +0x74, 0x180048f04\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x78, 0x180048f08\nadd     rsp, 30h                                                       ; +0x7d, 0x180048f0d\npop     rdi                                                            ; +0x81, 0x180048f11\nretn                                                                   ; +0x82, 0x180048f12\nxor     r9d, r9d; LineNo                                               ; +0x83, 0x180048f13\nmov     [rsp+38h+Reserved], 0; Reserved                                ; +0x86, 0x180048f16\nxor     r8d, r8d; FileName                                             ; +0x8f, 0x180048f1f\nxor     edx, edx; FunctionName                                         ; +0x92, 0x180048f22\nxor     ecx, ecx; Expression                                           ; +0x94, 0x180048f24\ncall    cs:_invoke_watson                                              ; +0x96, 0x180048f26\ndb 0CCh                                                                ; +0x9c, 0x180048f2c", "xrefs": ["sub_180048300 @ 0x180048450", "sub_18004DE80 @ 0x18004df85", "<???> @ 0x1801bbadc"], "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"}