Function at 0x40eb09
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x448
lea ebp, [esp - 4]
mov eax, dword [0x4313f4]
xor eax, ebp
mov dword [ebp + 0x448], eax
push 8
mov eax, 0x41c5a6
call fcn.004127a4
lea eax, [ebp]
push eax
mov edi, ecx
call fcn.0040e9f2
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0x1c]
mov dword [esp], str.XMP_FixCore
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x423bc4
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x240], ax
lea eax, [ebp + 0x242]
push ebx
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x24
mov esi, 0x104
push esi
lea eax, [ebp + 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str...Core
lea eax, [ebp + 0x240]
push eax
call esi
push str...Xar
lea eax, [ebp + 0x38]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 0x240]
push eax
call esi
test eax, eax
je 0x40ed6c
lea eax, [ebp + 0x38]
push eax
call esi
test eax, eax
je 0x40ed6c
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x423b9c
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
lea eax, [ebp - 0x10]
push str.Core
push eax
call fcn.0040c9ef
add esp, 0x14
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
lea eax, [ebp + 0x240]
push eax
mov ecx, edi
call fcn.0040de2c
lea ecx, [ebp]
test al, al
je 0x40ed3f
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x423b88
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0xa
call esi
lea eax, [ebp - 0x14]
push 0x423b80
push eax
call fcn.0040c9ef
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
lea eax, [ebp + 0x38]
push eax
mov ecx, edi
call fcn.0040de2c
lea ecx, [ebp]
test al, al
je 0x40ed07
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x423b78
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
add esp, 0xc
push 0xa
call esi
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
inc eax
jmp 0x40eda8
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x423b70
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
add esp, 0xc
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call esi
jmp 0x40ed8d
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x423b68
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
add esp, 0xc
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40ed8d
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x41f3f8
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.0040d941
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.0041276a
add ebp, 0x44c
leave
ret