Function at 0x402a10
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x453f5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0x108]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1004
push eax
mov dword [esp + 0x30c], 0
call esi
test eax, eax
je 0x402a6a
mov ecx, dword [ebp + 0x108]
push 0
push 0
push 0x1009
push ecx
call esi
lea edx, [esp + 0x304]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
mov byte [esp + 0x2fc], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402ef7
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x300], 2
call sub.MFC42.DLL_CString::CString_1
push 8
mov byte [esp + 0x300], 3
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x2fc], 4
je 0x402ae3
mov ecx, eax
call sub.MFC42.DLL_CImageList::CImageList
mov ebx, eax
jmp 0x402ae5
xor ebx, ebx
push 1
push 2
push 0x10
push 0x10
push 0x10
mov ecx, ebx
mov byte [esp + 0x310], 3
call sub.MFC42.DLL_CImageList::Create
mov eax, dword [ebp + 0x108]
push 0
push 0
push 0x1000
push eax
call esi
mov dword [ebp + 0x2c0], eax
mov ecx, dword [ebx + 4]
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0x465174
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1b4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402b4f
push eax
jmp 0x402ecf
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004149b6
lea edx, [esp + 0x1e0]
push 0x465170
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402c24
lea eax, [esp + 0x1e0]
push 0x46516c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402c24
lea ecx, [esp + 0x1e0]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x300], 5
call fcn.004149b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x2fc], 3
call sub.MFC42.DLL_CString::CString
test byte [esp + 0x1b4], 0x10
je 0x402bea
call sub.MFC42.DLL_AfxGetModuleState
push 0xa1
push 0xe
push 0xa1
jmp 0x402bfb
call sub.MFC42.DLL_AfxGetModuleState
push 0xa0
push 0xe
push 0xa0
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp + 0x2bc], eax
mov ecx, dword [ebx + 4]
push eax
push 0xffffffffffffffff
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
lea edx, [esp + 0x1b4]
push edx
jmp 0x402c2c
lea eax, [esp + 0x1b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x402b4f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
cmp ebx, edi
jne 0x402c51
xor ebx, ebx
jmp 0x402c54
mov ebx, dword [ebx + 4]
mov ecx, dword [ebp + 0x108]
push ebx
push 1
push 0x1003
push ecx
call esi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
lea ebx, [ebp + 0xe8]
mov dword [esp + 0x14], eax
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::GetHeaderCtrl
mov edx, dword [eax + 0x20]
push edi
push edi
push 0x1200
push edx
call esi
cmp eax, edi
jne 0x402d0b
mov ecx, dword [ebp + 0x108]
lea eax, [esp + 0x24]
push eax
push edi
push 0x101b
push ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x96
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], str.Name
call esi
mov eax, dword [ebp + 0x108]
lea edx, [esp + 0x24]
push edx
push 1
push 0x101b
push eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x40], str.Size
call esi
mov edx, dword [ebp + 0x108]
lea ecx, [esp + 0x24]
push ecx
push 2
push 0x101b
push edx
mov dword [esp + 0x48], 2
mov dword [esp + 0x40], str.Time
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x402d30
push eax
jmp 0x402ecf
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0xa0]
push 0x465170
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402eab
lea eax, [esp + 0xa0]
push 0x46516c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402eab
lea edx, [esp + 0x4c]
xor eax, eax
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
push eax
mov eax, dword [ebp + 0x108]
lea ecx, [esp + 0xa8]
push 0x1007
push eax
mov dword [esp + 0x5c], 0xb
mov dword [esp + 0x78], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], ecx
call esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2fc], 6
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
sub eax, edx
test eax, 0x3ff
jne 0x402dd9
shr eax, 0xa
jmp 0x402ddd
shr eax, 0xa
inc eax
test byte [esp + 0x74], 0x10
jne 0x402df7
push eax
lea ecx, [esp + 0x20]
push str._dKB
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
push 1
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [esp + 0x44]
lea ecx, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x24]
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [esp + 0x2e]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2a]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2a]
push edx
mov edx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x30]
push 0x4654a0
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
add esp, 0x1c
push ecx
push 2
push edi
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x74]
push edx
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
lea ecx, [esp + 0x1c]
neg esi
sbb esi, esi
mov byte [esp + 0x2fc], 3
inc esi
call sub.MFC42.DLL_CString::CString
jmp 0x402ec2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test esi, esi
je 0x402d2a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2fc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2fc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2fc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x304]
mov dword [esp + 0x2fc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f0
ret 4