Function at 0x10058160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
call sub.KERNEL32.dll_GetCommandLineW
test eax, eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
je 0x100585d7
movzx esi, word [eax]
test si, si
je 0x100585d7
add eax, 2
xor edx, edx
mov ecx, 2
xor ebx, ebx
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
jmp 0x100581e4
mov word [ecx + edx*2], si
inc edx
mov dword [esp + 0x3c], edx
movzx esi, word [edi]
lea eax, [edi + 2]
test si, si
je 0x10058233
mov edi, eax
cmp si, 9
je 0x10058210
movzx eax, si
cmp eax, 0x20
je 0x10058210
cmp eax, 0x22
jne 0x10058215
not bl
and bl, 1
movzx esi, word [edi]
lea eax, [edi + 2]
test si, si
jne 0x100581e4
jmp 0x10058233
test bl, 1
je 0x10058233
cmp edx, dword [esp + 0x38]
jne 0x100581d0
lea ecx, [esp + 0x34]
call fcn.1003f920
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
jmp 0x100581d0
add edi, 2
movzx eax, word [edi]
cmp eax, 0x20
je 0x10058230
cmp eax, 9
je 0x10058230
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x24]
push edx
push esi
push eax
call fcn.10063970
add esp, 0xc
lea ecx, [esp + 0x14]
xor edx, edx
call fcn.1003f9c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
movq xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x2c]
mov dword [esp + 0x58], esi
mov edx, ecx
inc ecx
shl edx, 4
movsd qword [eax + edx + 8], xmm1
movq qword [eax + edx], xmm0
mov dword [esp + 8], 2
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
movzx ebx, word [edi]
test bx, bx
je 0x100586b0
xor edx, edx
mov ecx, 2
mov dword [esp + 0x40], 0
jmp 0x100582eb
test byte [esp + 0x40], 1
jne 0x10058452
movzx ebx, word [esi]
mov al, 1
mov dword [esp + 0x40], eax
nop word cs:[eax + eax]
nop
test bx, bx
mov edi, esi
je 0x100586ba
movzx eax, bx
lea esi, [edi + 2]
cmp eax, 0x21
jg 0x10058390
cmp eax, 9
je 0x10058308
cmp eax, 0x20
jne 0x10058400
test byte [esp + 0x40], 1
jne 0x10058400
mov edi, dword [esp + 8]
push edx
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.10063970
add esp, 0xc
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x18]
jne 0x1005833d
lea ecx, [esp + 0x14]
call fcn.1003f9c0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
movq xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x2c]
mov ecx, edx
inc edx
shl ecx, 4
movsd qword [eax + ecx + 8], xmm1
movq qword [eax + ecx], xmm0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 0
jmp 0x10058373
add esi, 2
movzx ebx, word [esi]
cmp ebx, 0x20
je 0x10058370
cmp ebx, 9
je 0x10058370
mov ecx, edi
xor edx, edx
jmp 0x100582e0
cmp eax, 0x22
je 0x100582c0
cmp eax, 0x5c
jne 0x10058400
movzx eax, word [esi]
xor ebx, ebx
cmp ax, 0x5c
jne 0x100583bf
xor ebx, ebx
nop dword [eax + eax]
movzx eax, word [edi + ebx*2 + 4]
add esi, 2
inc ebx
cmp ax, 0x5c
je 0x100583b0
inc ebx
cmp ax, 0x22
jne 0x1005842a
mov eax, dword [esp + 0xc]
mov edi, ebx
shr edi, 1
sub eax, edx
cmp eax, edi
mov eax, edi
jae 0x10058473
mov edi, eax
lea ecx, [esp + 8]
push eax
call fcn.1003fa60
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, edi
jmp 0x1005847a
cmp edx, dword [esp + 0xc]
jne 0x10058413
lea ecx, [esp + 8]
call fcn.1003f920
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov word [eax + edx*2], bx
mov ecx, eax
inc edx
mov dword [esp + 0x10], edx
movzx ebx, word [esi]
jmp 0x100582e0
mov eax, dword [esp + 0xc]
sub eax, edx
cmp eax, ebx
jae 0x100584ef
lea ecx, [esp + 8]
push ebx
call fcn.1003fa60
add esp, 4
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x10]
jmp 0x100584f9
movzx ebx, word [esi]
cmp ebx, 0x22
je 0x100585a3
test ebx, ebx
je 0x100586ba
mov dword [esp + 0x40], 0
jmp 0x100582e0
mov edi, ecx
cmp ebx, 2
jb 0x100584dc
mov edi, dword [esp + 8]
cmp ebx, 0x20
jb 0x100584d0
mov dword [esp + 4], edi
mov edi, edx
mov ecx, eax
movdqa xmm0, xmmword [0x100d9df0]
mov dword [esp + 0x54], eax
and eax, 0xf
mov edx, dword [esp + 4]
and ecx, 0xfffffff0
lea edx, [edx + edi*2 + 0x10]
add edi, ecx
mov dword [esp + 0x20], edi
mov edi, ecx
nop dword [eax]
movdqu xmmword [edx - 0x10], xmm0
movdqu xmmword [edx], xmm0
add edx, 0x20
add edi, 0xfffffff0
jne 0x100584b0
cmp dword [esp + 0x54], ecx
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 4]
je 0x100584dc
nop
mov ecx, edx
mov word [edi + edx*2], 0x5c
inc edx
dec eax
jne 0x100584d0
test bl, 1
mov dword [esp + 0x10], edx
jne 0x10058505
movzx ebx, word [esi]
mov ecx, edi
jmp 0x100582e0
mov edi, ecx
test ebx, ebx
je 0x1005859c
cmp ebx, 0x10
jae 0x1005853f
mov eax, ebx
jmp 0x10058590
xor ebx, ebx
cmp word [esi], 0
setne byte [esp + 4]
cmp edx, dword [esp + 0xc]
jne 0x10058523
lea ecx, [esp + 8]
call fcn.1003f920
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + 4]
mov edi, dword [esp + 8]
mov bl, al
mov word [edi + edx*2], 0x22
mov ecx, edi
inc edx
lea esi, [esi + ebx*2]
jmp 0x1005841e
mov dword [esp + 4], edi
mov edi, edx
mov ecx, ebx
movdqa xmm0, xmmword [0x100d9df0]
mov eax, ebx
mov edx, dword [esp + 4]
and ecx, 0xfffffff0
and eax, 0xf
lea edx, [edx + edi*2 + 0x10]
add edi, ecx
mov dword [esp + 0x20], edi
mov edi, ecx
nop word [eax + eax]
movdqu xmmword [edx - 0x10], xmm0
movdqu xmmword [edx], xmm0
add edx, 0x20
add edi, 0xfffffff0
jne 0x10058570
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 4]
cmp ebx, ecx
je 0x1005859c
nop dword [eax]
mov ecx, edx
mov word [edi + edx*2], 0x5c
inc edx
dec eax
jne 0x10058590
mov ecx, edi
jmp 0x1005841e
cmp edx, dword [esp + 0xc]
jne 0x100585b6
lea ecx, [esp + 8]
call fcn.1003f920
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov word [eax + edx*2], 0x22
inc edx
mov ecx, eax
lea eax, [edi + 4]
mov dword [esp + 0x10], edx
cmp word [edi + 2], 0
cmovne esi, eax
jmp 0x10058422
lea ecx, [esp + 0x24]
call fcn.10075410
movzx eax, byte [esp + 0x30]
cmp al, 2
jne 0x1005863f
cmp byte [esp + 0x24], 3
pxor xmm0, xmm0
mov edi, 1
mov byte [esp + 4], 1
movdqa xmmword [esp + 0x40], xmm0
jne 0x10058666
mov ebx, dword [esp + 0x28]
mov esi, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [esi]
mov dword [esp + 0x20], ecx
push ecx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x10058630
push dword [esi + 8]
push eax
push dword [esp + 0x28]
call fcn.10004680
add esp, 0xc
push 4
push 0xc
push ebx
call fcn.10004680
add esp, 0xc
jmp 0x10058666
mov edi, dword [esp + 0x24]
movq xmm0, qword [esp + 0x28]
movzx edx, word [esp + 0x31]
movzx ecx, byte [esp + 0x33]
mov byte [esp + 4], al
movdqa xmmword [esp + 0x40], xmm0
mov word [esp + 8], dx
mov byte [esp + 0xa], cl
lea ecx, [esp + 0x14]
xor edx, edx
call fcn.1003f9c0
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
movdqa xmm0, xmmword [esp + 0x40]
movzx ecx, byte [esp + 4]
mov eax, esi
inc esi
shl eax, 4
mov dword [ebx + eax], edi
movq qword [ebx + eax + 4], xmm0
mov byte [ebx + eax + 0xc], cl
movzx ecx, byte [esp + 0xa]
mov byte [ebx + eax + 0xf], cl
movzx ecx, word [esp + 8]
mov word [ebx + eax + 0xd], cx
mov edi, dword [esp + 0x18]
jmp 0x10058704
xor edx, edx
mov dword [esp + 0x40], 0
test edx, edx
jne 0x1005871f
mov eax, dword [esp + 0x40]
and al, 1
jne 0x1005871f
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x100586eb
add eax, eax
push 2
push eax
push dword [esp + 0x10]
call fcn.10004680
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10058704
add eax, eax
push 2
push eax
push dword [esp + 0x60]
call fcn.10004680
add esp, 0xc
mov eax, dword [ebp + 8]
shl esi, 4
add esi, ebx
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push edx
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.10063970
add esp, 0xc
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x18]
jne 0x1005874a
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.1003f9c0
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
movq xmm0, qword [esp + 0x24]
movsd xmm1, qword [esp + 0x2c]
mov eax, esi
inc esi
shl eax, 4
movsd qword [ebx + eax + 8], xmm1
movq qword [ebx + eax], xmm0
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x100586da
jmp 0x100586eb