Function at 0x40e050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45494a
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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 esi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_void_]
push esi
lea eax, [ebp - 0x14]
push str.inst.copyfile.err_d
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.ouilibx.dll_public:_int___cdecl_OUI::COString::Format_wchar_t_const__]
add esp, 0xc
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 - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp word [edx], ax
jne 0x40e0cd
xor ecx, ecx
jmp 0x40e0e1
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0d2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00406c00
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call esi
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
push ecx
mov edi, eax
call esi
lea ecx, [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::constructor_void_]
mov byte [ebp - 4], 4
cmp dword [ebp + 0x34], 8
push esi
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push edi
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push str._s__s__d__d
push eax
call dword [sym.imp.ouilibx.dll_public:_int___cdecl_OUI::COString::Format_wchar_t_const__]
add esp, 0x18
lea ecx, [ebp - 0x18]
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 - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [edx], ax
jne 0x40e178
xor ecx, ecx
jmp 0x40e18f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e180
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00406c00
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x4c], 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 - 0x48]
push eax
call fcn.00406870
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 6
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x30]
push eax
call fcn.00406870
mov byte [ebp - 4], 5
call fcn.0040ced0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 0x30
cmp dword [ebp - 0x34], 8
jb 0x40e20c
push dword [ebp - 0x48]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call edi
cmp dword [ebp - 0x1c], 8
jb 0x40e23d
push dword [ebp - 0x30]
call esi
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 1
call edi
cmp dword [ebp + 0x1c], 8
jb 0x40e268
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x40e28a
push dword [ebp + 0x20]
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