Function at 0x140295530
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x230
mov rsi, rcx
lea rax, vtable.CStdMemAlloc.0
mov qword [rcx], rax
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x268], rbx
lea rcx, [rbx + 0x800]
lea rax, [0x140295930]
mov qword [rsp + 0x20], rax
lea r9, [0x1402953b0]
mov edx, 0x60
lea r8d, [rdx - 0x42]
call fcn.14031e8c0
nop
lea rax, [0x14070ca50]
mov qword [rbx + 0x1340], rax
lea rbx, [rsi + 0x1360]
mov qword [rsp + 0x270], rbx
lea rcx, [rbx + 0x8000]
lea rax, [0x140295930]
mov qword [rsp + 0x20], rax
lea r9, [0x1402953b0]
mov edx, 0x60
lea r8d, [rdx - 0x2e]
call fcn.14031e8c0
nop
lea rax, [0x14060ca30]
mov qword [rbx + 0x92c0], rax
mov qword [rsi + 0xa630], 4
xor r14d, r14d
mov dword [rsi + 0xa638], r14d
lea rax, [fcn.140149610]
mov qword [rsi + 0xa648], rax
mov qword [rsi + 0xa650], r14
lea rcx, [rsi + 0xa658]
mov qword [rsp + 0x278], rcx
mov dword [rcx], r14d
mov dword [rcx + 4], r14d
add rcx, 8
call fcn.140292ce0
nop
mov byte [rsi + 0xa688], r14b
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
test rax, rax
je 0x14029576d
mov r8d, 0x200
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1402a0eb0
lea rcx, [rsp + 0x30]
call fcn.14033cc08
lea rdx, str._RESERVELOWMEM
lea rcx, [rsp + 0x30]
call fcn.140320db8
test rax, rax
je 0x14029574f
cmp byte [0x14060ca24], r14b
jne 0x14029574f
mov byte [0x14060ca24], 1
mov ebx, 0x10000000
movabs rbp, 0x100000000
nop dword [rax]
nop word [rax + rax]
mov r9d, 1
mov r8d, 0x2000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1402956f4
nop dword [rax]
cmp rax, rbp
jae 0x1402956e3
mov r9d, 1
mov r8d, 0x2000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1402956c0
jmp 0x1402956f4
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
shr rbx, 1
cmp rbx, 0x100000
jae 0x1402956a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rdi, rax
mov ebx, 0x10000
nop
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140295746
xor edx, edx
mov rcx, rdi
cmp rax, rbp
jae 0x14029573d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x140295723
jmp 0x140295746
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
shr rbx, 1
cmp rbx, 0x10
jae 0x140295710
mov edx, 1
movabs rcx, 0xffeeffeeffeeffee
mov r9d, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [rsi + 0xa68c], r14d
mov qword [rsi + 0xa690], r14
mov qword [rsi + 0xa698], r14
mov qword [rsi + 0xa6a0], r14
mov qword [rsi + 0xa6a8], r14
mov qword [rsi + 0xa6b0], r14
mov qword [rsi + 0xa6b8], r14
mov qword [rsi + 0xa6c0], r14
mov qword [rsi + 0xa6c8], r14
mov qword [rsi + 0xa6d4], r14
mov edx, 8
mov ecx, edx
call fcn.14033c984
mov qword [rsi + 0xa640], rax
test al, 7
je 0x1402957e7
lea r8, str.__size_t__m_nLogicalBytesAllocated____8___0
mov edx, 0x7e3
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_src_tier0memstd.cpp
call fcn.14029bf90
test al, al
jne 0x1402957e7
int3
mov rax, qword [rsi + 0xa640]
mov qword [rax], r14
mov rax, rsi
add rsp, 0x230
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret