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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41a6d8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC70U.DLL_Ordinal_972
mov edi, dword [eax + 4]
call sub.MFC70U.DLL_Ordinal_978
test eax, eax
je 0x40b688
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40b68a
xor eax, eax
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_2250
push 0x3eb
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov eax, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf0
push eax
call ebp
lea ebx, [edi + 0x174]
push ebx
push 0x3ec
mov ecx, esi
mov dword [edi + 0x170], eax
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_3557
push 0x3ee
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push ecx
call ebp
mov dword [edi + 0x178], eax
lea eax, [edi + 0x17c]
push eax
push 0x3f3
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_3557
push 0x3f4
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push edx
call ebp
push 0x3ef
mov ecx, esi
mov dword [edi + 0x180], eax
call sub.MFC70U.DLL_Ordinal_2465
mov eax, dword [eax + 0x20]
push 0
push 0
push 0xf0
push eax
call ebp
push 0x3f1
mov ecx, esi
mov dword [edi + 0x184], eax
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push ecx
call ebp
push 0
push 0
mov dword [edi + 0x188], eax
mov edx, dword [esi + 0xa8]
push 0x147
push edx
call ebp
mov dword [edi + 0x18c], eax
cmp dword [edi + 0x170], 1
jne 0x40b8a4
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b836
push 0x41e710
mov dword [edi + 0x170], 0
call dword [sym.imp.MSVCR70.dll_wcslen]
add esp, 4
push eax
push 0x41e710
mov ecx, ebx
call fcn.00401470
mov eax, dword [edi + 0x170]
push 0x3eb
mov ecx, esi
mov dword [esp + 0x18], eax
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x20]
push 0
push ecx
push 0xf1
push edx
call ebp
mov ebx, dword [ebx]
push ebx
push 0x3ec
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_5808
push 0
push 0x3ec
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_2003
push 0
push 0x3ed
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_2003
jmp 0x40b8a4
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.00401de0
mov eax, dword [eax]
push 0x41efc0
push eax
call dword [sym.imp.MSVCR70.dll__wcsicmp]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b87a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x40b8a4
push 0x41efc0
mov ecx, ebx
call fcn.00401b30
mov ebx, dword [ebx]
push ebx
push 0x3ec
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_5808
cmp dword [edi + 0x178], 1
jne 0x40b96a
lea ebx, [edi + 0x17c]
push 0x2f
mov ecx, ebx
call fcn.0040b3c0
push 0x5c
mov ecx, ebx
call fcn.0040b3c0
push 0x3f
mov ecx, ebx
call fcn.0040b3c0
push 0x25
mov ecx, ebx
call fcn.0040b3c0
push 0x2a
mov ecx, ebx
call fcn.0040b3c0
push 0x3a
mov ecx, ebx
call fcn.0040b3c0
push 0x7c
mov ecx, ebx
call fcn.0040b3c0
push 0x22
mov ecx, ebx
call fcn.0040b3c0
push 0x3c
mov ecx, ebx
call fcn.0040b3c0
push 0x3e
mov ecx, ebx
call fcn.0040b3c0
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x40b96a
push 0x3ee
mov ecx, esi
mov dword [edi + 0x178], 0
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0xf1
push ecx
call ebp
mov ebx, dword [ebx]
push ebx
push 0x3f3
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_5808
push 0
push 0x3f3
mov ecx, esi
call sub.MFC70U.DLL_Ordinal_2465
mov ecx, eax
call sub.MFC70U.DLL_Ordinal_2003
mov eax, dword [edi + 0x17c]
push ecx
lea esi, [edi + 0x17c]
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov ebx, esp
push eax
call fcn.004012c0
add esp, 4
lea edx, [esp + 0x1c]
add eax, 0x10
push edx
mov ecx, edi
mov dword [ebx], eax
call fcn.00414c30
push eax
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.00401510
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret