Function at 0x40ea30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfd38
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4e2210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x10], 0
push str.Set_Dir_Power
push 0x4e77f8
call fcn.00489600
add esp, 8
mov eax, dword [ebp - 0x40]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x14]
call fcn.004057a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401e90
add esp, 4
lea edx, [ebp - 0x14]
push edx
push 0x4cad24
lea eax, [ebp - 0x28]
push eax
call fcn.00406e00
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 1
push str.___t__e__c__g_SYSTEM:f
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 2
push 0
push 0
push 0
mov ecx, dword [ebp - 0x50]
call fcn.004683f0
push eax
push 0x4cad28
call fcn.00402240
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00417fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00417fc0
push str.InstallBefore_1
push 0x4e77f8
call fcn.00489600
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417fc0
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x18], 0
jne 0x40eb3a
jmp 0x40ed50
mov ecx, dword [ebp - 0x40]
call fcn.00410f90
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x190], eax
mov ecx, dword [ebp - 0x40]
call fcn.00411340
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x194], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00418790
mov dword [ebp - 4], 3
push 1
push 0x4cad44
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0040c500
test eax, eax
je 0x40eb9b
lea eax, [ebp - 0x1c]
push eax
push 0x4cad78
lea ecx, [ebp - 0x18]
call fcn.00418590
push 0x4cad8c
mov ecx, dword [ebp - 0x40]
add ecx, 0x20
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.004683f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x34]
call fcn.00417fc0
cmp dword [ebp - 0x30], 0
je 0x40ed02
push 0
push 0x28
mov ecx, 0x4e7524
call fcn.00406f40
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x1a4], 0
je 0x40ec12
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x34]
push edx
push str.ck_WxS
push 0
push 0x28
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x1a4]
call ecx
add esp, 0x10
push 0x4cadb4
mov edx, dword [ebp - 0x40]
add edx, 0x20
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00403cf0
add esp, 0xc
mov byte [ebp - 4], 4
push 0x4cadcc
mov ecx, dword [ebp - 0x40]
add ecx, 0x70
call fcn.004058b0
mov ecx, dword [ebp - 0x40]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x70
call fcn.00406eb0
push str.before_uninst
push 0x4e77f8
call fcn.00489600
add esp, 8
mov edx, dword [ebp - 0x40]
add edx, 0x20
push edx
push str._S_setupover1___
lea eax, [ebp - 0x38]
push eax
call fcn.00406e00
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 5
push 0x4cae34
mov edx, dword [ebp - 0x40]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00403cf0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 6
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x5c]
call fcn.004683f0
push eax
mov ecx, dword [ebp - 0x64]
call fcn.004683f0
push eax
call fcn.00402240
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.00417fc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00417fc0
push str.end_uninst
push 0x4e77f8
call fcn.00489600
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00417fc0
cmp dword [ebp - 0x1c], 0
je 0x40ed41
lea ecx, [ebp - 0x24]
call fcn.00418790
push 0
push 0x4cae58
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.0040c500
test eax, eax
je 0x40ed39
mov edx, dword [ebp - 0x1c]
push edx
push 0x4cae8c
lea ecx, [ebp - 0x24]
call fcn.0040c4a0
lea ecx, [ebp - 0x24]
call fcn.00407190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407190
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret