Function at 0x413c3d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x218], 0x81
jne 0x413eb2
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x220]
push edx
call dword [sym.imp.libdxxmt.dll_Ordinal_30]
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 8
jg 0x413caf
cmp dword [ebp - 0x48], 8
je 0x413e7c
cmp dword [ebp - 0x48], 0
jl 0x413e98
cmp dword [ebp - 0x48], 1
jle 0x413cbd
jmp 0x413e98
cmp dword [ebp - 0x48], 0x200
je 0x413cbd
jmp 0x413e98
lea ecx, [ebp - 0x24]
call fcn.00407dc0
lea ecx, [ebp - 0x30]
push ecx
call sub.MFC42.DLL_COleDateTime::GetTickCount
push eax
lea ecx, [ebp - 0x24]
call fcn.00407df0
push 0x478014
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_COleDateTime::Format
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0x478028
mov ecx, dword [ebp - 0x44]
add ecx, 0x214
push ecx
lea edx, [ebp - 0x34]
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0045dfd8
lea ecx, [ebp - 0x14]
call fcn.00412270
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x413d7e
push 0x8000
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x220]
push ecx
call dword [sym.imp.libdxxmt.dll_Ordinal_55]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045dfd8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0045dfd8
jmp 0x413eb2
mov edx, dword [ebp - 0x44]
cmp dword [edx + 0x200], 0xffffffff
je 0x413daa
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x200]
push ecx
call dword [sym.imp.libdxxmt.dll_Ordinal_189]
add esp, 4
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x200], 0xffffffff
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x224
call fcn.0045e12e
lea ecx, [ebp - 0x40]
push ecx
call sub.MFC42.DLL_COleDateTime::GetTickCount
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x228
call fcn.00407df0
push 0x180
push 0x8102
lea ecx, [ebp - 0x14]
call fcn.00412270
push eax
call dword [sym.imp.libdxxmt.dll_Ordinal_188]
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x200], eax
mov eax, dword [ebp - 0x44]
add eax, 0x1e0
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x200]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 8]
call fcn.0040a091
test eax, eax
jne 0x413e52
push 0x8000
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x220]
push edx
call dword [sym.imp.libdxxmt.dll_Ordinal_55]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045dfd8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0045dfd8
jmp 0x413eb2
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x19c], 9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045dfd8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0045dfd8
jmp 0x413eb2
push 0x8000
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x220]
push edx
call dword [sym.imp.libdxxmt.dll_Ordinal_55]
add esp, 0xc
jmp 0x413eb2
push 0x8000
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x220]
push ecx
call dword [sym.imp.libdxxmt.dll_Ordinal_55]
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret