Function at 0x40b990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443b24
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x467060]
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 0x40bc2d
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 0x40bc2d
push str.main
lea ecx, [ebp - 0x290]
call fcn.00405670
push str.iSafe.exe
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 4
call fcn.00405670
push str.iSafeSvc.exe
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.00405670
push str.iSafeSvc2.exe
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.00405670
push str.iStart.exe
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00405670
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 0x40ba89
mov ecx, dword [edi]
jmp 0x40ba8b
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 0x40bc00
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], eax
mov word [ebp - 0x2c0], ax
mov byte [ebp - 4], 9
mov eax, dword [0x469f34]
test eax, eax
jne 0x40bb0a
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 0x40baff
mov ecx, eax
call fcn.0040dc50
jmp 0x40bb01
xor eax, eax
mov byte [ebp - 4], 9
mov dword [0x469f34], eax
cmp byte [eax + 0xae], 0
push edi
lea ecx, [ebp - 0x2d8]
mov edx, str.upgrade_
jne 0x40bb24
mov edx, str.install_
call fcn.0040d300
mov ebx, eax
lea eax, [ebp - 0x2c0]
add esp, 4
cmp eax, ebx
je 0x40bb71
cmp dword [ebp - 0x2ac], 8
jb 0x40bb4c
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.004053a0
cmp dword [ebp - 0x2c4], 8
jb 0x40bb85
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.00405a00
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.00405570
mov byte [ebp - 4], 9
call fcn.0040b6d0
add esp, 0x30
cmp dword [ebp - 0x2ac], 8
jb 0x40bbfa
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 0x40ba61
push fcn.00401270
push 5
push 0x18
lea eax, [ebp - 0x290]
push eax
mov byte [ebp - 4], 0
call fcn.0044153c
jmp 0x40be30
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.00405570
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
je 0x40bd01
lea eax, [ebp + 8]
push eax
mov edx, str.nonexist_
lea ecx, [ebp - 0x2d8]
call fcn.0040d300
mov edi, eax
lea eax, [ebp - 0x2a8]
add esp, 4
cmp eax, edi
je 0x40bcd0
cmp dword [ebp - 0x294], 8
jb 0x40bca7
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.004053a0
cmp dword [ebp - 0x2c4], 8
jb 0x40bce4
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 [0x469f34]
test eax, eax
jne 0x40bd3a
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 0x40bd2f
mov ecx, eax
call fcn.0040dc50
jmp 0x40bd31
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x469f34], eax
cmp byte [eax + 0xae], 0
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x2d8]
push eax
mov edx, str.upgrade_
jne 0x40bd5a
mov edx, str.install_
call fcn.0040d300
mov edi, eax
lea eax, [ebp - 0x2a8]
add esp, 4
cmp eax, edi
je 0x40bda7
cmp dword [ebp - 0x294], 8
jb 0x40bd82
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.004053a0
cmp dword [ebp - 0x2c4], 8
jb 0x40bdbb
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.00405a00
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.00405570
mov byte [ebp - 4], 1
call fcn.0040b6d0
add esp, 0x30
cmp dword [ebp - 0x294], 8
jb 0x40be30
push dword [ebp - 0x2a8]
call esi
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x40be3e
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.004413e6
mov esp, ebp
pop ebp
ret