Function at 0x180058830
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 0x180058c73
mov rdi, rax
movzx esi, word [rax]
test si, si
je 0x180058c73
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 0x1800588d8
jmp 0x180058924
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 0x180058924
add rdi, 2
cmp si, 9
je 0x180058900
movzx ecx, si
cmp ecx, 0x20
je 0x180058900
cmp ecx, 0x22
jne 0x180058906
not r15b
and r15b, 1
movzx esi, word [rdi]
test si, si
jne 0x1800588d8
jmp 0x180058924
test r15b, 1
je 0x180058924
cmp r14, qword [rbp - 0x60]
jne 0x1800588c4
mov rcx, rbx
call fcn.180056500
jmp 0x1800588c0
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x180058920
cmp eax, 9
je 0x180058920
mov rsi, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
mov rdx, rsi
mov r8, r14
call fcn.18005bf70
mov qword [rbp - 0x28], rsi
mov qword [rbp - 8], r12
lea rcx, [rbp - 0x20]
call fcn.180056650
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 [0x180094ae0]
xor eax, eax
jmp 0x1800589b3
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 0x180058cb5
mov rbx, rdi
add rdi, 2
cmp esi, 0x21
jg 0x180058a60
cmp esi, 9
je 0x1800589df
cmp esi, 0x20
jne 0x180058ad0
test r12b, r12b
jne 0x180058ad0
mov r15, qword [rbp + 8]
lea rcx, [rbp - 0x48]
mov rdx, r15
mov r8, r13
call fcn.18005bf70
mov rsi, qword [rbp - 0x10]
cmp rsi, qword [rbp - 0x20]
jne 0x180058a0e
lea rcx, [rbp - 0x20]
call fcn.180056650
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 0x180058a44
add rdi, 2
movzx eax, word [rdi]
cmp eax, 0x20
je 0x180058a40
cmp eax, 9
je 0x180058a40
xor r13d, r13d
mov eax, r12d
jmp 0x1800589b3
cmp esi, 0x22
je 0x180058ae7
cmp esi, 0x5c
jne 0x180058ad0
movzx eax, word [rdi]
xor esi, esi
cmp ax, 0x5c
jne 0x180058a92
nop dword [rax]
add rdi, 2
movzx eax, word [rbx + rsi*2 + 4]
inc rsi
cmp ax, 0x5c
je 0x180058a80
lea r14, [rsi + 1]
cmp ax, 0x22
jne 0x180058b0d
mov rbx, r14
shr rbx, 1
mov rax, qword [rbp]
sub rax, r13
cmp rax, rbx
jae 0x180058b31
mov rcx, rbp
mov rdx, r13
mov r8, rbx
call fcn.1800790d0
mov r13, qword [rbp + 0x10]
jmp 0x180058b3b
cmp r13, qword [rbp]
jne 0x1800589a0
mov rcx, rbp
call fcn.180056500
jmp 0x1800589a0
mov al, 1
test r12b, r12b
je 0x1800589b3
movzx ecx, word [rdi]
cmp ecx, 0x22
je 0x180058c3e
xor eax, eax
test ecx, ecx
jne 0x1800589b3
jmp 0x180058d3e
mov rax, qword [rbp]
sub rax, r13
cmp rax, r14
jae 0x180058b4d
mov rcx, rbp
mov rdx, r13
mov r8, r14
call fcn.1800790d0
mov r15, qword [rbp + 8]
mov r13, qword [rbp + 0x10]
jmp 0x180058b56
cmp r14, 2
jb 0x180058bff
mov r15, qword [rbp + 8]
cmp r14, 0x20
jae 0x180058bb4
mov rax, rbx
jmp 0x180058bf0
test r14, r14
je 0x1800589ac
cmp r14, 0x10
jae 0x180058b61
mov rax, r14
jmp 0x180058ba0
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 0x180058b80
cmp r14, rcx
je 0x1800589ac
nop dword [rax]
mov word [r15 + r13*2], 0x5c
inc r13
dec rax
jne 0x180058ba0
jmp 0x1800589ac
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 0x180058bd0
cmp rbx, rcx
je 0x180058bff
nop dword [rax]
mov word [r15 + r13*2], 0x5c
inc r13
dec rax
jne 0x180058bf0
mov qword [rbp + 0x10], r13
mov eax, r12d
test sil, 1
jne 0x1800589b3
xor esi, esi
cmp word [rdi], 0
setne bl
cmp r13, qword [rbp]
jne 0x180058c27
mov rcx, rbp
call fcn.180056500
mov sil, bl
lea rdi, [rdi + rsi*2]
mov r15, qword [rbp + 8]
mov word [r15 + r13*2], 0x22
jmp 0x1800589a9
cmp r13, qword [rbp]
jne 0x180058c4c
mov rcx, rbp
call fcn.180056500
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 0x1800589b3
lea rcx, [rbp - 0x48]
call fcn.180063800
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x180058ce5
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x48]
call fcn.180055370
mov eax, 1
mov qword [rbp - 0x28], rax
mov bl, 1
xor esi, esi
xor eax, eax
mov qword [rbp - 8], rax
jmp 0x180058d01
test r13, r13
jne 0x180058d3e
test r12b, r12b
jne 0x180058d3e
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 0x180058d91
jmp 0x180058da3
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.180056650
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 0x180058dbe
mov rdx, qword [rbp + 8]
lea rcx, [rbp - 0x48]
mov r8, r13
call fcn.18005bf70
mov rsi, qword [rbp - 0x10]
cmp rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 8]
jne 0x180058d65
lea rcx, [rbp - 0x20]
call fcn.180056650
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 0x180058da3
mov rcx, qword [rbp + 8]
add rdx, rdx
mov r8d, 2
call fcn.180005ee0
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x180058dbe
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x28]
call fcn.180005ee0
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