Function at 0x408df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443987
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
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
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
lea ecx, [ebp - 0x520]
mov dword [ebp - 4], eax
call fcn.00405bb0
lea eax, [ebp - 0x520]
push eax
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 1
call fcn.0040d300
add esp, 4
cmp dword [ebp - 0x448], 8
lea ecx, [ebp - 0x478]
push ecx
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0x2021f
push 0
push 0
lea eax, [ebp - 0x45c]
cmovae eax, dword [ebp - 0x45c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x444]
push eax
push ecx
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 3
call fcn.00422600
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
jne 0x409026
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0xf
push str.UninstallMaster
lea ecx, [ebp - 0x538]
mov dword [ebp - 0x524], 7
mov dword [ebp - 0x528], 0
mov word [ebp - 0x538], ax
call fcn.00405570
push str..exe
lea edx, [ebp - 0x538]
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 4
call fcn.00404870
add esp, 4
cmp dword [ebp - 0x524], 8
jb 0x408f60
push dword [ebp - 0x538]
call edi
add esp, 4
cmp dword [ebp - 0x460], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x474]
cmovae ecx, dword [ebp - 0x474]
cmp dword [ebp - 0x430], 8
lea eax, [ebp - 0x444]
cmovae eax, dword [ebp - 0x444]
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
call esi
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 [ebp - 0x430], 8
lea eax, [ebp - 0x444]
cmovae eax, dword [ebp - 0x444]
push 0x44b974
push eax
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x409012
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x409012
cmp dword [ebp - 0x460], 8
jb 0x40900e
push dword [ebp - 0x474]
call edi
add esp, 4
mov bl, 1
jmp 0x409028
cmp dword [ebp - 0x460], 8
jb 0x409026
push dword [ebp - 0x474]
call edi
add esp, 4
xor bl, bl
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x409043
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x40905e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x42c], 0
cmp dword [ebp - 0x448], 8
jb 0x409072
push dword [ebp - 0x45c]
call edi
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x520]
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], 0
mov word [ebp - 0x45c], ax
call fcn.00408480
cmp dword [ebp - 0x430], 8
jb 0x4090ae
push dword [ebp - 0x444]
call edi
add esp, 4
mov al, bl
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