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

Disassembly:
push 0xffffffffffffffff
push 0x41a631
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 0x411bab
cmp dword [esp + 0x26c], ebp
je 0x411bab
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 0x411abf
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 0x411a97
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.0040e9f0
add esp, 4
cmp eax, 6
jne 0x4118e2
mov al, byte [esp + 0x13]
test al, al
jne 0x4118b8
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 0x41194f
test al, 0x10
jne 0x41194f
lea ecx, [esp + 0x58]
push ecx
call fcn.0040e9f0
add esp, 4
test eax, eax
jle 0x41194f
lea edx, [esp + 0x58]
push edx
call fcn.0040e9f0
add esp, 4
cmp eax, 6
je 0x41194f
mov al, byte [esp + 0x13]
test al, al
jne 0x411925
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 0x411a90
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.0040e9f0
add esp, 4
cmp eax, 6
jne 0x411a08
mov al, byte [esp + 0x13]
test al, al
jne 0x4119de
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 0x411a75
test al, 0x10
jne 0x411a75
lea ecx, [esp + 0x58]
push ecx
call fcn.0040e9f0
add esp, 4
test eax, eax
jle 0x411a75
lea edx, [esp + 0x58]
push edx
call fcn.0040e9f0
add esp, 4
cmp eax, 6
je 0x411a75
mov al, byte [esp + 0x13]
test al, al
jne 0x411a4b
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 0x41196a
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x411a99
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 0x411774
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 0x411b0c
mov edx, dword [esp + 0x20]
push edx
jmp 0x411b45
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 0x411bc1
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