{"type": "func", "start": 6442649344, "end": 6442649459, "name": "sub_180030700", "pseudocode": "// \n// sub_180030700 from 0x180030700 to 0x180030773 (115 bytes)\n// \n// 2 xrefs:\n// > sub_1800308E0 @ 0x180030908\n// > <???> @ 0x1801b01b0\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\n_QWORD *__fastcall sub_180030700(__int64 a1, _QWORD *a2)\n{\n  size_t v2; // rcx\n  void *v3; // rax\n  void *v4; // rcx\n  _QWORD *result; // rax\n\n  if ( *a2 > 0x3FFFFFFFFFFFFFFFuLL )\n    goto LABEL_10;\n  v2 = 4LL * *a2;\n  if ( v2 < 0x1000 )\n  {\n    if ( v2 )\n      return operator new(v2);\n    else\n      return nullptr;\n  }\n  if ( v2 + 39 < v2 )\nLABEL_10:\n    Concurrency::cancel_current_task();\n  v3 = operator new(v2 + 39);\n  v4 = v3;\n  if ( !v3 )\n    invalid_parameter_noinfo_noreturn();\n  result = (_QWORD *)(((unsigned __int64)v3 + 39) & 0xFFFFFFFFFFFFFFE0uLL);\n  *(result - 1) = v4;\n  return result;\n}", "assembly": "; \n; sub_180030700 from 0x180030700 to 0x180030773 (115 bytes)\n; \n; 2 xrefs:\n; > sub_1800308E0 @ 0x180030908\n; > <???> @ 0x1801b01b0\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\nsub     rsp, 28h                                                       ; +0x0, 0x180030700\nmov     rcx, [rdx]                                                     ; +0x4, 0x180030704\nmov     rax, 3FFFFFFFFFFFFFFFh                                         ; +0x7, 0x180030707\ncmp     rcx, rax                                                       ; +0x11, 0x180030711\nja      short loc_18003076D                                            ; +0x14, 0x180030714\nlea     rcx, ds:0[rcx*4]; Size                                         ; +0x16, 0x180030716\ncmp     rcx, 1000h                                                     ; +0x1e, 0x18003071e\njb      short loc_180030758                                            ; +0x25, 0x180030725\nlea     rax, [rcx+27h]                                                 ; +0x27, 0x180030727\ncmp     rax, rcx                                                       ; +0x2b, 0x18003072b\njbe     short loc_18003076D                                            ; +0x2e, 0x18003072e\nmov     rcx, rax; Size                                                 ; +0x30, 0x180030730\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x33, 0x180030733\nmov     rcx, rax                                                       ; +0x38, 0x180030738\ntest    rax, rax                                                       ; +0x3b, 0x18003073b\njz      short loc_180030751                                            ; +0x3e, 0x18003073e\nadd     rax, 27h ; '''                                                 ; +0x40, 0x180030740\nand     rax, 0FFFFFFFFFFFFFFE0h                                        ; +0x44, 0x180030744\nmov     [rax-8], rcx                                                   ; +0x48, 0x180030748\nadd     rsp, 28h                                                       ; +0x4c, 0x18003074c\nretn                                                                   ; +0x50, 0x180030750\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x51, 0x180030751\nalign 8                                                                ; +0x57, 0x180030757\ntest    rcx, rcx                                                       ; +0x58, 0x180030758\njz      short loc_180030766                                            ; +0x5b, 0x18003075b\nadd     rsp, 28h                                                       ; +0x5d, 0x18003075d\njmp     ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x61, 0x180030761\nxor     eax, eax                                                       ; +0x66, 0x180030766\nadd     rsp, 28h                                                       ; +0x68, 0x180030768\nretn                                                                   ; +0x6c, 0x18003076c\ncall    ?cancel_current_task@Concurrency@@YAXXZ; Concurrency::cancel_current_task(void) ; +0x6d, 0x18003076d\ndb 0CCh                                                                ; +0x72, 0x180030772", "xrefs": ["sub_1800308E0 @ 0x180030908", "<???> @ 0x1801b01b0"], "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"}