Function at 0x140021d10
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x30], xmm6
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov rsi, rcx
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov qword [rbp - 8], 8
pxor xmm0, xmm0
movdqu xmmword [rbp], xmm0
test rax, rax
je 0x140022186
mov rdi, rax
movzx r14d, word [rax]
test r14w, r14w
je 0x140022186
mov qword [rbp - 0x40], 2
movdqu xmmword [rbp - 0x38], xmm0
mov eax, 2
xor r8d, r8d
lea rbx, [rbp - 0x40]
xor r15d, r15d
test r14w, r14w
jne 0x140021db6
jmp 0x140021e24
mov word [rax + r8*2], r14w
inc r8
mov qword [rbp - 0x30], r8
movzx r14d, word [rdi]
test r14w, r14w
je 0x140021e24
add rdi, 2
cmp r14w, 9
je 0x140021df0
movzx ecx, r14w
cmp ecx, 0x20
je 0x140021df0
cmp ecx, 0x22
jne 0x140021df6
not r15b
and r15b, 1
movzx r14d, word [rdi]
test r14w, r14w
jne 0x140021db6
jmp 0x140021e24
test r15b, 1
je 0x140021e24
cmp r8, qword [rbp - 0x38]
jne 0x140021da0
mov rcx, rbx
mov rdx, r8
call fcn.14001c5f0
mov rax, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
jmp 0x140021da0
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x140021e20
cmp eax, 9
je 0x140021e20
mov rbx, qword [rbp - 0x40]
lea rcx, [rbp - 0x28]
mov rdx, rbx
call fcn.14001e070
mov qword [rbp - 0x50], rbx
lea rcx, [rbp - 8]
xor edx, edx
call fcn.1400225c0
mov rax, qword [rbp - 8]
mov rcx, qword [rbp + 8]
mov rdx, rcx
shl rdx, 5
movdqu xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rax + rdx + 0x10], xmm1
movdqu xmmword [rax + rdx], xmm0
inc rcx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], 2
pxor xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
mov r13d, 2
xor r8d, r8d
lea r12, [rbp + 0x10]
movaps xmm6, xmmword [0x14005c630]
xor r14d, r14d
jmp 0x140021eb0
test r14b, r14b
mov r14b, 1
jne 0x140022026
nop
movzx r15d, word [rdi]
test r15d, r15d
je 0x1400221be
mov rbx, rdi
add rdi, 2
cmp r15d, 0x21
jg 0x140021f60
cmp r15d, 9
je 0x140021ede
cmp r15d, 0x20
jne 0x140021fd0
test r14b, r14b
jne 0x140021fd0
mov r13, qword [rbp + 0x10]
lea rcx, [rbp - 0x28]
mov rdx, r13
call fcn.14001e070
mov rdx, qword [rbp + 8]
cmp rdx, qword [rbp]
jne 0x140021f0e
lea rcx, [rbp - 8]
call fcn.1400225c0
mov rdx, qword [rbp + 8]
mov rax, qword [rbp - 8]
mov rcx, rdx
shl rcx, 5
movdqu xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rax + rcx + 0x10], xmm1
movdqu xmmword [rax + rcx], xmm0
inc rdx
mov qword [rbp + 8], rdx
mov qword [rbp + 0x20], 0
jmp 0x140021f44
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x140021f40
cmp eax, 9
je 0x140021f40
xor r8d, r8d
jmp 0x140021eb0
cmp r15d, 0x22
je 0x140021ea3
cmp r15d, 0x5c
jne 0x140021fd0
movzx eax, word [rdi]
xor r15d, r15d
cmp ax, 0x5c
jne 0x140021f93
nop dword [rax]
add rdi, 2
movzx eax, word [rbx + r15*2 + 4]
inc r15
cmp ax, 0x5c
je 0x140021f80
inc r15
cmp ax, 0x22
jne 0x140021ffb
mov rbx, r15
shr rbx, 1
mov rax, qword [rbp + 0x18]
sub rax, r8
cmp rax, rbx
jae 0x140022042
mov rcx, r12
mov rdx, r8
mov r8, rbx
call fcn.14005a890
mov r8, qword [rbp + 0x20]
jmp 0x140022048
cmp r8, qword [rbp + 0x18]
jne 0x140021fe5
mov rcx, r12
mov rdx, r8
call fcn.14001c5f0
mov r8, qword [rbp + 0x20]
mov r13, qword [rbp + 0x10]
mov word [r13 + r8*2], r15w
inc r8
mov qword [rbp + 0x20], r8
jmp 0x140021eb0
mov rax, qword [rbp + 0x18]
sub rax, r8
cmp rax, r15
jae 0x1400220e5
mov rcx, r12
mov rdx, r8
mov r8, r15
call fcn.14005a890
mov r13, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
jmp 0x1400220ea
movzx eax, word [rdi]
cmp eax, 0x22
je 0x140022149
xor r14d, r14d
test eax, eax
jne 0x140021eb0
jmp 0x14002223b
cmp r15, 2
jb 0x1400220a0
mov r13, qword [rbp + 0x10]
cmp r15, 0x20
jb 0x140022090
mov rax, rbx
and rax, 0xfffffffffffffff0
lea rcx, [r8*2 + 0x10]
add rcx, r13
add r8, rax
xor edx, edx
nop dword [rax]
movups xmmword [rcx + rdx*2 - 0x10], xmm6
movups xmmword [rcx + rdx*2], xmm6
add rdx, 0x10
cmp rax, rdx
jne 0x140022070
cmp rbx, rax
je 0x1400220a0
and ebx, 0xf
nop word [rax + rax]
mov word [r13 + r8*2], 0x5c
inc r8
dec rbx
jne 0x140022090
mov qword [rbp + 0x20], r8
test r15b, 1
je 0x140021eb0
xor ebx, ebx
cmp word [rdi], 0
setne r15b
cmp r8, qword [rbp + 0x18]
jne 0x1400220cd
mov rcx, r12
mov rdx, r8
call fcn.14001c5f0
mov r8, qword [rbp + 0x20]
mov bl, r15b
lea rdi, [rdi + rbx*2]
mov r13, qword [rbp + 0x10]
mov word [r13 + r8*2], 0x22
jmp 0x140021fef
test r15, r15
je 0x140022140
cmp r15, 0x10
jb 0x140022130
mov rax, r15
and rax, 0xfffffffffffffff0
lea rcx, [r8*2 + 0x10]
add rcx, r13
add r8, rax
xor edx, edx
nop word [rax + rax]
movups xmmword [rcx + rdx*2 - 0x10], xmm6
movups xmmword [rcx + rdx*2], xmm6
add rdx, 0x10
cmp rax, rdx
jne 0x140022110
cmp r15, rax
je 0x140022140
and r15d, 0xf
nop dword [rax + rax]
mov word [r13 + r8*2], 0x5c
inc r8
dec r15
jne 0x140022130
mov qword [rbp + 0x20], r8
jmp 0x140021eb0
cmp r8, qword [rbp + 0x18]
jne 0x14002215e
mov rcx, r12
mov rdx, r8
call fcn.14001c5f0
mov r8, qword [rbp + 0x20]
mov r13, qword [rbp + 0x10]
mov word [r13 + r8*2], 0x22
inc r8
mov qword [rbp + 0x20], r8
cmp word [rbx + 2], 0
lea rax, [rbx + 4]
cmovne rdi, rax
mov r14b, 1
jmp 0x140021eb0
lea rcx, [rbp - 0x28]
call fcn.140021ab0
movzx r14d, byte [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
cmp r14b, 2
jne 0x1400221d5
mov qword [rbp - 0x28], rcx
lea rcx, [rbp - 0x28]
call fcn.14001a250
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov ecx, 1
mov r14b, 1
jmp 0x1400221eb
test r8, r8
jne 0x14002223b
test r14b, r14b
jne 0x14002223b
mov rbx, qword [rbp - 8]
mov rdi, qword [rbp + 8]
jmp 0x140022283
movdqu xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, dword [rbp - 0xf]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp - 0xc]
mov dword [rbp + 0x13], eax
mov qword [rbp - 0x58], rcx
lea rcx, [rbp - 8]
xor edx, edx
call fcn.1400225c0
mov rbx, qword [rbp - 8]
mov rdi, qword [rbp + 8]
mov rax, rdi
shl rax, 5
mov rcx, qword [rbp - 0x58]
mov qword [rbx + rax], rcx
movdqa xmm0, xmmword [rbp - 0x50]
movdqu xmmword [rbx + rax + 8], xmm0
mov byte [rbx + rax + 0x18], r14b
mov ecx, dword [rbp + 0x10]
mov edx, dword [rbp + 0x13]
mov dword [rbx + rax + 0x1c], edx
mov dword [rbx + rax + 0x19], ecx
inc rdi
mov r14, qword [rbp]
jmp 0x1400222bb
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp - 0x28]
call fcn.14001e070
mov rdi, qword [rbp + 8]
cmp rdi, qword [rbp]
jne 0x140022262
lea rcx, [rbp - 8]
mov rdx, rdi
call fcn.1400225c0
mov rdi, qword [rbp + 8]
mov rbx, qword [rbp - 8]
mov rax, rdi
shl rax, 5
movdqu xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + rax + 0x10], xmm1
movdqu xmmword [rbx + rax], xmm0
inc rdi
mov r14, qword [rbp]
cmp qword [rbp + 0x18], 0
je 0x1400222a1
mov r8, qword [rbp + 0x10]
mov rcx, qword [0x14007bc78]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp - 0x38], 0
je 0x1400222bb
mov rcx, qword [0x14007bc78]
xor edx, edx
mov r8, qword [rbp - 0x50]
call qword [sym.imp.kernel32.dll_HeapFree]
shl rdi, 5
add rdi, rbx
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdi
movaps xmm6, xmmword [rbp + 0x30]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret