Function at 0x1400030c0
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 [0x140011090]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx eax, byte [0x140011144]
test eax, eax
je 0x140003205
mov r9d, 1
xor r8d, r8d
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.1400043b0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.1400034e0
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x58]
call fcn.1400045e0
nop
lea r8, [rsp + 0x58]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x30]
call fcn.140003640
lea rcx, [rsp + 0x58]
call fcn.1400047e0
xor edx, edx
mov rcx, rax
call fcn.140002e90
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.140004df0
nop
lea rcx, [rsp + 0x98]
call fcn.140004e60
mov r9, rax
mov r8d, dword [rsp + 0x44]
lea rdx, str.parent_process:__lu___s_
lea rcx, [rsp + 0x130]
call fcn.1400048c0
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x210]
call fcn.140004cf0
mov rcx, rax
call fcn.1400010f0
nop
lea rcx, [rsp + 0x130]
call fcn.140004a50
nop
lea rcx, [rsp + 0x98]
call fcn.140004e80
nop
lea rcx, [rsp + 0x58]
call fcn.140004710
nop
lea rcx, [rsp + 0x28]
call fcn.140004430
movzx eax, byte [0x140011143]
test eax, eax
je 0x140003268
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
lea rdx, str.main_thread__lu
lea rcx, [rsp + 0x140]
call fcn.1400048c0
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x218]
mov qword [rsp + 0x220], rax
mov rcx, qword [rsp + 0x220]
call fcn.140004cf0
mov rcx, rax
call fcn.1400010f0
nop
lea rcx, [rsp + 0x140]
call fcn.140004a50
movzx eax, byte [0x140011146]
test eax, eax
je 0x14000334b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x1400032b8
lea rdx, str.GetCommandLineW_failed
lea rcx, [rsp + 0x150]
call fcn.140003ed0
lea rdx, [0x14000fe68]
lea rcx, [rsp + 0x150]
call sub.MSVCR100.dll__CxxThrowException
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.140002e90
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140004df0
nop
lea rcx, [rsp + 0xc8]
call fcn.140004e60
mov r8, rax
lea rdx, str.command_line:__s
lea rcx, [rsp + 0x178]
call fcn.1400048c0
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x230], rax
mov rcx, qword [rsp + 0x230]
call fcn.140004cf0
mov rcx, rax
call fcn.1400010f0
nop
lea rcx, [rsp + 0x178]
call fcn.140004a50
nop
lea rcx, [rsp + 0xc8]
call fcn.140004e80
movzx eax, byte [0x140011142]
test eax, eax
je 0x1400034ad
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x14000339c
lea rdx, str.GetEnvironmentStringsW_failed
lea rcx, [rsp + 0x188]
call fcn.140003ed0
lea rdx, [0x14000fe68]
lea rcx, [rsp + 0x188]
call sub.MSVCR100.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 0x140003473
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.140002e90
mov qword [rsp + 0x238], rax
mov r8d, 1
mov rdx, qword [rsp + 0x238]
lea rcx, [rsp + 0x108]
call fcn.140004df0
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax]
cmp eax, 0x3d
je 0x140003445
lea rcx, [rsp + 0x108]
call fcn.140004e60
mov qword [rsp + 0x248], rax
mov rcx, qword [rsp + 0x248]
call fcn.1400010f0
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.140004e80
jmp 0x1400033ac
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
test eax, eax
jne 0x1400034ad
lea rdx, str.FreeEnvironmentStringsW_failed
lea rcx, [rsp + 0x1d8]
call fcn.140003ed0
lea rdx, [0x14000fe68]
lea rcx, [rsp + 0x1d8]
call sub.MSVCR100.dll__CxxThrowException
mov rcx, rsp
lea rdx, [0x14000d7e0]
call fcn.140008050
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008030
add rsp, 0x260
pop rdi
ret