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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442888
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, 7
xor edx, edx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], ecx
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov ecx, eax
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
jmp 0x40c160
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40c160
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00403f50
push str.IIF_SETUPPATH
lea edi, [ebx + 8]
call fcn.00415ca0
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40c190
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.00403f50
push 0xc
mov eax, str.install.cfg
mov ecx, esi
call fcn.00402b10
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x40c1c5
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c24b
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x40c1f3
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x64]
push ecx
call fcn.0041fcd0
add esp, 4
push 1
mov eax, 0x44a388
lea ecx, [ebp - 0x2c]
call fcn.00402b10
push 0
lea edx, [ebp - 0x64]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00402dc0
push str.Additional_command_line_read_from_install.cfg
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], edi
jb 0x40c24b
mov eax, dword [ebp - 0x64]
push eax
call fcn.0042e4d8
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40c256
lea eax, [ebp - 0x2c]
push eax
push str.Effective_command_line:__s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push 3
push 0x44a424
lea ecx, [ebp - 0x2c]
push ecx
xor eax, eax
call fcn.0040f040
cmp eax, 0xffffffff
je 0x40c29a
push 4
push 0x44a42c
push eax
mov eax, 3
lea ecx, [ebp - 0x2c]
call fcn.0040ee50
push 3
push 0x44a438
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
call fcn.0040f040
cmp eax, 0xffffffff
je 0x40c2c6
push 4
push 0x44a440
push eax
mov eax, 3
lea ecx, [ebp - 0x2c]
call fcn.0040ee50
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40c2d1
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
jne 0x40c2f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40c39c
mov edi, 1
cmp dword [ebp - 0x6c], edi
jle 0x40c3ae
cmp dword [ebp - 0x68], 0
jne 0x40c3c1
mov eax, dword [edx + edi*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x40c323
cmp ecx, 0x2f
je 0x40c323
mov dword [ebp - 0x68], 0x667
jmp 0x40c38b
mov edx, dword [ebx]
lea esi, [eax + 2]
mov eax, dword [edx + 0x18]
push esi
mov ecx, ebx
call eax
sub eax, 0
je 0x40c380
dec eax
je 0x40c36c
dec eax
jne 0x40c387
mov ecx, dword [ebp - 0x6c]
dec ecx
cmp edi, ecx
jge 0x40c380
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + edi*4 + 4]
movzx eax, word [edx]
cmp eax, 0x2d
je 0x40c380
cmp eax, 0x2f
je 0x40c380
mov ecx, dword [ecx + edi*4 + 4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x5c]
inc edi
push ecx
push esi
mov ecx, ebx
call edx
mov dword [ebp - 0x68], eax
jmp 0x40c387
mov eax, dword [ebx]
mov edx, dword [eax + 0x5c]
push 0x448720
push esi
mov ecx, ebx
call edx
mov dword [ebp - 0x68], eax
jmp 0x40c387
mov dword [ebp - 0x68], 0x667
mov edx, dword [ebp - 0x70]
inc edi
cmp edi, dword [ebp - 0x6c]
jl 0x40c300
mov esi, dword [ebp - 0x68]
mov edi, 8
test esi, esi
jne 0x40c3c9
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
call edx
mov dword [ebp - 0x68], eax
jmp 0x40c3c6
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
mov ecx, ebx
mov edi, 8
call edx
mov dword [ebp - 0x68], eax
jmp 0x40c3c6
mov edi, 8
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x34], edi
jb 0x40c3da
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042e4d8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], edi
jb 0x40c3ff
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042e4d8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret 4