{"type": "func", "start": 6443012976, "end": 6443013125, "name": "sub_180089370", "pseudocode": "// \n// sub_180089370 from 0x180089370 to 0x180089405 (149 bytes)\n// \n// 6 xrefs:\n// > sub_180084AF0 @ 0x180084e71\n// > sub_180084AF0 @ 0x180084f04\n// > sub_180084AF0 @ 0x18008503b\n// > sub_180088DE0 @ 0x180088ff1\n// > sub_180088DE0 @ 0x18008900b\n// > <???> @ 0x1801bf934\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:22:05 +0000\n// \n\n__int64 __fastcall sub_180089370(__int64 a1, char a2, char a3, char a4, unsigned __int8 a5)\n{\n  __int64 v7; // rcx\n\n  v7 = *(_QWORD *)(a1 + 10248);\n  if ( (unsigned __int64)(v7 + 4) > 0x800 )\n  {\n    sub_180083D00(a1, a1, v7);\n    v7 = 0;\n    *(_QWORD *)(a1 + 10248) = 0;\n  }\n  *(_BYTE *)(v7 + a1) = a2;\n  *(_BYTE *)(*(_QWORD *)(a1 + 10248) + a1 + 1) = a3;\n  *(_BYTE *)(*(_QWORD *)(a1 + 10248) + a1 + 2) = a4;\n  *(_BYTE *)(*(_QWORD *)(a1 + 10248) + a1 + 3) = a5;\n  *(_QWORD *)(a1 + 10248) += 4LL;\n  return a5;\n}", "assembly": "; \n; sub_180089370 from 0x180089370 to 0x180089405 (149 bytes)\n; \n; 6 xrefs:\n; > sub_180084AF0 @ 0x180084e71\n; > sub_180084AF0 @ 0x180084f04\n; > sub_180084AF0 @ 0x18008503b\n; > sub_180088DE0 @ 0x180088ff1\n; > sub_180088DE0 @ 0x18008900b\n; > <???> @ 0x1801bf934\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:22:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180089370\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180089375\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18008937a\npush    rdi                                                            ; +0xf, 0x18008937f\nsub     rsp, 20h                                                       ; +0x10, 0x180089380\nmov     rbx, rcx                                                       ; +0x14, 0x180089384\nmovzx   edi, r9b                                                       ; +0x17, 0x180089387\nmov     rcx, [rcx+2808h]                                               ; +0x1b, 0x18008938b\nmovzx   esi, r8b                                                       ; +0x22, 0x180089392\nmovzx   ebp, dl                                                        ; +0x26, 0x180089396\nlea     rax, [rcx+4]                                                   ; +0x29, 0x180089399\ncmp     rax, 800h                                                      ; +0x2d, 0x18008939d\njbe     short loc_1800893BC                                            ; +0x33, 0x1800893a3\nmov     r8, rcx                                                        ; +0x35, 0x1800893a5\nmov     rdx, rbx                                                       ; +0x38, 0x1800893a8\nmov     rcx, rbx                                                       ; +0x3b, 0x1800893ab\ncall    sub_180083D00                                                  ; +0x3e, 0x1800893ae\nxor     ecx, ecx                                                       ; +0x43, 0x1800893b3\nmov     [rbx+2808h], rcx                                               ; +0x45, 0x1800893b5\nmov     [rcx+rbx], bpl                                                 ; +0x4c, 0x1800893bc\nmov     rax, [rbx+2808h]                                               ; +0x50, 0x1800893c0\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x57, 0x1800893c7\nmov     [rax+rbx+1], sil                                               ; +0x5c, 0x1800893cc\nmov     rax, [rbx+2808h]                                               ; +0x61, 0x1800893d1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x68, 0x1800893d8\nmov     [rax+rbx+2], dil                                               ; +0x6d, 0x1800893dd\nmov     rcx, [rbx+2808h]                                               ; +0x72, 0x1800893e2\nmovzx   eax, [rsp+28h+arg_20]                                          ; +0x79, 0x1800893e9\nmov     [rcx+rbx+3], al                                                ; +0x7e, 0x1800893ee\nadd     qword ptr [rbx+2808h], 4                                       ; +0x82, 0x1800893f2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8a, 0x1800893fa\nadd     rsp, 20h                                                       ; +0x8f, 0x1800893ff\npop     rdi                                                            ; +0x93, 0x180089403\nretn                                                                   ; +0x94, 0x180089404", "xrefs": ["sub_180084AF0 @ 0x180084e71", "sub_180084AF0 @ 0x180084f04", "sub_180084AF0 @ 0x18008503b", "sub_180088DE0 @ 0x180088ff1", "sub_180088DE0 @ 0x18008900b", "<???> @ 0x1801bf934"], "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"}