Function at 0x10001955c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
and dword [rax + 0x18], 0
xor r14d, r14d
xor r13d, r13d
test rdx, rdx
mov rdi, rdx
mov rsi, rcx
jne 0x100019597
lea eax, [rdx + 0x57]
jmp 0x100019836
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
test rax, rax
jne 0x1000195ac
mov ebx, 0x65b
jmp 0x10001982c
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov r12, rax
jne 0x1000195cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000197fe
mov rax, qword [rax]
mov ebp, 0x7fffffff
mov esi, 2
test rax, rax
je 0x10001960a
mov rcx, rbp
xor edx, edx
cmp word [rax], dx
je 0x1000195f4
add rax, rsi
sub rcx, 1
jne 0x1000195e6
test rcx, rcx
mov edi, 0x80070057
jne 0x100019602
xor ebx, ebx
jmp 0x100019614
mov rbx, rbp
sub rbx, rcx
jmp 0x100019616
mov rbx, qword [rsp + 0x68]
mov edi, 0x80070057
mov edx, edi
test edx, edx
js 0x1000197ef
add rbx, 1
mov ecx, 0x40
lea rdx, [rbx + rbx]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov r14, rax
jne 0x100019641
lea ebx, [rax + 8]
jmp 0x1000197f4
test rbx, rbx
mov rdx, qword [r12]
je 0x1000197ef
cmp rbx, rbp
ja 0x1000197ef
mov r15d, 0x7ffffffe
xor r8d, r8d
mov rcx, rax
mov r9, r15
sub r9, rbx
sub rdx, rax
lea rax, [r9 + rbx]
test rax, rax
je 0x10001968a
movzx eax, word [rdx + rcx]
test ax, ax
je 0x10001968a
mov word [rcx], ax
add rcx, rsi
sub rbx, 1
jne 0x10001966c
test rbx, rbx
jne 0x100019698
sub rcx, rsi
mov r8d, 0x8007007a
and word [rcx], r13w
test r8d, r8d
js 0x1000197ef
mov r9d, dword [rsp + 0x70]
cmp r9d, 1
jle 0x1000197d3
xor ebp, ebp
lea r11d, [rbp + 1]
lea ebx, [rbp + 8]
cmp r9d, r11d
jle 0x100019718
mov rax, qword [rsp + 0x68]
lea r10, [r12 + 8]
mov rcx, qword [r10]
test rcx, rcx
je 0x1000196f9
mov eax, 0x7fffffff
xor r8d, r8d
mov rdx, rax
cmp word [rcx], r8w
je 0x1000196ee
add rcx, rsi
sub rdx, 1
jne 0x1000196df
test rdx, rdx
jne 0x1000197e7
xor eax, eax
mov r8d, edi
test r8d, r8d
js 0x1000197ef
add rax, 1
add r11d, 1
add r10, rbx
add rbp, rax
cmp r11d, r9d
jl 0x1000196cc
lea rdx, [rbp + rbp]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
mov r13, rax
je 0x1000197f4
test rbp, rbp
mov r9, qword [r12 + 8]
je 0x1000197ef
cmp rbp, 0x7fffffff
ja 0x1000197ef
xor r8d, r8d
sub r15, rbp
mov rdx, rbp
sub r9, rax
mov rcx, rax
lea rax, [r15 + rdx]
test rax, rax
je 0x10001977d
movzx eax, word [r9 + rcx]
test ax, ax
je 0x10001977d
mov word [rcx], ax
add rcx, rsi
sub rdx, 1
jne 0x10001975e
test rdx, rdx
jne 0x10001978b
sub rcx, rsi
mov r8d, 0x8007007a
and word [rcx], 0
test r8d, r8d
js 0x1000197ef
cmp dword [rsp + 0x70], esi
jle 0x1000197d3
lea rdi, [r12 + 0x10]
lea r8, [0x1000025d0]
mov rdx, rbp
mov rcx, r13
call fcn.100020240
test eax, eax
js 0x1000197ef
mov r8, qword [rdi]
mov rdx, rbp
mov rcx, r13
call fcn.100020240
test eax, eax
js 0x1000197ef
add esi, 1
add rdi, rbx
cmp esi, dword [rsp + 0x70]
jl 0x10001979f
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
xor ebx, ebx
mov qword [rsi], r14
mov qword [rdi], r13
jmp 0x1000197fe
sub rax, rdx
jmp 0x1000196fc
mov ebx, 0x65b
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
test r12, r12
je 0x10001980c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x100019834
test r14, r14
je 0x10001981e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x10001982c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsi], 0
and qword [rdi], 0
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret