Function at 0x4127c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0718
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x19c], 1
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x194], 0
lea ecx, [ebp - 0x14]
call fcn.00418790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00417fe0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
call fcn.0040eda0
push 1
push 0x4cc5dc
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.0040c500
lea ecx, [ebp - 0x10]
push ecx
push str.InstallDir
lea ecx, [ebp - 0x14]
call fcn.00418350
lea ecx, [ebp - 0x10]
call fcn.00405df0
movzx edx, al
test edx, edx
je 0x412881
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x18], 0
push 0x4cc628
mov ecx, dword [ebp - 0x34]
add ecx, 0x20
call fcn.004058b0
jmp 0x412a9d
lea ecx, [ebp - 0x10]
call fcn.004683f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4128b3
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x18], 0
push 0x4cc62c
mov ecx, dword [ebp - 0x34]
add ecx, 0x20
call fcn.004058b0
jmp 0x412a9d
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x18], 1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x20
call fcn.00405d40
mov ecx, dword [ebp - 0x34]
add ecx, 0x20
push ecx
call fcn.00401e40
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.00418790
mov byte [ebp - 4], 2
push 1
push 0x4cc630
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
call fcn.0040c500
mov edx, dword [ebp - 0x34]
add edx, 0x24
push edx
push str.Version
lea ecx, [ebp - 0x20]
call fcn.00418350
mov eax, dword [ebp - 0x34]
add eax, 0x20
push eax
lea ecx, [ebp - 0x1c]
call fcn.004057a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0040e9e0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00401f50
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.004683f0
push eax
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.0040e120
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00405d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00417fc0
mov ecx, dword [ebp - 0x34]
call fcn.00411a10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x1c8
call fcn.004683f0
push eax
call fcn.0049fb71
add esp, 4
cmp eax, 0xa5
jge 0x4129af
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x19c], 0
cmp dword [ebp + 8], 0
jne 0x412a18
cmp dword [ebp - 0x18], 0
je 0x412a16
push 4
push 0x4cc674
push 0x4cc680
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x412a16
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00407190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00417fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407190
mov eax, dword [ebp - 0x28]
jmp 0x412ac2
jmp 0x412a85
cmp dword [ebp - 0x18], 0
je 0x412a7d
push 7
push 0x64
mov ecx, 0x4e7524
call fcn.00406f40
push 0x4cc6b0
push 0x4e77f8
call fcn.00489600
add esp, 8
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00407190
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00417fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407190
mov eax, dword [ebp - 0x2c]
jmp 0x412ac2
mov ecx, dword [ebp - 0x34]
call fcn.00411d10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00417fc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00407190
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00417fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407190
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4