Function at 0x140001040
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140040490]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov r13d, ebx
mov dword [rsp + 0x20], ebx
mov r15d, ebx
lea r12, [rcx + 0x48]
mov rdx, r12
lea rcx, [r11 - 0x80]
call fcn.140003da0
nop
mov rdx, rax
mov rcx, r12
call fcn.140003350
nop
cmp qword [rsp + 0x80], 8
jb 0x1400010bc
mov rcx, qword [rsp + 0x68]
call fcn.140018e2c
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x68], bx
mov rax, qword [r12 + 0x18]
cmp rax, 8
jb 0x1400010e3
mov rcx, qword [r12]
jmp 0x1400010e6
mov rcx, r12
cmp word [rcx], 0x22
jne 0x14000117b
mov dword [rsp + 0x30], ebx
cmp rax, 8
jb 0x1400010fe
mov r12, qword [r12]
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rdx, qword [rax]
lea rcx, [rsp + 0x90]
call fcn.140010260
nop
mov rcx, rax
call fcn.140011670
movzx edi, al
lea rcx, [rsp + 0x90]
call fcn.140017780
test dil, dil
je 0x14000116c
mov rdx, qword [rbx]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsi + 0x20]
call fcn.1400033f0
mov r15d, 1
mov dword [rsp + 0x34], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x140001489
or rsi, 0xffffffffffffffff
lea edx, [rsi + 0x21]
mov r8, rbx
mov rcx, r12
call fcn.140001e60
mov r14, rax
cmp rax, rsi
je 0x14000120d
mov rcx, qword [r12 + 0x10]
cmp rax, rcx
jae 0x14000120d
mov r8, qword [r12 + 0x18]
cmp r8, 8
jb 0x1400011b0
mov rax, qword [r12]
jmp 0x1400011b3
mov rax, r12
lea rdi, [rax + rcx*2]
cmp r8, 8
jb 0x1400011c3
mov rax, qword [r12]
jmp 0x1400011c6
mov rax, r12
lea rbx, [rax + r14*2]
cmp rbx, rdi
jae 0x14000120d
mov ecx, 1
lea rax, [0x140033d98]
movzx edx, word [rbx]
nop
cmp word [rax], dx
je 0x1400011f0
add rax, 2
dec rcx
je 0x1400011f6
jmp 0x1400011e0
add rbx, 2
jmp 0x1400011ca
cmp r8, 8
jb 0x140001202
mov rax, qword [r12]
jmp 0x140001205
mov rax, r12
sub rbx, rax
sar rbx, 1
jmp 0x140001210
mov rbx, rsi
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, r12
call fcn.140001f50
nop
mov edi, 7
mov qword [rsp + 0x58], rdi
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov word [rsp + 0x40], cx
mov rsi, qword [rsp + 0x78]
cmp rsi, 0xffffffffffffffff
mov rax, 0xffffffffffffffff
cmova rsi, rax
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
ja 0x14000147c
cmp rsi, rdi
jbe 0x14000127d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140003740
mov rdi, qword [rsp + 0x58]
jmp 0x14000128c
test rsi, rsi
jne 0x14000128f
mov qword [rsp + 0x50], rcx
mov word [rsp + 0x40], cx
test rsi, rsi
setne al
test al, al
je 0x1400012e3
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
cmp rdi, 8
cmovae rcx, qword [rsp + 0x40]
lea rdi, [rsi + rsi]
mov r8, rdi
call fcn.1400193c0
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
xor esi, esi
mov word [rax + rdi], si
jmp 0x1400012e5
xor esi, esi
lea rcx, [rsp + 0x40]
call fcn.140010c30
nop
lea rcx, [rsp + 0x40]
call fcn.140011670
test al, al
je 0x140001330
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140010b40
nop
or r13d, 1
mov dword [rsp + 0x20], r13d
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140011070
test al, al
je 0x140001330
mov dil, 1
jmp 0x140001333
xor dil, dil
test r13b, 1
je 0x140001376
and r13d, 0xfffffffe
mov dword [rsp + 0x20], r13d
cmp qword [rsp + 0xa8], 8
jb 0x14000135a
mov rcx, qword [rsp + 0x90]
call fcn.140018e2c
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rsi
mov word [rsp + 0x90], si
test dil, dil
jne 0x14000140d
cmp r14, 0xffffffffffffffff
je 0x1400013e3
cmp rbx, 0xffffffffffffffff
je 0x1400013e3
inc r15d
cmp qword [rsp + 0x58], 8
jb 0x1400013a0
mov rcx, qword [rsp + 0x40]
call fcn.140018e2c
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
cmp qword [rsp + 0x80], 8
jb 0x1400013c8
mov rcx, qword [rsp + 0x68]
call fcn.140018e2c
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
jmp 0x14000117b
mov r15d, esi
cmp qword [rsp + 0x58], 8
jb 0x1400013f8
mov rcx, qword [rsp + 0x40]
call fcn.140018e2c
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
jmp 0x14000144f
mov rcx, qword [rsp + 0x28]
add rcx, 0x20
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
call fcn.140003920
inc r15d
cmp qword [rsp + 0x58], 8
jb 0x14000143c
mov rcx, qword [rsp + 0x40]
call fcn.140018e2c
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
cmp qword [rsp + 0x80], 8
jb 0x140001464
mov rcx, qword [rsp + 0x68]
call fcn.140018e2c
mov word [rsp + 0x68], si
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], 7
jmp 0x140001489
lea rcx, str.string_too_long
call fcn.140017800
nop
mov eax, r15d
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140018e50
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret