Function at 0x40cca0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446b78
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
cmp word [edx], ax
jne 0x40cd00
xor ecx, ecx
jmp 0x40cd14
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd05
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404410
push str.IIF_SETUPPATH
lea ecx, [ebx + 4]
call fcn.004146e0
mov edx, eax
cmp word [edx], 0
jne 0x40cd37
xor ecx, ecx
jmp 0x40cd4f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd40
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00404410
push 0xc
push str.install.cfg
lea ecx, [ebp - 0x44]
call fcn.004031f0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cdf4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x44]
call fcn.00416790
push 1
push 0x45381c
lea ecx, [ebp - 0x2c]
call fcn.004031f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403490
push 0x453820
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 8
jb 0x40cdf4
push dword [ebp - 0x5c]
call fcn.00420070
add esp, 4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Effective_command_line:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0x10
lea ecx, [ebp - 0x2c]
push 3
push 0
push 0x4538b4
call fcn.00402a50
cmp eax, 0xffffffff
je 0x40ce3f
push 4
push 0x4538bc
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.004032d0
push 3
push 0
push 0x4538c8
lea ecx, [ebp - 0x2c]
call fcn.00402a50
cmp eax, 0xffffffff
je 0x40ce67
push 4
push 0x4538d0
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.004032d0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x40ce91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40cf2c
mov edi, 1
cmp dword [ebp - 0x60], edi
jle 0x40cf30
nop
test esi, esi
jne 0x40cf39
mov ecx, dword [eax + edi*4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x40cebf
cmp eax, 0x2f
je 0x40cebf
mov esi, 0x667
jmp 0x40cf20
mov eax, dword [ebx]
add ecx, 2
mov dword [ebp - 0x68], ecx
push ecx
mov ecx, ebx
call dword [eax + 0x18]
sub eax, 0
je 0x40cf1a
dec eax
je 0x40cf07
dec eax
jne 0x40cf1f
mov eax, dword [ebp - 0x60]
dec eax
cmp edi, eax
jge 0x40cf1a
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + edi*4 + 4]
movzx eax, word [eax]
cmp eax, 0x2d
je 0x40cf1a
cmp eax, 0x2f
je 0x40cf1a
push dword [ecx + edi*4 + 4]
mov eax, dword [ebx]
inc edi
push dword [ebp - 0x68]
mov ecx, ebx
call dword [eax + 0x64]
mov esi, eax
jmp 0x40cf1f
mov eax, dword [ebx]
mov ecx, ebx
push 0x451a28
push dword [ebp - 0x68]
call dword [eax + 0x64]
mov esi, eax
jmp 0x40cf1f
mov esi, 0x667
inc edi
mov eax, dword [ebp - 0x64]
cmp edi, dword [ebp - 0x60]
jl 0x40cea0
test esi, esi
jne 0x40cf39
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov esi, eax
cmp dword [ebp - 0x30], 8
jb 0x40cf4a
push dword [ebp - 0x44]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x40cf6f
push dword [ebp - 0x2c]
call fcn.00420070
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 4