Function at 0x409af0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4338a3
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x45c]
call fcn.00405b40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x534]
call fcn.00407760
mov byte [ebp - 4], 1
lea eax, [ebp - 0x534]
push eax
push 0x43a6a8
lea ecx, [ebp - 0x438]
push ecx
call fcn.0040c860
add esp, 0xc
mov byte [ebp - 4], 2
call dword [sym.imp.iImportLib.dll_bool___cdecl_elex::os::IsX64System_void_]
movzx edx, al
test edx, edx
je 0x409ba6
lea eax, [ebp - 0x534]
push eax
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x560]
push ecx
call fcn.0040c860
add esp, 0xc
mov dword [ebp - 0x548], eax
mov edx, dword [ebp - 0x548]
push edx
lea ecx, [ebp - 0x438]
call fcn.004032c0
lea ecx, [ebp - 0x560]
call fcn.00405b70
push 0x2021f
lea ecx, [ebp - 0x438]
call fcn.004059f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x444]
call dword [sym.imp.iImportLib.dll_public:_void___thiscall_elex::reg::RegKey::constructor_struct_HKEY_____wchar_t_const___unsigned_long_int_]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x45c]
push eax
push 0x43a714
lea ecx, [ebp - 0x444]
call dword [sym.imp.iImportLib.dll_public:_long_int___thiscall_elex::reg::RegKey::ReadValue_wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____const]
mov dword [ebp - 0x540], eax
cmp dword [ebp - 0x540], 0
jne 0x409da4
sub esp, 0x18
mov ecx, esp
mov edx, dword [ebp - 0x438]
mov dword [ecx], edx
mov eax, dword [ebp - 0x434]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x430]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x42c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x428]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x424]
mov dword [ecx + 0x14], eax
push str.CUninstMainDlg::helper__s_succeed
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x1c
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0x43a7c4
lea ecx, [ebp - 0x578]
call fcn.004065b0
mov dword [ebp - 0x544], eax
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x53c], eax
mov byte [ebp - 4], 4
push 0x43a734
mov ecx, dword [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x474]
push edx
call fcn.0040c7a0
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x578]
call fcn.00405b70
lea ecx, [ebp - 0x474]
call fcn.004059f0
push eax
lea ecx, [ebp - 0x45c]
call fcn.004059f0
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call sub.MSVCR110.dll_memset
add esp, 0xc
push 0x43a818
lea ecx, [ebp - 0x45c]
call fcn.004059f0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d93
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d93
mov byte [ebp - 0x535], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.00405b70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x444]
call dword [sym.imp.iImportLib.dll_public:_void___thiscall_elex::reg::RegKey::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x438]
call fcn.00405b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x534]
call fcn.004094d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.00405b70
mov al, byte [ebp - 0x535]
jmp 0x409e39
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.00405b70
jmp 0x409dec
sub esp, 0x18
mov eax, esp
mov ecx, dword [ebp - 0x438]
mov dword [eax], ecx
mov edx, dword [ebp - 0x434]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x430]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x42c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x428]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x424]
mov dword [eax + 0x14], edx
push str.CUninstMainDlg::helper__s_failed
call dword [sym.imp.iImportLib.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x1c
mov byte [ebp - 0x536], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x444]
call dword [sym.imp.iImportLib.dll_public:_void___thiscall_elex::reg::RegKey::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x438]
call fcn.00405b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x534]
call fcn.004094d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.00405b70
mov al, byte [ebp - 0x536]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314a6
mov esp, ebp
pop ebp
ret