Function at 0x412fc0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x417c09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.00411df0
mov esi, dword [esp + 0x130]
push 0x46ad80
mov ecx, esi
mov dword [esp + 0x124], 0
call fcn.004154e4
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x3c]
push eax
push edi
mov ecx, ebp
call fcn.00413ca0
test eax, eax
jne 0x41303d
lea ecx, [esp + 0x3c]
mov dword [esp + 0x120], 0xffffffff
call fcn.00411e80
mov eax, 1
jmp 0x413451
lea ecx, [esp + 0x64]
call fcn.00411930
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x60]
lea edx, [esp + 0x64]
push ecx
push edx
push edi
push eax
mov ecx, ebp
mov byte [esp + 0x130], 1
call fcn.004126f0
mov edi, eax
test edi, edi
je 0x41309a
lea ecx, [esp + 0x64]
mov byte [esp + 0x120], 0
call fcn.004119b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x120], 0xffffffff
call fcn.00411e80
mov eax, edi
jmp 0x413451
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x68]
mov byte [esp + 0x120], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
jne 0x4130fc
lea edx, [esp + 0x68]
push str..
lea eax, [esp + 0x10]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0xc]
mov edi, eax
mov byte [esp + 0x120], 2
call fcn.004154de
jmp 0x41310e
mov ecx, dword [esp + 0x68]
push 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
mov edi, eax
test edi, edi
push ebx
je 0x413287
mov bl, 5
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x41327f
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x40]
test eax, eax
je 0x41314d
push str.drwx______
jmp 0x413152
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 + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 4
call sub.MFC42.DLL_CFileFind::GetLength
push eax
lea eax, [esp + 0x18]
push 0x46a7fc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x46aba0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x124], bl
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x128], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x124], bl
call fcn.004154de
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x1c]
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebp
call fcn.00414130
push eax
mov ecx, esi
mov byte [esp + 0x128], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x124], bl
call fcn.004154de
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
mov ecx, esi
mov byte [esp + 0x128], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], bl
call fcn.004154de
push 0x4214a0
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 4
call fcn.004154de
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 2
call fcn.004154de
test edi, edi
jne 0x413119
mov eax, dword [esp + 0x88]
test eax, eax
je 0x413418
mov eax, dword [esp + 0x54]
xor edi, edi
test eax, eax
jle 0x413418
lea edx, [esp + 0x8c]
push edi
push edx
lea ecx, [esp + 0x54]
call fcn.004142a0
mov ecx, dword [eax + 0x20]
mov byte [esp + 0x124], 9
test ecx, ecx
jne 0x413302
lea eax, [esp + 0xd4]
push edi
push eax
lea ecx, [esp + 0x54]
call fcn.004142a0
mov eax, dword [eax + 8]
push 0x46ad80
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xd4]
test eax, eax
setne bl
call fcn.004119b0
test bl, bl
je 0x413302
mov bl, 1
jmp 0x413304
xor bl, bl
lea ecx, [esp + 0x8c]
mov byte [esp + 0x124], 2
call fcn.004119b0
test bl, bl
je 0x41340b
lea ecx, [esp + 0xb0]
push edi
push ecx
lea ecx, [esp + 0x54]
call fcn.004142a0
mov eax, dword [eax + 4]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 0xa
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0xb0]
mov ebx, eax
mov byte [esp + 0x124], 2
call fcn.004119b0
test ebx, ebx
je 0x41340b
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
push str.drwx______
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
push str._____________0
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.00414130
push eax
mov ecx, esi
mov byte [esp + 0x128], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x124], 2
call fcn.004154de
lea ecx, [esp + 0xf8]
push edi
push ecx
lea ecx, [esp + 0x54]
call fcn.004142a0
add eax, 8
mov ecx, esi
push eax
mov byte [esp + 0x128], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xf8]
mov byte [esp + 0x124], 2
call fcn.004119b0
push 0x4214a0
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
jl 0x4132a4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
call fcn.00415b1a
lea ecx, [esp + 0x68]
mov byte [esp + 0x124], 0
call fcn.004119b0
lea ecx, [esp + 0x40]
mov dword [esp + 0x124], 0xffffffff
call fcn.00411e80
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x118
ret 0xc