Function at 0x140003070
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rdi
sub rsp, 0x260
mov rdi, rsp
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov qword [rsp + 0x200], 0xfffffffffffffffe
mov rax, qword [0x140015038]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx eax, byte [0x1400151ac]
test eax, eax
je 0x1400031b5
mov r9d, 1
xor r8d, r8d
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.140005ff0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.140002c80
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x58]
call fcn.140005de0
nop
lea r8, [rsp + 0x58]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x30]
call fcn.140002de0
lea rcx, [rsp + 0x58]
call fcn.140008140
xor edx, edx
mov rcx, rax
call fcn.140002940
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400057a0
nop
lea rcx, [rsp + 0x98]
call fcn.1400068c0
mov r9, rax
mov r8d, dword [rsp + 0x44]
lea rdx, str.parent_process:__lu___s_
lea rcx, [rsp + 0x130]
call fcn.1400058c0
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x210]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x130]
call fcn.1400063c0
nop
lea rcx, [rsp + 0x98]
call fcn.140006380
nop
lea rcx, [rsp + 0x58]
call fcn.140006560
nop
lea rcx, [rsp + 0x28]
call fcn.140006630
movzx eax, byte [0x1400151ae]
test eax, eax
je 0x140003218
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
lea rdx, str.main_thread__lu
lea rcx, [rsp + 0x140]
call fcn.1400058c0
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x220], rax
mov rcx, qword [rsp + 0x220]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x140]
call fcn.1400063c0
movzx eax, byte [0x1400151ab]
test eax, eax
je 0x1400032fb
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x140003268
lea rdx, str.GetCommandLineW_failed
lea rcx, [rsp + 0x150]
call fcn.140005ef0
lea rdx, [0x140012f10]
lea rcx, [rsp + 0x150]
call sub.VCRUNTIME140.dll__CxxThrowException
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.140002940
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.1400057a0
nop
lea rcx, [rsp + 0xc8]
call fcn.1400068c0
mov r8, rax
lea rdx, str.command_line:__s
lea rcx, [rsp + 0x178]
call fcn.1400058c0
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x230], rax
mov rcx, qword [rsp + 0x230]
call fcn.140006940
mov rcx, rax
call fcn.140001240
nop
lea rcx, [rsp + 0x178]
call fcn.1400063c0
nop
lea rcx, [rsp + 0xc8]
call fcn.140006380
movzx eax, byte [0x1400151aa]
test eax, eax
je 0x14000345f
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x14000334c
lea rdx, str.GetEnvironmentStringsW_failed
lea rcx, [rsp + 0x188]
call fcn.140005ef0
lea rdx, [0x140012f10]
lea rcx, [rsp + 0x188]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax]
test eax, eax
je 0x140003423
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
mov qword [rsp + 0xf8], rax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.140002940
mov qword [rsp + 0x238], rax
mov r8d, 1
mov rdx, qword [rsp + 0x238]
lea rcx, [rsp + 0x108]
call fcn.1400057a0
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax]
cmp eax, 0x3d
je 0x1400033f5
lea rcx, [rsp + 0x108]
call fcn.1400068c0
mov qword [rsp + 0x248], rax
mov rcx, qword [rsp + 0x248]
call fcn.140001240
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
lea rax, [rax + rcx*2]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x108]
call fcn.140006380
jmp 0x14000335c
jmp 0x140003425
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
test eax, eax
jne 0x14000345f
lea rdx, str.FreeEnvironmentStringsW_failed
lea rcx, [rsp + 0x1d8]
call fcn.140005ef0
lea rdx, [0x140012f10]
lea rcx, [rsp + 0x1d8]
call sub.VCRUNTIME140.dll__CxxThrowException
mov rcx, rsp
lea rdx, [0x14000fb90]
call fcn.140009700
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140009880
add rsp, 0x260
pop rdi
ret