Function at 0x4051e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x408cf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x17c]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 1
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 + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405269
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 + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x4052bb
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x17c]
mov dword [esp + 0x16c], esi
call sub.MFC42.DLL_CString::CString
jmp 0x40544c
mov ecx, dword [esp + 0x178]
push ebp
push 0
push 0
mov edx, dword [ecx + 0x20]
push 0x1009
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, dword [esp + 0x184]
test byte [esp + 0x28], 0x10
je 0x4053f2
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
push 0x40b228
push ecx
mov byte [esp + 0x178], 2
call edi
add esp, 8
test eax, eax
je 0x4053df
mov edx, dword [esp + 0x14]
push 0x40b224
push edx
call edi
add esp, 8
test eax, eax
je 0x4053df
cmp dword [esp + 0x28], 0x16
je 0x4053df
push 0xffff0003
mov ecx, dword [esp + 0x17c]
push ebp
push 0
push 0
push 0
push 6
lea eax, [esp + 0x6c]
push 1
push eax
push 0x23
call sub.MFC42.DLL_CTreeCtrl::InsertItem
lea ecx, [esp + 0x180]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 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 0x4053b2
push 0x40b230
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x54]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00405470
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 1
call sub.MFC42.DLL_CString::CString
jmp 0x405408
mov edx, dword [esp + 0x17c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.004054b0
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052dd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x180]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebp
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 0x10