Function at 0x140001130
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xe0
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
mov rdx, qword [rsp + 0xf0]
add rdx, 0x50
lea rcx, [rsp + 0x50]
call fcn.1400025b0
nop
mov rdx, qword [rsp + 0xf0]
add rdx, 0x78
lea rcx, [rsp + 0x40]
call fcn.1400025b0
nop
mov dword [rsp + 0x64], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x64]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14000122e
mov dword [rsp + 0x48], 0x1ef9009
xor eax, eax
cmp eax, 1
je 0x140001229
call fcn.140004430
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140001229
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x88]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x1ef9009
mov dword [rsp + 0x28], 0x1e
lea rax, [0x14002e310]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e350]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [r10 + 0x30]
jmp 0x1400017a6
cmp dword [rsp + 0x64], 3
jge 0x1400012b0
mov dword [rsp + 0x48], 0x1ff9009
xor eax, eax
cmp eax, 1
je 0x1400012ab
call fcn.140004430
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1400012ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x90]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x1ff9009
mov dword [rsp + 0x28], 0x1f
lea rax, [0x14002e3b8]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e400]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x90]
call qword [r10 + 0x30]
jmp 0x1400017a6
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
lea r8, [rsp + 0x78]
lea rdx, [0x14002e468]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
call qword [sym.imp.MSVCR90.dll_swscanf_s]
cmp eax, 1
je 0x140001360
mov dword [rsp + 0x48], 0x22f9009
xor eax, eax
cmp eax, 1
je 0x14000135b
call fcn.140004430
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x14000135b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0x98]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x22f9009
mov dword [rsp + 0x28], 0x22
lea rax, [0x14002e478]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e4c0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x98]
call qword [r10 + 0x30]
jmp 0x1400017a6
lea r8, [rsp + 0x70]
lea rdx, str._I64u
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.MSVCR90.dll_swscanf_s]
cmp eax, 1
je 0x1400013fe
mov dword [rsp + 0x48], 0x23f9009
xor eax, eax
cmp eax, 1
je 0x1400013f9
call fcn.140004430
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1400013f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0xa0]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x23f9009
mov dword [rsp + 0x28], 0x23
lea rax, [0x14002e538]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e580]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call qword [r10 + 0x30]
jmp 0x1400017a6
mov rbx, qword [rsp + 0xf0]
add rbx, 0x10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400014bd
mov dword [rsp + 0x48], 0x2cf9466
xor eax, eax
cmp eax, 1
je 0x1400014b8
call fcn.140004430
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x1400014b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0xa8]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x2cf9466
mov dword [rsp + 0x28], 0x2c
lea rax, [0x14002e5e8]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e630]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xa8]
call qword [r10 + 0x30]
jmp 0x1400017a6
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x10], 0xffffffffffffffff
je 0x1400014db
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x10], 0
jne 0x140001556
mov dword [rsp + 0x48], 0x2df9466
xor eax, eax
cmp eax, 1
je 0x140001551
call fcn.140004430
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x140001551
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0xb0]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x2df9466
mov dword [rsp + 0x28], 0x2d
lea rax, [0x14002e698]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e6e0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call qword [r10 + 0x30]
jmp 0x1400017a6
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r11, rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x14000158e
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 8], 0
jne 0x140001609
mov dword [rsp + 0x48], 0x30f9466
xor eax, eax
cmp eax, 1
je 0x140001604
call fcn.140004430
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x140001604
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0xb8]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x30f9466
mov dword [rsp + 0x28], 0x30
lea rax, [0x14002e748]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e790]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call qword [r10 + 0x30]
jmp 0x1400017a6
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x58], 3
je 0x1400016b7
mov dword [rsp + 0x48], 0x34f9466
xor eax, eax
cmp eax, 1
je 0x1400016b2
call fcn.140004430
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1400016b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0xc0]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x34f9466
mov dword [rsp + 0x28], 0x34
lea rax, [0x14002e7f8]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e840]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xc0]
call qword [r10 + 0x30]
jmp 0x1400017a6
cmp dword [rsp + 0x60], 3
je 0x140001736
mov dword [rsp + 0x48], 0x35f9466
xor eax, eax
cmp eax, 1
je 0x140001734
call fcn.140004430
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
je 0x140001734
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r10, qword [rsp + 0xc8]
mov r10, qword [r10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x35f9466
mov dword [rsp + 0x28], 0x35
lea rax, [0x14002e8a8]
mov qword [rsp + 0x20], rax
lea r9, [0x14002e8f0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call qword [r10 + 0x30]
jmp 0x1400017a6
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x5c], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [rsp + 0x68], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xf8]
mov qword [rcx + 0x18], rax
xor eax, eax
test eax, eax
jne 0x140001184
mov eax, dword [rsp + 0x48]
and eax, 0xfff
test eax, eax
je 0x1400017f4
mov rax, qword [rsp + 0xf0]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x10], 0
je 0x1400017f4
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rsp + 0xf0]
mov qword [r11 + 0x10], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xd0], eax
lea rcx, [rsp + 0x40]
call fcn.1400025f0
nop
lea rcx, [rsp + 0x50]
call fcn.1400025f0
mov eax, dword [rsp + 0xd0]
add rsp, 0xe0
pop rbx
ret