Function at 0x407940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4557d4
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4731fc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0xa0]
mov dword [ebp], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x40798c
mov dword [ebp], eax
jmp 0x407c1f
lea eax, [esp + 0x24]
push eax
call fcn.004068f0
mov edi, 8
cmp dword [eax + 0x1c], edi
mov dword [esp + 0x98], 0
jb 0x4079b0
mov eax, dword [eax + 8]
jmp 0x4079b3
add eax, 8
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [esp + 0x24]
mov byte [esp + 0x98], 2
call fcn.00401d80
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_3927]
test al, al
je 0x4079f1
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 9
jmp 0x407c21
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00406880
cmp dword [eax + 0x1c], edi
mov byte [esp + 0x98], 3
jb 0x407a0f
mov eax, dword [eax + 8]
jmp 0x407a12
add eax, 8
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea ecx, [esp + 0x48]
mov byte [esp + 0x98], 5
call fcn.00401d80
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.00406880
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
mov byte [esp + 0x98], 6
call eax
lea ecx, [esp + 0x24]
mov bl, al
mov byte [esp + 0x98], 5
call fcn.00401d80
test bl, bl
je 0x407a80
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0xa
jmp 0x407c21
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00406880
mov ecx, eax
mov byte [esp + 0x98], 7
call fcn.00401e40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [esp + 0x24]
sete bl
mov byte [esp + 0x98], 5
call fcn.00401d80
test bl, bl
je 0x407adb
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0x14
jmp 0x407c21
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.00406880
mov ecx, eax
mov byte [esp + 0x98], 8
call fcn.00403ae0
test al, al
lea ecx, [esp + 0x6c]
sete bl
mov byte [esp + 0x98], 5
call fcn.00401d80
test bl, bl
je 0x407b2e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0x15
jmp 0x407c21
push 0x124
mov byte [esi + 0xcc], 0
call sub.MFC80U.DLL_Ordinal_762
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov byte [esp + 0x98], 9
je 0x407b76
mov eax, dword [esi + 0xe4]
mov edx, dword [esi + 0xdc]
lea ecx, [esi + 0xdc]
push eax
mov eax, dword [edx + 4]
call eax
push eax
mov ecx, edi
call fcn.00416a90
jmp 0x407b78
xor eax, eax
test eax, eax
mov byte [esp + 0x98], 5
mov dword [esi + 0xd4], eax
jne 0x407ba5
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0xb
jmp 0x407c21
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0xa4], 0xa
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov byte [esp + 0xa0], 5
mov ecx, dword [esi + 0xd4]
call fcn.00416480
mov edi, eax
test edi, edi
je 0x407c02
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, edi
jmp 0x407c21
mov ecx, dword [esi + 0xd4]
mov dword [ebp], ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4