Function at 0x409380
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41c8d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
push esi
push edi
mov edi, ecx
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edi
call fcn.0041aae4
mov esi, dword [esp + 0xf8]
push 0x42b6b8
mov ecx, esi
mov dword [esp + 0xf0], 0
call sub.MFC42.DLL_CString::operator
push 0x2a
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4093f7
lea ecx, [edi + 0x60]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041abce
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 6
push ecx
mov byte [esp + 0xf8], 1
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.00409c30
cmp eax, 3
jne 0x40944b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 6
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.004099c0
cmp eax, 2
jl 0x40949d
cmp eax, 3
jle 0x409462
cmp eax, 5
jne 0x40949d
push ebx
push str.550___s_:_Permission_denied.
jmp 0x409468
push ebx
push str.550___s_:_Directory_or_file_not_found.
push edi
call fcn.004076d0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0xec], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4099a3
mov eax, dword [edi + 0x14]
xor edx, edx
mov eax, dword [eax + 0x70]
mov ecx, dword [eax + 0x130]
mov eax, dword [eax + 0x134]
test ecx, ecx
setne dl
mov ebp, edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xec], 2
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
jne 0x40953a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x42a72c
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 3
call sub.MFC42.DLL_CString::TrimRight_1
push str..
lea ecx, [esp + 0x14]
call fcn.0041aade
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40954c
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, eax
test edi, edi
je 0x4096f4
mov bl, 4
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x34]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4096ec
mov edx, dword [esp + 0x34]
push 2
lea ecx, [esp + 0x38]
call dword [edx + 0x40]
test eax, eax
je 0x40958f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4096ec
mov eax, dword [esp + 0xfc]
test eax, eax
jne 0x4096b1
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x40]
test eax, eax
je 0x4095b6
push str.drwx______
jmp 0x4095bb
push str._rwx______
mov ecx, esi
call fcn.0041aade
push str._1_user_group
mov ecx, esi
call fcn.0041aade
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], bl
call sub.MFC42.DLL_CFileFind::GetLength
push eax
lea ecx, [esp + 0x14]
push 0x42a754
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push str.
call fcn.0041aae4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xec], 5
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0xf0], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 5
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
push ebp
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.00413e80
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0xf0], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x50]
mov byte [esp + 0xec], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xec], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
mov ecx, esi
mov byte [esp + 0xf0], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
push 0x4295fc
mov ecx, esi
call fcn.0041aade
test edi, edi
jne 0x409556
mov ebp, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ebp + 0x78]
test eax, eax
jle 0x409968
add ebp, 0x70
lea ecx, [esp + 0x54]
push ebx
push ecx
mov ecx, ebp
call fcn.0040a410
mov edi, dword [eax + 0x20]
lea ecx, [esp + 0x54]
call fcn.00417b50
test edi, edi
jne 0x40973c
mov edx, dword [esp + 0x28]
inc ebx
cmp ebx, dword [edx + 0x78]
jl 0x40970c
mov dword [esp + 0x20], ebx
jmp 0x409968
lea eax, [esp + 0x54]
push ebx
push eax
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.0040a410
add eax, 4
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0xf0], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x54]
mov byte [esp + 0xec], 0xb
call fcn.00417b50
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x409957
mov eax, dword [esp + 0x28]
xor edi, edi
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x409957
mov bl, 0x11
lea ecx, [esp + 0x78]
push edi
push ecx
mov ecx, ebp
call fcn.0040a410
add eax, 8
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0xf0], 0xc
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x78]
mov byte [esp + 0xec], 0xe
call fcn.00417b50
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft_1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight_2
cmp dword [esp + 0x20], edi
je 0x409938
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
test eax, eax
je 0x409938
lea eax, [esp + 0x9c]
push edi
push eax
mov ecx, ebp
call fcn.0040a410
add eax, 4
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0xf0], 0xf
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x9c]
mov byte [esp + 0xec], bl
call fcn.00417b50
push 0x42a72c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight_1
push str..
lea ecx, [esp + 0x14]
call fcn.0041aade
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x409927
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov eax, dword [esp + 0xfc]
test eax, eax
jne 0x4098e5
push str.drwx______
mov ecx, esi
call fcn.0041aade
push str._1_user_group
mov ecx, esi
call fcn.0041aade
push str._____________0
mov ecx, esi
call fcn.0041aade
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00413e80
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0xf0], 0x12
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xec], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc0]
push edi
push edx
mov ecx, ebp
call fcn.0040a410
add eax, 8
mov ecx, esi
push eax
mov byte [esp + 0xf0], 0x13
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc0]
mov byte [esp + 0xec], bl
call fcn.00417b50
push 0x4295fc
mov ecx, esi
call fcn.0041aade
lea ecx, [esp + 0x10]
mov byte [esp + 0xec], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xec], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc edi
cmp edi, dword [eax + 0x78]
jl 0x4097ac
lea ecx, [esp + 0x24]
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xec], 1
call fcn.0041af3a
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0xec], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xe0
ret 0xc