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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448818
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4624c8]
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 0x40c330
xor ecx, ecx
jmp 0x40c344
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c335
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406140
push str.IIF_SETUPPATH
lea ecx, [ebx + 4]
call fcn.00419790
mov edx, eax
cmp word [edx], 0
jne 0x40c367
xor ecx, ecx
jmp 0x40c37f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c370
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00406140
push 0xc
push str.install.cfg
lea ecx, [ebp - 0x44]
call fcn.00410160
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 0x40c424
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.0041b8e0
push 1
push 0x456324
lea ecx, [ebp - 0x2c]
call fcn.00410160
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00410090
push 0x456328
push 0x453cac
push 0x463614
call fcn.00419150
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 8
jb 0x40c424
push dword [ebp - 0x5c]
call fcn.004213f0
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 0x453cac
push 0x463614
call fcn.00419150
add esp, 0x10
lea ecx, [ebp - 0x2c]
push 3
push 0
push 0x4563bc
call fcn.0040f4f0
cmp eax, 0xffffffff
je 0x40c46f
push 4
push 0x4563c4
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f330
push 3
push 0
push 0x4563d0
lea ecx, [ebp - 0x2c]
call fcn.0040f4f0
cmp eax, 0xffffffff
je 0x40c497
push 4
push 0x4563d8
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040f330
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 0x40c4c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40c55c
mov edi, 1
cmp dword [ebp - 0x60], edi
jle 0x40c560
nop
test esi, esi
jne 0x40c569
mov ecx, dword [eax + edi*4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x40c4ef
cmp eax, 0x2f
je 0x40c4ef
mov esi, 0x667
jmp 0x40c550
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 0x40c54a
dec eax
je 0x40c537
dec eax
jne 0x40c54f
mov eax, dword [ebp - 0x60]
dec eax
cmp edi, eax
jge 0x40c54a
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + edi*4 + 4]
movzx eax, word [eax]
cmp eax, 0x2d
je 0x40c54a
cmp eax, 0x2f
je 0x40c54a
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 0x40c54f
mov eax, dword [ebx]
mov ecx, ebx
push 0x453a78
push dword [ebp - 0x68]
call dword [eax + 0x64]
mov esi, eax
jmp 0x40c54f
mov esi, 0x667
inc edi
mov eax, dword [ebp - 0x64]
cmp edi, dword [ebp - 0x60]
jl 0x40c4d0
test esi, esi
jne 0x40c569
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov esi, eax
cmp dword [ebp - 0x30], 8
jb 0x40c57a
push dword [ebp - 0x44]
call fcn.004213f0
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 0x40c59f
push dword [ebp - 0x2c]
call fcn.004213f0
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.00430d5f
mov esp, ebp
pop ebp
ret 4