Function at 0x402eb0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x406ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x44]
push esi
push edi
mov edi, ecx
push ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x50]
push 0x40b978
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.0040615e
push 0x2a
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight_1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x402f16
lea ecx, [edi + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.004061a6
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x4c]
lea eax, [esp + 0xc]
push edx
push 6
push ecx
mov byte [esp + 0x50], 1
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00402760
sub eax, 3
je 0x4031f5
sub eax, 2
je 0x4031ed
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x44], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
jne 0x40303a
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x50]
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x40b6c0
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call fcn.004060da
test bl, bl
je 0x402ff3
lea ecx, [esp + 0x4c]
push 0x40b708
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, eax
mov byte [esp + 0x44], 3
lea ecx, [esp + 0x10]
jmp 0x403025
lea eax, [esp + 0x4c]
push 0x40b700
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, eax
mov byte [esp + 0x44], 3
lea ecx, [esp + 0x10]
call fcn.004060da
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 2
call fcn.004060da
jmp 0x40304c
mov edx, dword [esp + 0x4c]
push 0
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, eax
test edi, edi
je 0x4031a7
mov bl, 7
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x20]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40319f
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x40]
test eax, eax
je 0x40308a
push str.drwx______
jmp 0x40308f
push str._rwx______
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push str._1_user_group
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CFileFind::GetLength
push eax
lea ecx, [esp + 0x54]
push 0x40b6d4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x40b6c4
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x44], bl
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], bl
call fcn.004060da
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00405a00
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x48], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], bl
call fcn.004060da
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
mov ecx, esi
mov byte [esp + 0x48], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], bl
call fcn.004060da
push 0x40b0bc
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 6
call fcn.004060da
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 2
call fcn.004060da
test edi, edi
jne 0x403056
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.0040621e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0
call fcn.004060da
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004060da
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 8
push ebx
push str.550___s_:_Permission_denied.
jmp 0x4031fb
push ebx
push str.550___s_:_Directory_not_found.
push edi
call fcn.004015f0
add esp, 0xc
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 0
call fcn.004060da
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.004060da
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 8