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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x477070]
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 0x40edb0
xor ecx, ecx
jmp 0x40edc4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edb5
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404c00
push str.IIF_SETUPPATH
lea ecx, [ebx + 4]
call fcn.004174a0
mov edx, eax
cmp word [edx], 0
jne 0x40ede7
xor ecx, ecx
jmp 0x40edff
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edf0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00404c00
push 0xc
push str.install.cfg
lea ecx, [ebp - 0x44]
call fcn.00413d10
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 0x40eea8
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.0041bbe0
push 1
push 0x4698e0
lea ecx, [ebp - 0x2c]
call fcn.00413d10
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00413e40
push str.Additional_command_line_read_from_install.cfg
push 0x4656cc
push 0x477a14
call fcn.00433950
mov byte [ebp - 4], 1
add esp, 0xc
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x40eea8
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00405180
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Effective_command_line:__s
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
lea ecx, [ebp - 0x2c]
push 3
push 0
push 0x46997c
call fcn.00401460
cmp eax, 0xffffffff
je 0x40eef3
push 4
push 0x469984
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.004087f0
push 3
push 0
push 0x469990
lea ecx, [ebp - 0x2c]
call fcn.00401460
cmp eax, 0xffffffff
je 0x40ef1b
push 4
push str._v__
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.004087f0
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 - 0x68], eax
test eax, eax
jne 0x40ef45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40efe3
mov edi, 1
cmp dword [ebp - 0x60], edi
jle 0x40efe7
test esi, esi
jne 0x40eff0
mov ecx, dword [eax + edi*4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x40ef72
cmp eax, 0x2f
je 0x40ef72
mov esi, 0x667
jmp 0x40efd7
mov eax, dword [ebx]
add ecx, 2
mov dword [ebp - 0x64], ecx
push ecx
mov ecx, ebx
call dword [eax + 0x20]
sub eax, 0
je 0x40efd1
sub eax, 1
je 0x40efbe
sub eax, 1
jne 0x40efd6
mov eax, dword [ebp - 0x60]
dec eax
cmp edi, eax
jge 0x40efd1
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + edi*4 + 4]
movzx eax, word [eax]
cmp eax, 0x2d
je 0x40efd1
cmp eax, 0x2f
je 0x40efd1
push dword [ecx + edi*4 + 4]
mov eax, dword [ebx]
inc edi
push dword [ebp - 0x64]
mov ecx, ebx
call dword [eax + 0x6c]
mov esi, eax
jmp 0x40efd6
mov eax, dword [ebx]
mov ecx, ebx
push 0x466c0c
push dword [ebp - 0x64]
call dword [eax + 0x6c]
mov esi, eax
jmp 0x40efd6
mov esi, 0x667
inc edi
mov eax, dword [ebp - 0x68]
cmp edi, dword [ebp - 0x60]
jl 0x40ef53
test esi, esi
jne 0x40eff0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
mov esi, eax
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x40f005
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00405180
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x40f02e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00405180
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.00436666
mov esp, ebp
pop ebp
ret 4