Function at 0x140051510
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x20], xmm6
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov r12, rcx
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
test rax, rax
je 0x140051953
mov rdi, rax
movzx esi, word [rax]
test si, si
je 0x140051953
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x50], 0
mov eax, 2
xor r14d, r14d
lea rbx, [rbp - 0x60]
xor r15d, r15d
test si, si
jne 0x1400515b8
jmp 0x140051604
mov rax, qword [rbp - 0x58]
mov word [rax + r14*2], si
inc r14
mov qword [rbp - 0x50], r14
movzx esi, word [rdi]
test si, si
je 0x140051604
add rdi, 2
cmp si, 9
je 0x1400515e0
movzx ecx, si
cmp ecx, 0x20
je 0x1400515e0
cmp ecx, 0x22
jne 0x1400515e6
not r15b
and r15b, 1
movzx esi, word [rdi]
test si, si
jne 0x1400515b8
jmp 0x140051604
test r15b, 1
je 0x140051604
cmp r14, qword [rbp - 0x60]
jne 0x1400515a4
mov rcx, rbx
call fcn.140050310
jmp 0x1400515a0
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x140051600
cmp eax, 9
je 0x140051600
mov rsi, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
mov rdx, rsi
mov r8, r14
call fcn.140054350
mov qword [rbp - 0x28], rsi
mov qword [rbp - 8], r12
lea rcx, [rbp - 0x20]
call fcn.140050110
mov rax, qword [rbp - 0x18]
movups xmm0, xmmword [rbp - 0x48]
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rbp - 0x10], 1
mov qword [rbp], 0
mov qword [rbp + 8], 2
mov qword [rbp + 0x10], 0
mov r15d, 2
xor r13d, r13d
movaps xmm6, xmmword [str._]
xor eax, eax
jmp 0x140051693
mov r15, qword [rbp + 8]
mov word [r15 + r13*2], si
inc r13
mov qword [rbp + 0x10], r13
mov eax, r12d
mov r12d, eax
movzx esi, word [rdi]
test esi, esi
je 0x140051995
mov rbx, rdi
add rdi, 2
cmp esi, 0x21
jg 0x140051740
cmp esi, 9
je 0x1400516bf
cmp esi, 0x20
jne 0x1400517b0
test r12b, r12b
jne 0x1400517b0
mov r15, qword [rbp + 8]
lea rcx, [rbp - 0x48]
mov rdx, r15
mov r8, r13
call fcn.140054350
mov rsi, qword [rbp - 0x10]
cmp rsi, qword [rbp - 0x20]
jne 0x1400516ee
lea rcx, [rbp - 0x20]
call fcn.140050110
mov rax, qword [rbp - 0x18]
mov rcx, rsi
shl rcx, 5
movups xmm0, xmmword [rbp - 0x48]
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp + 0x10], 0
jmp 0x140051724
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x140051720
cmp eax, 9
je 0x140051720
xor r13d, r13d
mov eax, r12d
jmp 0x140051693
cmp esi, 0x22
je 0x1400517c7
cmp esi, 0x5c
jne 0x1400517b0
movzx eax, word [rdi]
xor esi, esi
cmp ax, 0x5c
jne 0x140051772
nop dword [rax]
add rdi, 2
movzx eax, word [rbx + rsi*2 + 4]
inc rsi
cmp ax, 0x5c
je 0x140051760
lea r14, [rsi + 1]
cmp ax, 0x22
jne 0x1400517ed
mov rbx, r14
shr rbx, 1
mov rax, qword [rbp]
sub rax, r13
cmp rax, rbx
jae 0x140051811
mov rcx, rbp
mov rdx, r13
mov r8, rbx
call fcn.140069570
mov r13, qword [rbp + 0x10]
jmp 0x14005181b
cmp r13, qword [rbp]
jne 0x140051680
mov rcx, rbp
call fcn.140050310
jmp 0x140051680
mov al, 1
test r12b, r12b
je 0x140051693
movzx ecx, word [rdi]
cmp ecx, 0x22
je 0x14005191e
xor eax, eax
test ecx, ecx
jne 0x140051693
jmp 0x140051a1e
mov rax, qword [rbp]
sub rax, r13
cmp rax, r14
jae 0x14005182d
mov rcx, rbp
mov rdx, r13
mov r8, r14
call fcn.140069570
mov r15, qword [rbp + 8]
mov r13, qword [rbp + 0x10]
jmp 0x140051836
cmp r14, 2
jb 0x1400518df
mov r15, qword [rbp + 8]
cmp r14, 0x20
jae 0x140051894
mov rax, rbx
jmp 0x1400518d0
test r14, r14
je 0x14005168c
cmp r14, 0x10
jae 0x140051841
mov rax, r14
jmp 0x140051880
mov rcx, r14
and rcx, 0xfffffffffffffff0
mov eax, r14d
and eax, 0xf
lea rdx, [r15 + r13*2]
add rdx, 0x10
add r13, rcx
xor r8d, r8d
nop dword [rax]
movups xmmword [rdx + r8*2 - 0x10], xmm6
movups xmmword [rdx + r8*2], xmm6
add r8, 0x10
cmp rcx, r8
jne 0x140051860
cmp r14, rcx
je 0x14005168c
nop dword [rax]
mov word [r15 + r13*2], 0x5c
inc r13
dec rax
jne 0x140051880
jmp 0x14005168c
mov rcx, rbx
and rcx, 0xfffffffffffffff0
mov eax, ebx
and eax, 0xf
lea rdx, [r15 + r13*2]
add rdx, 0x10
add r13, rcx
xor r8d, r8d
nop
movups xmmword [rdx + r8*2 - 0x10], xmm6
movups xmmword [rdx + r8*2], xmm6
add r8, 0x10
cmp rcx, r8
jne 0x1400518b0
cmp rbx, rcx
je 0x1400518df
nop dword [rax]
mov word [r15 + r13*2], 0x5c
inc r13
dec rax
jne 0x1400518d0
mov qword [rbp + 0x10], r13
mov eax, r12d
test sil, 1
jne 0x140051693
xor esi, esi
cmp word [rdi], 0
setne bl
cmp r13, qword [rbp]
jne 0x140051907
mov rcx, rbp
call fcn.140050310
mov sil, bl
lea rdi, [rdi + rsi*2]
mov r15, qword [rbp + 8]
mov word [r15 + r13*2], 0x22
jmp 0x140051689
cmp r13, qword [rbp]
jne 0x14005192c
mov rcx, rbp
call fcn.140050310
mov r15, qword [rbp + 8]
mov word [r15 + r13*2], 0x22
inc r13
mov qword [rbp + 0x10], r13
cmp word [rbx + 2], 0
lea rax, [rbx + 4]
cmovne rdi, rax
mov eax, r12d
jmp 0x140051693
lea rcx, [rbp - 0x48]
call fcn.1400594c0
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1400519c5
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x48]
call fcn.14004f120
mov eax, 1
mov qword [rbp - 0x28], rax
mov bl, 1
xor esi, esi
xor eax, eax
mov qword [rbp - 8], rax
jmp 0x1400519e1
test r13, r13
jne 0x140051a1e
test r12b, r12b
jne 0x140051a1e
mov rdi, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov r12, qword [rbp - 8]
mov rbx, qword [rbp - 0x20]
mov rdx, qword [rbp]
test rdx, rdx
jne 0x140051a71
jmp 0x140051a83
mov qword [rbp - 8], rdx
mov qword [rbp - 0x28], rcx
mov rsi, qword [rbp - 0x38]
movzx ebx, byte [rbp - 0x30]
mov eax, dword [rbp - 0x2f]
mov dword [rbp], eax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 3], eax
lea rcx, [rbp - 0x20]
call fcn.140050110
mov rdi, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov qword [rdi], rax
mov rax, qword [rbp - 0x28]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], bl
mov eax, dword [rbp]
mov ecx, dword [rbp + 3]
mov dword [rdi + 0x1c], ecx
mov dword [rdi + 0x19], eax
mov rbx, qword [rbp - 0x20]
mov esi, 1
jmp 0x140051a9e
mov rdx, qword [rbp + 8]
lea rcx, [rbp - 0x48]
mov r8, r13
call fcn.140054350
mov rsi, qword [rbp - 0x10]
cmp rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 8]
jne 0x140051a45
lea rcx, [rbp - 0x20]
call fcn.140050110
mov rdi, qword [rbp - 0x18]
mov rax, rsi
shl rax, 5
movups xmm0, xmmword [rbp - 0x48]
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rdi + rax + 0x10], xmm1
movups xmmword [rdi + rax], xmm0
inc rsi
mov rbx, qword [rbp - 0x20]
mov rdx, qword [rbp]
test rdx, rdx
je 0x140051a83
mov rcx, qword [rbp + 8]
add rdx, rdx
mov r8d, 2
call fcn.140008920
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x140051a9e
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x28]
call fcn.140008920
shl rsi, 5
add rsi, rdi
mov qword [r12], rdi
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], rsi
mov rax, r12
movaps xmm6, xmmword [rbp + 0x20]
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret