Function at 0x411be0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41a9c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
xor eax, eax
push ebx
mov dword [esp + 0x1d], eax
push ebp
mov dword [esp + 0x25], eax
mov ebx, ecx
mov dword [esp + 0x29], eax
push edi
mov dword [esp + 0x31], eax
mov ecx, 0x18
mov word [esp + 0x35], ax
lea edi, [esp + 0xb9]
mov byte [esp + 0x37], al
mov byte [esp + 0xb8], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
stosb byte es:[edi], al
mov byte [esp + 0xf], 0
xor ebp, ebp
call sub.MFC42.DLL_CString::CString_3
push 0x85
lea ecx, [esp + 0x14]
mov dword [esp + 0x268], ebp
call sub.MFC42.DLL_CString::LoadStringA
cmp dword [esp + 0x270], ebp
je 0x4120fb
cmp dword [esp + 0x26c], ebp
je 0x4120fb
push esi
lea esi, [ebx + 0xe8]
push ebp
mov ecx, esi
mov dword [esp + 0x40], esi
call sub.MFC42.DLL_CWnd::EnableWindow
lea edi, [ebx + 0x3a0]
push ebp
mov ecx, edi
mov dword [esp + 0x44], edi
call sub.MFC42.DLL_CWnd::EnableWindow
mov eax, dword [esp + 0x274]
mov dword [esp + 0x18], ebp
test eax, eax
jle 0x41200f
xor ecx, ecx
mov edx, dword [esp + 0x270]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov edi, 0x422614
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov cl, byte [eax + edx]
mov byte [esp + 0x28], cl
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xbc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xbc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x422610
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x411fe7
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040eae0
add esp, 4
cmp eax, 6
jne 0x411e32
mov al, byte [esp + 0x13]
test al, al
jne 0x411e08
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x64]
push 0
lea esi, [ebx + 0x60]
push ecx
push ebp
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push 1
push ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
inc ebp
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
je 0x411e9f
test al, 0x10
jne 0x411e9f
lea ecx, [esp + 0x58]
push ecx
call fcn.0040eae0
add esp, 4
test eax, eax
jle 0x411e9f
lea edx, [esp + 0x58]
push edx
call fcn.0040eae0
add esp, 4
cmp eax, 6
je 0x411e9f
mov al, byte [esp + 0x13]
test al, al
jne 0x411e75
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea eax, [esp + 0x64]
push 0
lea esi, [ebx + 0x60]
push eax
push ebp
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
mov ecx, dword [esp + 0x14]
push ecx
push 1
push ebp
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
inc ebp
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x120]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x411fe0
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040eae0
add esp, 4
cmp eax, 6
jne 0x411f58
mov al, byte [esp + 0x13]
test al, al
jne 0x411f2e
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x64]
push 0
lea esi, [ebx + 0x60]
push ecx
push ebp
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push 1
push ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
inc ebp
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
je 0x411fc5
test al, 0x10
jne 0x411fc5
lea ecx, [esp + 0x58]
push ecx
call fcn.0040eae0
add esp, 4
test eax, eax
jle 0x411fc5
lea edx, [esp + 0x58]
push edx
call fcn.0040eae0
add esp, 4
cmp eax, 6
je 0x411fc5
mov al, byte [esp + 0x13]
test al, al
jne 0x411f9b
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea eax, [esp + 0x64]
push 0
lea esi, [ebx + 0x60]
push eax
push ebp
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
mov ecx, dword [esp + 0x14]
push ecx
push 1
push ebp
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
inc ebp
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x120]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411eba
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x411fe9
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x274]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x411cc4
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
push 0x86
lea ecx, [esp + 0x24]
mov byte [esp + 0x26c], 1
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
push 0x87
lea ecx, [esp + 0x20]
mov byte [esp + 0x26c], 2
call sub.MFC42.DLL_CString::LoadStringA
mov al, byte [esp + 0x13]
test al, al
jne 0x41205c
mov edx, dword [esp + 0x20]
push edx
jmp 0x412095
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x45], eax
push ebp
mov dword [esp + 0x4d], eax
lea edx, [esp + 0x48]
mov dword [esp + 0x51], eax
push ecx
mov dword [esp + 0x59], eax
push edx
mov word [esp + 0x61], ax
mov byte [esp + 0x50], 0
mov byte [esp + 0x63], al
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 0x3f9
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 1
mov ecx, esi
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
mov ecx, edi
call sub.MFC42.DLL_CWnd::EnableWindow
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x268], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x268], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x268], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
pop esi
jmp 0x412111
lea ecx, [esp + 0x10]
mov dword [esp + 0x264], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x25c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x25c
ret 8