{"type": "func", "start": 6443703372, "end": 6443703465, "name": "__acrt_allocate_buffer_for_argv", "pseudocode": "// \n// __acrt_allocate_buffer_for_argv from 0x180131c4c to 0x180131ca9 (93 bytes)\n// \n// 3 xrefs:\n// > _configure_narrow_argv @ 0x180131d54\n// > common_expand_argv_wildcards<char> @ 0x180139b57\n// > <???> @ 0x180202f48\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\nvoid *__fastcall _acrt_allocate_buffer_for_argv(unsigned __int64 a1, unsigned __int64 a2, unsigned __int64 a3)\n{\n  __int64 v3; // rcx\n  void *v4; // rbx\n\n  if ( a1 >= 0x1FFFFFFFFFFFFFFFLL )\n    return nullptr;\n  if ( a2 >= 0xFFFFFFFFFFFFFFFFuLL / a3 )\n    return nullptr;\n  v3 = 8 * a1;\n  if ( ~v3 <= a3 * a2 )\n    return nullptr;\n  v4 = calloc_base(a3 * a2 + v3, 1u);\n  free_base(nullptr);\n  return v4;\n}", "assembly": "; \n; __acrt_allocate_buffer_for_argv from 0x180131c4c to 0x180131ca9 (93 bytes)\n; \n; 3 xrefs:\n; > _configure_narrow_argv @ 0x180131d54\n; > common_expand_argv_wildcards<char> @ 0x180139b57\n; > <???> @ 0x180202f48\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\npush    rbx                                                            ; +0x0, 0x180131c4c\nsub     rsp, 20h                                                       ; +0x2, 0x180131c4e\nmov     rax, 1FFFFFFFFFFFFFFFh                                         ; +0x6, 0x180131c52\nmov     r9, rdx                                                        ; +0x10, 0x180131c5c\ncmp     rcx, rax                                                       ; +0x13, 0x180131c5f\njnb     short loc_180131CA1                                            ; +0x16, 0x180131c62\nxor     edx, edx                                                       ; +0x18, 0x180131c64\nor      rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x1a, 0x180131c66\ndiv     r8                                                             ; +0x1e, 0x180131c6a\ncmp     r9, rax                                                        ; +0x21, 0x180131c6d\njnb     short loc_180131CA1                                            ; +0x24, 0x180131c70\nshl     rcx, 3                                                         ; +0x26, 0x180131c72\nimul    r9, r8                                                         ; +0x2a, 0x180131c76\nmov     rax, rcx                                                       ; +0x2e, 0x180131c7a\nnot     rax                                                            ; +0x31, 0x180131c7d\ncmp     rax, r9                                                        ; +0x34, 0x180131c80\njbe     short loc_180131CA1                                            ; +0x37, 0x180131c83\nadd     rcx, r9; Count                                                 ; +0x39, 0x180131c85\nmov     edx, 1; Size                                                   ; +0x3c, 0x180131c88\ncall    _calloc_base                                                   ; +0x41, 0x180131c8d\nxor     ecx, ecx; Block                                                ; +0x46, 0x180131c92\nmov     rbx, rax                                                       ; +0x48, 0x180131c94\ncall    _free_base                                                     ; +0x4b, 0x180131c97\nmov     rax, rbx                                                       ; +0x50, 0x180131c9c\njmp     short loc_180131CA3                                            ; +0x53, 0x180131c9f\nxor     eax, eax                                                       ; +0x55, 0x180131ca1\nadd     rsp, 20h                                                       ; +0x57, 0x180131ca3\npop     rbx                                                            ; +0x5b, 0x180131ca7\nretn                                                                   ; +0x5c, 0x180131ca8", "xrefs": ["_configure_narrow_argv @ 0x180131d54", "common_expand_argv_wildcards<char> @ 0x180139b57", "<???> @ 0x180202f48"], "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"}