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

Disassembly:
push 0xffffffffffffffff
push 0x40c9b7
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x412018]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0x884]
mov dword fs:[0], eax
mov eax, dword [esp + 0x894]
xor esi, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x898]
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
mov byte [esp + 0x1f], 0
mov word [esp + 0x3c], si
je 0x406608
lea edx, [esp + 0x3c]
sub edx, eax
jmp 0x4065f0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4065f0
lea ebx, [esp + 0x3c]
call fcn.004028f0
mov ecx, dword [0x4124f0]
cmp dword [ecx - 0xc], esi
mov dword [esp + 0x28], esi
je 0x406b19
mov ebp, dword [sym.imp.MSVCR80.dll_wcsrchr]
mov eax, 0x4124f0
mov ebx, dword [eax]
lea edx, [esp + 0x3c]
push 0x5c
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40663c
lea eax, [esp + 0x3c]
push 0x2e
push eax
call ebp
add esp, 8
test eax, eax
je 0x40669d
add eax, 2
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406650
sub ecx, esi
sar ecx, 1
mov edi, ecx
push edi
push eax
lea eax, [esp + 0x844]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
test edi, edi
mov word [esp + edi*2 + 0x83c], 0
je 0x40669d
lea ecx, [esp + 0x83c]
push ebx
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4066c6
mov eax, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x28], eax
shl eax, 5
mov edx, dword [eax + 0x4124f0]
cmp dword [edx - 0xc], 0
lea eax, [eax + 0x4124f0]
jne 0x406626
jmp 0x406b19
mov esi, dword [esp + 0x28]
shl esi, 5
lea ebx, [esi + 0x412500]
mov ecx, ebx
mov byte [esp + 0x1f], 1
call fcn.00402420
test eax, eax
je 0x4067e4
push 1
push 0x2e
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_281]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x890], 0
call fcn.00402ca0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x890], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
lea ecx, [esp + 0x18]
mov byte [esp + 0x88c], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
call fcn.00402800
mov eax, dword [eax]
test eax, eax
je 0x40674b
mov eax, dword [eax]
jmp 0x40674d
xor eax, eax
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4067a0
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x406798
test edi, edi
je 0x406798
mov eax, dword [edi]
test eax, eax
je 0x40677f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x40678f
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
push edi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov dword [esp + 0x18], 0
mov eax, dword [0x412410]
mov edx, dword [eax]
push ebx
push ebp
push eax
mov eax, dword [edx + 0x14]
call eax
test eax, eax
push ebp
jge 0x4067c9
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x406b38
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x24]
mov dword [esp + 0x88c], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, ebx
call fcn.00402420
test eax, eax
jne 0x40683a
cmp dword [esi + 0x4124f8], 0
lea eax, [esi + 0x4124f8]
jne 0x40683a
push eax
push 0x40d7a4
push 1
push 0
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40683a
mov ecx, dword [0x40d748]
mov edx, dword [0x40d74c]
mov eax, dword [0x40d750]
mov dword [ebx], ecx
mov ecx, dword [0x40d754]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
jmp 0x406b38
push 0x14
call sub.MFC80U.DLL_Ordinal_762
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x88c], 2
je 0x4068c3
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x40]
call fcn.00402d60
mov edi, eax
lea eax, [esp + 0x24]
mov byte [esp + 0x88c], 3
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], 1
call fcn.00402b90
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x88c], 4
mov ecx, dword [esi + 0x4124f8]
mov edi, dword [edi]
mov ebp, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], 3
call fcn.00407d60
movzx eax, al
push eax
push edi
push ebp
push ebx
call fcn.004036c0
mov edi, eax
jmp 0x4068c5
xor edi, edi
mov ebx, dword [esp + 0x20]
test bl, 2
je 0x4068df
and ebx, 0xfffffffd
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test bl, 1
mov dword [esp + 0x88c], 0xffffffff
je 0x406900
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x40]
call fcn.00402b90
mov ebp, dword [esp + 0x2c]
push eax
lea ecx, [ebp + 0x488]
mov dword [esp + 0x890], 7
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x30]
mov dword [esp + 0x88c], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test edi, edi
je 0x406b19
push edi
mov ebx, ebp
call fcn.004070b0
test al, al
jne 0x406af6
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0
push 0
mov dword [esp + 0x894], 8
mov edx, dword [ebp + 0x388]
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esp + 0x28]
mov eax, dword [ebp + eax*4 + 0x3d8]
push 0
push eax
push 0
push 0
push 0x40d760
push ebx
add ebp, 0x368
push 3
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_3873
mov eax, dword [edi]
push eax
push 1
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5869
mov eax, dword [edi + 4]
push eax
push 2
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5869
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4069dd
push 0x8c
jmp 0x406a26
mov esi, 0x40df58
lea ecx, [esp + 0x3c]
call fcn.00402e70
test al, al
jne 0x406a13
mov esi, 0x40df60
lea ecx, [esp + 0x3c]
call fcn.00402e70
test al, al
jne 0x406a13
mov esi, 0x40df68
lea ecx, [esp + 0x3c]
call fcn.00402e70
test al, al
je 0x406a53
lea ecx, [esp + 0x3c]
push ecx
call fcn.004094f0
add esp, 4
test eax, eax
jne 0x406a53
push 0x73
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
mov edx, dword [esp + 0x18]
push edx
push 3
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5869
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [edi + 0xc], 0
jmp 0x406abf
push 0x81
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_4026]
cmp dword [edi + 8], 0
je 0x406a6e
lea eax, [esp + 0x18]
jmp 0x406a8a
push 0x40df56
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_287]
mov byte [esp + 0x88c], 9
or dword [esp + 0x20], 4
lea esi, [edi + 0x10]
push eax
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov dword [esp + 0x88c], 8
test byte [esp + 0x20], 4
je 0x406ab2
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [esi]
push esi
push 3
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5869
push edi
push 0
push 0
push 0
push 0
push 4
push 0
push ebx
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_5862
mov ecx, dword [esp + 0x2c]
mov byte [ecx + 0x3c0], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x88c], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x406b19
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [edi + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push edi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
cmp byte [esp + 0x89c], 0
je 0x406b38
cmp byte [esp + 0x1f], 0
jne 0x406b38
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00406e00
mov ecx, dword [esp + 0x884]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.0040b007
add esp, 0x87c
ret 0xc