Function at 0x4a5580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov edi, ecx
call sub.kernel32.dll_GetCommandLineW
test eax, eax
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x58], edi
je 0x4a59fe
movzx esi, word [eax]
test si, si
je 0x4a59fe
add eax, 2
xor ebx, ebx
mov ecx, 2
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0
jmp 0x4a5603
mov word [ecx + ebx*2], si
inc ebx
mov dword [ebp - 0x48], ebx
movzx esi, word [edi]
lea eax, [edi + 2]
test si, si
je 0x4a5653
mov edi, eax
cmp si, 9
je 0x4a5630
movzx eax, si
cmp eax, 0x20
je 0x4a5630
cmp eax, 0x22
jne 0x4a5636
mov eax, dword [ebp - 0x10]
not al
and al, 1
mov dword [ebp - 0x10], eax
jmp 0x4a55f8
test byte [ebp - 0x10], 1
je 0x4a5653
cmp ebx, dword [ebp - 0x4c]
jne 0x4a55f0
lea ecx, [ebp - 0x50]
mov edx, ebx
call fcn.004858b0
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x48]
jmp 0x4a55f0
add edi, 2
movzx eax, word [edi]
cmp eax, 0x20
je 0x4a5650
cmp eax, 9
je 0x4a5650
mov edx, dword [ebp - 0x50]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x54], edx
mov ecx, esi
push ebx
call fcn.00486630
add esp, 4
lea ecx, [ebp - 0x2c]
xor edx, edx
call fcn.004a5c10
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov edx, ecx
inc ecx
shl edx, 4
movsd qword [eax + edx + 8], xmm1
movsd qword [eax + edx], xmm0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
movzx ebx, word [edi]
test bx, bx
je 0x4a5abc
mov ecx, 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
jmp 0x4a570b
test byte [ebp - 0x34], 1
jne 0x4a587d
movzx ebx, word [esi]
mov al, 1
mov dword [ebp - 0x34], eax
nop word cs:[eax + eax]
nop dword [eax]
test bx, bx
mov edi, esi
je 0x4a5aca
movzx eax, bx
lea esi, [edi + 2]
cmp eax, 0x21
jg 0x4a57b0
cmp eax, 9
je 0x4a5728
cmp eax, 0x20
jne 0x4a5820
test byte [ebp - 0x34], 1
jne 0x4a5820
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov edi, edx
lea ecx, [ebp - 0x44]
push eax
call fcn.00486630
add esp, 4
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x28]
jne 0x4a5759
lea ecx, [ebp - 0x2c]
call fcn.004a5c10
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov ecx, edx
inc edx
shl ecx, 4
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov ecx, edi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0
jmp 0x4a5793
add esi, 2
movzx ebx, word [esi]
cmp ebx, 0x20
je 0x4a5790
cmp ebx, 9
je 0x4a5790
mov dword [ebp - 0x10], 0
jmp 0x4a5700
cmp eax, 0x22
je 0x4a56e0
cmp eax, 0x5c
jne 0x4a5820
movzx eax, word [esi]
xor ebx, ebx
cmp ax, 0x5c
jne 0x4a57df
xor ebx, ebx
nop dword [eax + eax]
movzx eax, word [edi + ebx*2 + 4]
add esi, 2
inc ebx
cmp ax, 0x5c
je 0x4a57d0
inc ebx
cmp ax, 0x22
jne 0x4a5852
mov eax, dword [ebp - 0x1c]
mov edi, ebx
shr edi, 1
sub eax, dword [ebp - 0x10]
cmp eax, edi
jae 0x4a589d
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push edi
call fcn.004859e0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x4a58a6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jne 0x4a5839
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.004858b0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov word [ecx + eax*2], bx
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
movzx ebx, word [esi]
jmp 0x4a5700
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
cmp eax, ebx
jae 0x4a58ef
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ebx
call fcn.004859e0
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x4a58f7
movzx ebx, word [esi]
cmp ebx, 0x22
je 0x4a593b
test ebx, ebx
je 0x4a5aca
mov dword [ebp - 0x34], 0
jmp 0x4a5700
cmp ebx, 2
jb 0x4a59b2
mov ecx, dword [ebp - 0x20]
cmp ebx, 0x20
jb 0x4a59a0
mov edx, dword [ebp - 0x10]
mov eax, edi
movaps xmm0, xmmword [0x5423f0]
mov dword [ebp - 0x30], ecx
and eax, 0xfffffff0
lea ecx, [ecx + edx*2 + 0x10]
add edx, eax
mov dword [ebp - 0x10], edx
mov edx, eax
nop
movups xmmword [ecx - 0x10], xmm0
movups xmmword [ecx], xmm0
add ecx, 0x20
add edx, 0xfffffff0
jne 0x4a58d0
cmp edi, eax
jne 0x4a599a
mov ecx, dword [ebp - 0x30]
jmp 0x4a59b2
test ebx, ebx
je 0x4a5992
cmp ebx, 0x10
jb 0x4a5980
mov edi, dword [ebp - 0x10]
movaps xmm0, xmmword [0x5423f0]
mov eax, ebx
mov dword [ebp - 0x30], ecx
and eax, 0xfffffff0
mov edx, eax
lea ecx, [ecx + edi*2 + 0x10]
add edi, eax
nop word [eax + eax]
movups xmmword [ecx - 0x10], xmm0
movups xmmword [ecx], xmm0
add ecx, 0x20
add edx, 0xfffffff0
jne 0x4a5920
cmp ebx, eax
mov dword [ebp - 0x10], edi
jne 0x4a597a
mov ecx, dword [ebp - 0x30]
jmp 0x4a5992
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jne 0x4a5954
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.004858b0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x22
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
lea eax, [edi + 4]
cmp word [edi + 2], 0
cmovne esi, eax
movzx ebx, word [esi]
jmp 0x4a5700
mov ecx, dword [ebp - 0x30]
and ebx, 0xf
mov eax, dword [ebp - 0x10]
dec ebx
mov word [ecx + eax*2], 0x5c
lea eax, [eax + 1]
mov dword [ebp - 0x10], eax
jne 0x4a5980
mov eax, dword [ebp - 0x10]
jmp 0x4a5847
mov ecx, dword [ebp - 0x30]
and edi, 0xf
mov eax, dword [ebp - 0x10]
dec edi
mov word [ecx + eax*2], 0x5c
lea eax, [eax + 1]
mov dword [ebp - 0x10], eax
jne 0x4a59a0
mov eax, dword [ebp - 0x10]
test bl, 1
mov dword [ebp - 0x18], eax
je 0x4a584a
xor ebx, ebx
cmp word [esi], 0
mov eax, dword [ebp - 0x10]
setne byte [ebp - 0x30]
cmp eax, dword [ebp - 0x1c]
jne 0x4a59e4
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.004858b0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov bl, al
mov eax, dword [ebp - 0x10]
lea esi, [esi + ebx*2]
mov word [ecx + eax*2], 0x22
jmp 0x4a5843
lea ecx, [ebp - 0x44]
call fcn.004a53b0
movzx ecx, byte [ebp - 0x38]
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
cmp cl, 2
jne 0x4a5a6c
cmp al, 3
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
jne 0x4a5a89
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x4a5a5c
cmp dword [esi + 8], 9
jb 0x4a5a4e
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
jmp 0x4a5a89
movzx esi, word [ebp - 0x37]
mov ch, byte [ebp - 0x35]
mov edx, dword [ebp - 0x3c]
mov word [ebp - 0x13], si
mov byte [ebp - 0x11], ch
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x2c]
xor edx, edx
call fcn.004a5c10
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x18]
mov eax, ebx
inc ebx
shl eax, 4
movsd qword [esi + eax + 8], xmm1
movsd qword [esi + eax], xmm0
mov edi, dword [ebp - 0x28]
jmp 0x4a5b57
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4a5adf
mov eax, dword [ebp - 0x34]
and al, 1
jne 0x4a5adf
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
jmp 0x4a5b28
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x44]
mov edi, edx
mov ecx, esi
push eax
call fcn.00486630
add esp, 4
mov ebx, dword [ebp - 0x24]
cmp ebx, dword [ebp - 0x28]
jne 0x4a5b0a
lea ecx, [ebp - 0x2c]
mov edx, ebx
call fcn.004a5c10
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov eax, ebx
inc ebx
shl eax, 4
movsd qword [esi + eax + 8], xmm1
movsd qword [esi + eax], xmm0
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], 0
je 0x4a5b41
push dword [ebp - 0x20]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x4c], 0
je 0x4a5b57
push dword [ebp - 0x54]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x58]
shl ebx, 4
add ebx, esi
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret