Function at 0x40d6d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b44
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x40d96d
cmp dword [ebp + 0x1c], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call ebx
test eax, eax
je 0x40d96d
push str.main
lea ecx, [ebp - 0x290]
call fcn.00406d00
push str.iSafe.exe
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.00406d00
push 0x45f1b8
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.00406d00
push str.iSafeSvc2.exe
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.00406d00
push 0x45d39c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00406d00
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
lea edi, [ebp - 0x290]
mov dword [ebp - 0x2e0], 5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40d7c9
mov ecx, dword [edi]
jmp 0x40d7cb
mov ecx, edi
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x40d940
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], eax
mov word [ebp - 0x2c0], ax
mov byte [ebp - 4], 9
mov eax, dword [0x48277c]
test eax, eax
jne 0x40d84a
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x40d83f
mov ecx, eax
call fcn.004122b0
jmp 0x40d841
xor eax, eax
mov byte [ebp - 4], 9
mov dword [0x48277c], eax
cmp byte [eax + 0xde], 0
push edi
lea ecx, [ebp - 0x2d8]
mov edx, str.upgrade_
jne 0x40d864
mov edx, str.install_
call fcn.00411570
mov ebx, eax
lea eax, [ebp - 0x2c0]
add esp, 4
cmp eax, ebx
je 0x40d8b1
cmp dword [ebp - 0x2ac], 8
jb 0x40d88c
push dword [ebp - 0x2c0]
call esi
add esp, 4
xor eax, eax
push ebx
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], eax
mov word [ebp - 0x2c0], ax
call fcn.004066d0
cmp dword [ebp - 0x2c4], 8
jb 0x40d8c5
push dword [ebp - 0x2d8]
call esi
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2dc], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00406870
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 0xb
push 0x11
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.inst.invalid.file
mov word [ecx], ax
call fcn.00406c00
mov byte [ebp - 4], 9
call fcn.0040ced0
add esp, 0x30
cmp dword [ebp - 0x2ac], 8
jb 0x40d93a
push dword [ebp - 0x2c0]
call esi
add esp, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add edi, 0x18
dec dword [ebp - 0x2e0]
jne 0x40d7a1
push fcn.00401100
push 5
push 0x18
lea eax, [ebp - 0x290]
push eax
mov byte [ebp - 4], 0
call fcn.004521cc
jmp 0x40db70
push 9
xor eax, eax
push str.emptypath
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
call fcn.00406c00
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x40da41
lea eax, [ebp + 8]
push eax
mov edx, str.nonexist_
lea ecx, [ebp - 0x2d8]
call fcn.00411570
mov edi, eax
lea eax, [ebp - 0x2a8]
add esp, 4
cmp eax, edi
je 0x40da10
cmp dword [ebp - 0x294], 8
jb 0x40d9e7
push dword [ebp - 0x2a8]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
call fcn.004066d0
cmp dword [ebp - 0x2c4], 8
jb 0x40da24
push dword [ebp - 0x2d8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c4], 7
mov dword [ebp - 0x2c8], 0
mov word [ebp - 0x2d8], ax
mov eax, dword [0x48277c]
test eax, eax
jne 0x40da7a
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40da6f
mov ecx, eax
call fcn.004122b0
jmp 0x40da71
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x48277c], eax
cmp byte [eax + 0xde], 0
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x2d8]
push eax
mov edx, str.upgrade_
jne 0x40da9a
mov edx, str.install_
call fcn.00411570
mov edi, eax
lea eax, [ebp - 0x2a8]
add esp, 4
cmp eax, edi
je 0x40dae7
cmp dword [ebp - 0x294], 8
jb 0x40dac2
push dword [ebp - 0x2a8]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], eax
mov word [ebp - 0x2a8], ax
call fcn.004066d0
cmp dword [ebp - 0x2c4], 8
jb 0x40dafb
push dword [ebp - 0x2d8]
call esi
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2e4], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00406870
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 3
push 0x11
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.inst.invalid.file
mov word [ecx], ax
call fcn.00406c00
mov byte [ebp - 4], 1
call fcn.0040ced0
add esp, 0x30
cmp dword [ebp - 0x294], 8
jb 0x40db70
push dword [ebp - 0x2a8]
call esi
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x40db7e
push dword [ebp + 8]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret