Function at 0x459970
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b76c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x1b8], 0
test eax, eax
je 0x4599b8
lea eax, [esp + 0x1c0]
lea ecx, [esi + 0x58]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x459e71
push 0x4e6998
lea ecx, [esi + 0x58]
call sub.MFC42.DLL_CString::operator
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
xor ecx, ecx
cmp eax, esi
sete cl
mov dword [esp + 0x24], ecx
push 0x4e01dc
lea ecx, [esp + 0x1c4]
call sub.MFC42.DLL_CString::TrimRight
push 0x4e01dc
lea ecx, [esp + 0x1c4]
call fcn.004ac20a
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
lea edi, [esi + 0x44]
push ecx
push eax
push eax
call fcn.0045e050
add esp, 0xc
mov ebx, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebx
call fcn.0045dc70
lea ebp, [esi + 0x70]
mov dword [edi + 8], ebx
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
push ecx
push eax
push eax
call fcn.0044b2c0
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push ebx
call fcn.0040c2b0
mov dword [ebp + 8], ebx
lea ebx, [esi + 0xb0]
lea edx, [esp + 0x1c0]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx]
push 0x4e01dc
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x459a9d
push 0x4e6998
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
mov ecx, esi
call fcn.0045a530
jmp 0x459e71
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0xb
push ecx
mov dword [esi + 0x5c], 1
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::EnableWindow
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c0], 1
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4e01dc
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne byte [esp + 0x17]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x17]
test al, al
je 0x459b16
push 0x4e01dc
lea ecx, [esp + 0x1c]
call fcn.004ac20a
push 0x4e3f78
lea ecx, [esp + 0x1c]
call fcn.004ac20a
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x1bc], 2
call sub.MFC42.DLL_CString::TrimRight_2
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1bc], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b8], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b8], 4
call sub.MFC42.DLL_CString::CString_2
or ebx, 0xffffffff
mov dword [esp + 0x6c], ebx
push 0x4e2890
lea ecx, [esp + 0x54]
mov byte [esp + 0x1bc], 5
call sub.MFC42.DLL_CString::operator
push 0x4e2890
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, ebp
mov dword [esp + 0x64], 1
mov dword [esp + 0x1c], 0
call fcn.0047c020
mov eax, dword [edi + 8]
lea edx, [esp + 0x50]
push edx
push 1
push eax
mov ecx, edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.0045dd30
mov eax, dword [esp + 0x20]
mov ebx, 1
cmp eax, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x459dd2
test byte [esp + 0x70], 0x10
je 0x459c76
lea eax, [esp + 0x9c]
push 0x4e2890
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x459d86
lea ecx, [esp + 0x9c]
push 0x4e26e0
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x459d86
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b8], 6
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x44], 0xffffffff
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0x1bc], 7
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x84]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CTime::CTime_1
mov al, byte [esp + 0x70]
mov edx, dword [esp + 0x48]
test al, 0x10
mov dword [esp + 0x40], edx
je 0x459d03
or eax, 0xffffffff
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x459d37
mov eax, dword [esp + 0x8c]
push 1
push 0
push 0
push eax
mov dword [esp + 0x40], 0
call fcn.004acd60
mov ecx, dword [esp + 0x90]
xor ebx, ebx
add eax, ecx
adc edx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [edi + 8]
lea edx, [esp + 0x28]
push edx
push 1
push eax
mov ecx, edi
call fcn.0045dd30
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x4c]
push ecx
push 1
push eax
mov ecx, ebp
mov dword [esp + 0x58], ebx
call fcn.0047c020
inc ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b8], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b8], 5
call sub.MFC42.DLL_CString::CString
cmp ebx, 0x64
je 0x459da4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x459dc7
jmp 0x459c33
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x20]
push ecx
push edx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x1b8], 9
jmp 0x459e35
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x102f
push edx
mov dword [esi + 0x5c], 0
call edi
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push eax
push ecx
mov ecx, esi
call fcn.00456eb0
push 1
mov ecx, esi
call sub.MFC42.DLL_CWnd::EnableWindow
mov edx, dword [esi + 0x20]
push 0
push 1
push 0xb
push edx
call edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x459e26
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, esi
call fcn.0045cf40
mov byte [esp + 0x1b8], 0xa
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x1b8], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x1b8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ac
ret 4