Function at 0x409070
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44efb1
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x47b018]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b018]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
lea eax, [esp + 0x64]
push eax
mov edi, ecx
mov dword [esp + 0x68], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
cmp dword [esp + 0x68], 6
jne 0x409102
cmp dword [esp + 0x6c], 1
jne 0x409102
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call dword [0x450484]
call fcn.00410fa0
add esp, 4
cmp eax, ebx
je 0x409102
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call dword [0x450484]
call fcn.00408d60
jmp 0x4093d6
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409118
test al, 0x10
jne 0x4093d6
lea ecx, [esp + 0x64]
call fcn.0043cca0
push ecx
mov dword [esp + 0x224], ebx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call dword [0x450484]
call fcn.004089d0
cmp al, bl
jne 0x409193
push 0xc
call sub.mfc90u.dll_new
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409159
mov ecx, esi
call dword [0x450480]
jmp 0x40915b
xor esi, esi
push edi
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, 2
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.004131a0
test al, al
jne 0x4093c2
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push esi
call sub.mfc90u.dll_delete
add esp, 4
jmp 0x4093c2
push 0x5c
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
mov byte [esp + 0x220], 1
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
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__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x220], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00410f20
mov ecx, eax
call fcn.0043d690
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
push 0x5c
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
sub esi, eax
dec esi
push esi
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x220], 4
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x4c]
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__]
lea ecx, [esp + 0x20]
mov byte [esp + 0x220], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x24], ebx
call fcn.0043ce30
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x24]
push edx
push 0x46da18
push 0x17
push ebx
mov byte [esp + 0x230], 7
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x46d7dc
call esi
cmp eax, ebx
jne 0x409387
mov eax, dword [esp + 0x24]
mov ebp, dword [eax]
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], eax
add ebp, 0x28
call fcn.00441e00
mov ecx, dword [ebp]
push eax
mov eax, dword [esp + 0x20]
push eax
call ecx
cmp eax, ebx
jne 0x409387
cmp dword [esp + 0x1c], ebx
je 0x40935a
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
push 0x46da58
push 0x17
push ebx
push 0x46d7cc
mov byte [esp + 0x234], 8
call esi
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x68]
add esi, 0x74
call edx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x64]
push ebx
call edx
push eax
mov eax, dword [esi]
push ebp
call eax
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409314
test al, 2
je 0x409314
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 1
push eax
call edx
jmp 0x409340
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x78]
call edx
cmp eax, 1
jne 0x409331
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push ebx
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x9c]
push eax
call edx
mov byte [esp + 0x220], 7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409387
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x409387
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call dword [0x450484]
call fcn.00413000
cmp eax, ebx
je 0x409378
mov esi, eax
call fcn.004020e0
call fcn.00410b30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x220], 6
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40939f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x220], 3
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_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x220], bl
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_]
lea ecx, [esp + 0x64]
mov dword [esp + 0x220], 0xffffffff
call fcn.0043cd90
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0041d40a
add esp, 0x210
ret