Function at 0x4c7580
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4e8e50
mov dword [ebp - 0x6c], ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
test eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 4
mov dword [ebp - 0x3c], 0
je 0x4c7aae
movzx edi, word [eax]
test di, di
je 0x4c7aae
xor esi, esi
mov ecx, 2
xor ebx, ebx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], 0
test di, di
jne 0x4c7630
jmp 0x4c7693
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x20]
movzx edi, word [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov word [ecx + esi*2], di
inc esi
mov dword [ebp - 0x60], esi
movzx edi, word [eax]
test di, di
je 0x4c7693
add eax, 2
cmp di, 9
je 0x4c7660
movzx edx, di
cmp edx, 0x20
je 0x4c7660
cmp edx, 0x22
jne 0x4c7665
movzx edi, word [eax]
not bl
and bl, 1
test di, di
jne 0x4c7630
jmp 0x4c7693
test bl, 1
je 0x4c7693
cmp esi, dword [ebp - 0x68]
jne 0x4c7620
lea ecx, [ebp - 0x68]
mov edx, esi
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], di
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 1
call fcn.004c2db0
jmp 0x4c7610
add eax, 2
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4c7690
cmp ecx, 9
je 0x4c7690
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x58]
push esi
call fcn.004c43a0
add esp, 4
lea ecx, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x10], 5
call fcn.004c7d40
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
movaps xmm2, xmmword [0x5103a0]
mov esi, dword [ebp - 0x20]
xor ebx, ebx
xor edi, edi
mov edx, ecx
inc ecx
shl edx, 4
movsd qword [eax + edx + 8], xmm1
movsd qword [eax + edx], xmm0
mov dword [ebp - 0x3c], ecx
mov ecx, 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
movzx edx, word [esi]
mov dword [ebp - 0x24], ecx
lea ecx, [esi + 2]
add esi, 4
mov eax, esi
mov esi, ecx
mov ecx, dword [ebp - 0x24]
test dx, dx
je 0x4c7b79
cmp dx, 0x22
jne 0x4c7760
test bl, bl
je 0x4c78a0
movzx edx, word [esi]
test edx, edx
je 0x4c7b89
add esi, 2
add eax, 2
xor ebx, ebx
cmp edx, 0x22
jne 0x4c7729
jmp 0x4c78e9
movzx ecx, dx
cmp ecx, 9
je 0x4c7771
cmp ecx, 0x20
jne 0x4c7810
test bl, bl
jne 0x4c78a7
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], edx
push edi
call fcn.004c43a0
add esp, 4
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x44]
jne 0x4c77b2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], 3
call fcn.004c7d40
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x20]
movaps xmm2, xmmword [0x5103a0]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov ecx, edx
inc edx
shl ecx, 4
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], 0
jmp 0x4c77f3
add esi, 2
movzx edx, word [esi]
cmp edx, 0x20
je 0x4c77f0
cmp edx, 9
je 0x4c77f0
xor edi, edi
jmp 0x4c771c
cmp ecx, 0x5c
jne 0x4c78a7
movzx ecx, word [esi]
xor edx, edx
cmp cx, 0x5c
jne 0x4c7842
xor edx, edx
nop word cs:[eax + eax]
movzx ecx, word [eax]
inc edx
add eax, 2
cmp cx, 0x5c
je 0x4c7830
add eax, 0xfffffffe
mov esi, eax
inc edx
cmp cx, 0x22
mov dword [ebp - 0x48], edx
jne 0x4c792e
mov eax, dword [ebp - 0x38]
mov ecx, edx
shr ecx, 1
sub eax, edi
cmp eax, ecx
mov eax, ecx
mov ecx, dword [ebp - 0x24]
jae 0x4c796f
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x5c], eax
push eax
call fcn.0050d680
add esp, 4
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
movaps xmm2, xmmword [0x5103a0]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x5c]
jmp 0x4c7978
mov bl, 1
jmp 0x4c7716
cmp edi, dword [ebp - 0x38]
jne 0x4c78d9
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
call fcn.004c2db0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
movaps xmm2, xmmword [0x5103a0]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov word [ecx + edi*2], dx
inc edi
mov dword [ebp - 0x30], edi
jmp 0x4c7716
cmp edi, dword [ebp - 0x38]
jne 0x4c790f
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
call fcn.004c2db0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
movaps xmm2, xmmword [0x5103a0]
mov ecx, dword [ebp - 0x34]
lea eax, [esi - 2]
mov bl, 1
mov word [ecx + edi*2], 0x22
inc edi
mov dword [ebp - 0x30], edi
cmp word [esi - 2], 0
cmove esi, eax
jmp 0x4c7716
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
sub eax, edi
cmp eax, edx
jae 0x4c7989
mov eax, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x38]
mov edx, edi
push eax
call fcn.0050d680
add esp, 4
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
movaps xmm2, xmmword [0x5103a0]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x48]
jmp 0x4c7991
cmp edx, 2
jb 0x4c7a51
mov ecx, edi
mov edi, dword [ebp - 0x34]
cmp edx, 0x20
jae 0x4c79d1
mov edx, edi
jmp 0x4c7a3c
test edx, edx
je 0x4c7a2a
cmp edx, 0x10
jb 0x4c7a20
mov eax, edx
mov dword [ebp - 0x24], ecx
lea ecx, [ecx + edi*2 + 0x10]
and eax, 0xfffffff0
add edi, eax
mov edx, eax
nop word [eax + eax]
movups xmmword [ecx - 0x10], xmm2
movups xmmword [ecx], xmm2
add ecx, 0x20
add edx, 0xfffffff0
jne 0x4c79b0
mov edx, dword [ebp - 0x48]
cmp edx, eax
jne 0x4c7a0b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
jmp 0x4c7716
mov edx, ecx
mov dword [ebp - 0x5c], eax
and eax, 0xfffffff0
mov dword [ebp - 0x24], edi
lea ecx, [edi + ecx*2 + 0x10]
mov edi, edx
mov edx, eax
add edi, eax
nop word cs:[eax + eax]
movups xmmword [ecx - 0x10], xmm2
movups xmmword [ecx], xmm2
add ecx, 0x20
add edx, 0xfffffff0
jne 0x4c79f0
mov ecx, dword [ebp - 0x5c]
cmp ecx, eax
jne 0x4c7a32
mov ecx, dword [ebp - 0x24]
jmp 0x4c7a4e
mov ecx, dword [ebp - 0x24]
and edx, 0xf
nop word cs:[eax + eax]
nop dword [eax + eax]
mov word [ecx + edi*2], 0x5c
inc edi
dec edx
jne 0x4c7a20
mov dword [ebp - 0x30], edi
jmp 0x4c7716
mov edx, dword [ebp - 0x24]
mov eax, ecx
mov ecx, edi
and eax, 0xf
mov edi, ecx
nop
mov ecx, eax
mov word [edx + edi*2], 0x5c
inc edi
dec eax
jne 0x4c7a40
mov ecx, edx
mov edx, dword [ebp - 0x48]
test dl, 1
mov dword [ebp - 0x30], edi
je 0x4c7716
xor eax, eax
cmp word [esi], 0
setne cl
cmp edi, dword [ebp - 0x38]
jne 0x4c7a9b
mov byte [ebp - 0x24], cl
lea ecx, [ebp - 0x38]
mov edx, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 2
call fcn.004c2db0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
movaps xmm2, xmmword [0x5103a0]
mov ebx, dword [ebp - 0x28]
movzx ecx, byte [ebp - 0x24]
xor eax, eax
mov al, cl
mov ecx, dword [ebp - 0x34]
lea esi, [esi + eax*2]
mov word [ecx + edi*2], 0x22
jmp 0x4c78e0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], 0
call fcn.004c7390
movzx ecx, byte [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
cmp cl, 2
jne 0x4c7b22
cmp al, 3
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 1
jne 0x4c7b3f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], 7
push eax
mov dword [ebp - 0x20], edi
call dword [ecx]
add esp, 4
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x4c7b14
mov edx, dword [eax + 8]
mov ecx, dword [esi]
call fcn.004147c0
mov ecx, esi
mov edx, 4
call fcn.004147c0
jmp 0x4c7b3f
movzx esi, word [ebp - 0x4b]
mov ch, byte [ebp - 0x49]
mov edx, dword [ebp - 0x50]
mov word [ebp - 0x2b], si
mov byte [ebp - 0x29], ch
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x44]
xor edx, edx
mov dword [ebp - 0x10], 6
call fcn.004c7d40
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
mov eax, esi
inc esi
shl eax, 4
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov ebx, dword [ebp - 0x44]
jmp 0x4c7c02
test edi, edi
jne 0x4c7b89
test bl, bl
jne 0x4c7b89
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
jmp 0x4c7bd9
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x58]
push edi
call fcn.004c43a0
add esp, 4
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x44]
jne 0x4c7bbb
lea ecx, [ebp - 0x44]
mov edx, esi
mov dword [ebp - 0x10], 4
call fcn.004c7d40
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov eax, esi
inc esi
shl eax, 4
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov ebx, dword [ebp - 0x44]
cmp dword [ebp - 0x38], 0
je 0x4c7bef
mov ecx, dword [ebp - 0x34]
mov edx, 2
call fcn.004147c0
cmp dword [ebp - 0x68], 0
je 0x4c7c02
mov ecx, dword [ebp - 0x64]
mov edx, 2
call fcn.004147c0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x18]
shl esi, 4
add esi, edi
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov dword fs:[0], ecx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret