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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40cfa4
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x414018]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x414018]
xor eax, esp
push eax
lea eax, [esp + 0xc88]
mov dword fs:[0], eax
mov edi, ecx
call sub.MFC80U.DLL_Ordinal_4574
call fcn.004043e0
test al, al
je 0x404238
push 0x104
lea eax, [esp + 0x870]
push eax
call dword [sym.imp.UserData.dll_unsigned_int___stdcall_GetHelpFileName_wchar_t___unsigned_long_int_]
test eax, eax
je 0x403f7e
lea ecx, [esp + 0x86c]
push ecx
mov ecx, 0x414778
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x104
lea edx, [esp + 0xa78]
push edx
call dword [sym.imp.UserData.dll_unsigned_int___stdcall_GetContextFileName_wchar_t___unsigned_long_int_]
test eax, eax
je 0x403fa8
lea eax, [esp + 0xa74]
push eax
mov ecx, 0x41477c
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [edi + 0x3bc]
mov ecx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call esi
mov eax, dword [edi + 0x3bc]
mov edx, dword [edi + 0x20]
push eax
push 0
push 0x80
push edx
call esi
push 3
push 7
push 5
push 0x10
lea ebx, [edi + 0x3c4]
push 0x10
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_1555
test ebx, ebx
je 0x403ff4
mov ebx, dword [ebx + 4]
mov eax, dword [edi + 0x388]
push ebx
push 1
push 0x1003
push eax
call esi
push eax
call sub.MFC80U.DLL_Ordinal_2364
call sub.MFC80U.DLL_Ordinal_1079
push 0xa0
push 0xe
push 0xa0
call sub.MFC80U.DLL_Ordinal_1058
mov ebx, dword [sym.imp.USER32.dll_LoadIconW]
push eax
call ebx
mov ecx, dword [edi + 0x3c8]
push eax
push ecx
call sub.MFC80U.DLL_Ordinal_1079
mov ecx, dword [eax + 0x94]
mov ecx, dword [ecx]
call fcn.00402510
mov dword [edi + 0x3d0], eax
call sub.MFC80U.DLL_Ordinal_1079
push 0xa1
push 0xe
push 0xa1
call sub.MFC80U.DLL_Ordinal_1058
push eax
call ebx
mov ecx, dword [edi + 0x3c8]
push eax
push ecx
call sub.MFC80U.DLL_Ordinal_1079
mov edx, dword [eax + 0x94]
mov ecx, dword [edx]
call fcn.00402510
mov dword [edi + 0x3d4], eax
mov eax, dword [0x414780]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x4040ff
lea ecx, [edi + 0x3d8]
xor esi, esi
mov dword [esp + 0x10], ecx
jmp 0x4040a0
call sub.MFC80U.DLL_Ordinal_1079
movzx eax, word [esi + 0x414784]
push eax
push 0xe
push eax
call sub.MFC80U.DLL_Ordinal_1058
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [edi + 0x3c8]
push eax
push ecx
call sub.MFC80U.DLL_Ordinal_1079
mov edx, dword [eax + 0x94]
mov ecx, dword [edx]
call fcn.00402510
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
add ebx, 1
mov eax, ebx
add ecx, 4
shl eax, 5
mov esi, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x414780]
cmp dword [ecx - 0xc], 0
jne 0x4040a0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x388]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 0x388]
push 0x20
xor ebx, ebx
push ebx
push 0x1036
push ecx
call esi
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
lea esi, [edi + 0x368]
fmul qword [0x410470]
call fcn.0040ba50
push eax
push ebx
push 0x40e770
push ebx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3869
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x68
lea ecx, [esp + 0x18]
mov dword [esp + 0xc94], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x410450]
call fcn.0040ba50
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ecx
push 1
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3869
push 0x69
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul qword [0x410468]
call fcn.0040ba50
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push 2
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3869
push 0x6a
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul qword [0x410460]
call fcn.0040ba50
mov edx, dword [esp + 0x18]
push eax
push ebx
push edx
push 3
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3869
push 0x4146a0
push 0x40e784
push 1
push ebx
push 0x40e774
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40423f
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
jmp 0x4043b6
mov eax, dword [edi + 0x458]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x404341
test eax, eax
jle 0x40433c
test ebx, ebx
mov eax, dword [edi + 0x458]
jl 0x4043da
cmp ebx, dword [eax + 8]
jge 0x4043da
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
lea eax, [ecx + ebx*4]
lea ecx, [esp + 0x10]
call fcn.004091d0
mov byte [esp + 0xc90], 1
mov eax, dword [eax]
push eax
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.00402a90
lea ecx, [esp + 0x10]
mov byte [esp + 0xc90], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edx, [esp + 0x82c]
lea ecx, [esp + 0x2c]
call fcn.00402f50
test eax, eax
je 0x4042ea
lea edx, [esp + 0x82c]
push str.AcSign
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
sete al
test al, al
je 0x4042ea
lea eax, [esp + 0x2c]
push eax
mov esi, edi
call fcn.00406fd0
jmp 0x40432a
cmp word [esp + 0x2c], 0
je 0x40431d
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40431d
and al, 0x10
cmp al, 0x10
sete al
test al, al
je 0x40431d
push 1
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
call fcn.00406e50
jmp 0x40432a
push 1
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00406840
mov ecx, dword [edi + 0x458]
add ebx, 1
cmp ebx, dword [ecx + 8]
jl 0x404258
call fcn.00407200
call fcn.00408450
mov esi, edi
call fcn.00406740
mov ecx, edi
call fcn.00407870
test al, al
je 0x40422e
call fcn.00407cf0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x6f
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc94], 2
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [edi + 0x11c]
call sub.MFC80U.DLL_Ordinal_6063
mov ecx, edi
mov byte [edi + 0x471], 0
call fcn.004074d0
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, 1
mov ecx, dword [esp + 0xc88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.0040b277
mov esp, ebp
pop ebp
ret
jmp sub.MFC80U.DLL_Ordinal_1176