Function at 0x40d460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454ba5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_void_]
mov byte [ebp - 4], 1
push 5
xor eax, eax
push 0x45f770
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00406c00
mov byte [ebp - 4], 2
cmp dword [ebp + 0x18], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jne 0x40d4db
push edi
push str.empty
jmp 0x40d502
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d66c
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push edi
push ecx
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ouilibx.dll_public:_int___cdecl_OUI::COString::Format_wchar_t_const__]
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0
call dword [sym.imp.ouilibx.dll_public:_wchar_t____thiscall_OUI::COString::GetBuffer_int_]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x40d545
xor ecx, ecx
jmp 0x40d55f
mov ecx, edx
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d550
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406c00
mov byte [ebp - 4], 3
mov eax, dword [0x48277c]
test eax, eax
jne 0x40d5a3
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x40d598
mov ecx, eax
call fcn.004122b0
jmp 0x40d59a
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x48277c], eax
cmp byte [eax + 0xde], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
push eax
mov edx, str.upgrade_
jne 0x40d5bd
mov edx, str.install_
call fcn.00411570
mov edi, eax
lea eax, [ebp - 0x2c]
add esp, 4
cmp eax, edi
je 0x40d5f5
cmp dword [ebp - 0x18], 8
jb 0x40d5dc
push dword [ebp - 0x2c]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004066d0
cmp dword [ebp - 0x50], 8
jb 0x40d603
push dword [ebp - 0x64]
call esi
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], 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 - 0x2c]
push eax
call fcn.00406870
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 5
push 0x11
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.inst.invalid.path
mov word [ecx], ax
call fcn.00406c00
mov byte [ebp - 4], 3
call fcn.0040ced0
add esp, 0x30
cmp dword [ebp - 0x18], 8
jb 0x40d66c
push dword [ebp - 0x2c]
call esi
add esp, 4
cmp dword [ebp - 0x30], 8
jb 0x40d67a
push dword [ebp - 0x44]
call esi
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], al
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
cmp dword [ebp + 0x1c], 8
jb 0x40d6a8
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret