Function at 0x405f40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x408dd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [esp + 0x170]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], edi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40b230
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405fc5
push 0x40b230
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push 0x40b22c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
jne 0x40602c
mov ecx, dword [esp + 0x180]
mov edi, dword [esp + 0x178]
push ecx
push edi
mov ecx, esi
call fcn.00406380
test eax, eax
je 0x406011
push edi
mov ecx, esi
call fcn.00405470
lea ecx, [esp + 0xc]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4061ef
push ebp
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov edx, dword [esp + 0x184]
push 0
shl edx, 6
push 0
push 0x1009
mov eax, dword [edx + esi + 0x6d8]
lea ebp, [edx + esi]
push eax
mov byte [esp + 0x184], 1
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [esp + 0x2c], 0x10
je 0x406193
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x18]
push 0x40b228
push edx
mov byte [esp + 0x17c], 2
call edi
add esp, 8
test eax, eax
je 0x406180
mov eax, dword [esp + 0x18]
push 0x40b224
push eax
call edi
add esp, 8
test eax, eax
je 0x406180
cmp dword [esp + 0x2c], 0x16
je 0x406180
mov ecx, dword [esp + 0x17c]
push 0xffff0003
push ecx
push 0
push 0
push 0
push 6
lea edx, [esp + 0x70]
push 1
push edx
push 0x23
lea ecx, [ebp + 0x1b8]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov esi, eax
mov eax, dword [esp + 0x180]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
push 1
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 3
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x40b230
push eax
call edi
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x406141
push 0x40b230
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x58]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00406210
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
inc eax
mov byte [esp + 0x174], 2
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4061a6
lea ecx, [esp + 0x2c]
lea edx, [ebp + 0x6b8]
push ecx
push edx
mov ecx, esi
call fcn.004054b0
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406066
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x174], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
pop ebp
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret 0xc