{"type": "func", "start": 6442951056, "end": 6442951191, "name": "sub_18007A190", "pseudocode": "// \n// sub_18007A190 from 0x18007a190 to 0x18007a217 (135 bytes)\n// \n// 3 xrefs:\n// > sub_1800798E0 @ 0x1800799a2\n// > sub_180079D80 @ 0x180079dc6\n// > <???> @ 0x1801b4c80\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\nchar *__fastcall sub_18007A190(_QWORD *a1, unsigned __int64 a2)\n{\n  size_t v3; // rbx\n  void *v4; // rax\n  void *v5; // rcx\n  _QWORD *v6; // rax\n  char *result; // rax\n\n  if ( a2 > 0x7FFFFFFFFFFFFFFLL )\n    goto LABEL_11;\n  v3 = 32 * a2;\n  if ( 32 * a2 < 0x1000 )\n  {\n    if ( v3 )\n      v6 = operator new(v3);\n    else\n      v6 = nullptr;\n    goto LABEL_10;\n  }\n  if ( v3 + 39 < v3 )\nLABEL_11:\n    Concurrency::cancel_current_task();\n  v4 = operator new(v3 + 39);\n  v5 = v4;\n  if ( !v4 )\n    invalid_parameter_noinfo_noreturn();\n  v6 = (_QWORD *)(((unsigned __int64)v4 + 39) & 0xFFFFFFFFFFFFFFE0uLL);\n  *(v6 - 1) = v5;\nLABEL_10:\n  *a1 = v6;\n  a1[1] = v6;\n  result = (char *)&v6[v3 / 8];\n  a1[2] = result;\n  return result;\n}", "assembly": "; \n; sub_18007A190 from 0x18007a190 to 0x18007a217 (135 bytes)\n; \n; 3 xrefs:\n; > sub_1800798E0 @ 0x1800799a2\n; > sub_180079D80 @ 0x180079dc6\n; > <???> @ 0x1801b4c80\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     [rsp+arg_0], rbx                                               ; +0x0, 0x18007a190\npush    rdi                                                            ; +0x5, 0x18007a195\nsub     rsp, 20h                                                       ; +0x6, 0x18007a196\nmov     rax, 7FFFFFFFFFFFFFFh                                          ; +0xa, 0x18007a19a\nmov     rbx, rdx                                                       ; +0x14, 0x18007a1a4\nmov     rdi, rcx                                                       ; +0x17, 0x18007a1a7\ncmp     rdx, rax                                                       ; +0x1a, 0x18007a1aa\nja      short loc_18007A211                                            ; +0x1d, 0x18007a1ad\nshl     rbx, 5                                                         ; +0x1f, 0x18007a1af\ncmp     rbx, 1000h                                                     ; +0x23, 0x18007a1b3\njb      short loc_18007A1E7                                            ; +0x2a, 0x18007a1ba\nlea     rcx, [rbx+27h]; Size                                           ; +0x2c, 0x18007a1bc\ncmp     rcx, rbx                                                       ; +0x30, 0x18007a1c0\njbe     short loc_18007A211                                            ; +0x33, 0x18007a1c3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x18007a1c5\nmov     rcx, rax                                                       ; +0x3a, 0x18007a1ca\ntest    rax, rax                                                       ; +0x3d, 0x18007a1cd\njz      short loc_18007A1E0                                            ; +0x40, 0x18007a1d0\nadd     rax, 27h ; '''                                                 ; +0x42, 0x18007a1d2\nand     rax, 0FFFFFFFFFFFFFFE0h                                        ; +0x46, 0x18007a1d6\nmov     [rax-8], rcx                                                   ; +0x4a, 0x18007a1da\njmp     short loc_18007A1F8                                            ; +0x4e, 0x18007a1de\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x50, 0x18007a1e0\ndb 0CCh                                                                ; +0x56, 0x18007a1e6\ntest    rbx, rbx                                                       ; +0x57, 0x18007a1e7\njz      short loc_18007A1F6                                            ; +0x5a, 0x18007a1ea\nmov     rcx, rbx; Size                                                 ; +0x5c, 0x18007a1ec\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5f, 0x18007a1ef\njmp     short loc_18007A1F8                                            ; +0x64, 0x18007a1f4\nxor     eax, eax                                                       ; +0x66, 0x18007a1f6\nmov     [rdi], rax                                                     ; +0x68, 0x18007a1f8\nmov     [rdi+8], rax                                                   ; +0x6b, 0x18007a1fb\nadd     rax, rbx                                                       ; +0x6f, 0x18007a1ff\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x72, 0x18007a202\nmov     [rdi+10h], rax                                                 ; +0x77, 0x18007a207\nadd     rsp, 20h                                                       ; +0x7b, 0x18007a20b\npop     rdi                                                            ; +0x7f, 0x18007a20f\nretn                                                                   ; +0x80, 0x18007a210\ncall    ?cancel_current_task@Concurrency@@YAXXZ; Concurrency::cancel_current_task(void) ; +0x81, 0x18007a211\ndb 0CCh                                                                ; +0x86, 0x18007a216", "xrefs": ["sub_1800798E0 @ 0x1800799a2", "sub_180079D80 @ 0x180079dc6", "<???> @ 0x1801b4c80"], "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"}