Function at 0x4d6010
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x58ebd2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x5fd02c
lea ecx, [esp + 0x18]
mov dword [esp + 0x280], 1
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x30]
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x284]
mov byte [esp + 0x27c], 2
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + edx + 0x2f]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4d60ad
cmp cl, 0x2f
jne 0x4d60b0
mov byte [eax], 0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov edi, str..
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x24], esi
je 0x4d63a7
mov edi, dword [esp + 0x288]
mov ebx, dword [esp + 0x290]
test byte [esp + 0x134], 0x10
je 0x4d61e5
mov al, byte [esp + 0x294]
test al, al
je 0x4d62ee
cmp byte [esp + 0x160], 0x2e
je 0x4d62ee
push 0x5fd02c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x160]
push edx
push 0x5e2158
push eax
lea ecx, [esp + 0x2c]
push str._s_s_s
push ecx
mov byte [esp + 0x290], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2a8]
add esp, 0x14
lea eax, [esp + 0x28c]
push edx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push edi
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x294], 4
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
mov byte [esp + 0x290], 3
call fcn.004d6010
test eax, eax
mov byte [esp + 0x27c], 2
lea ecx, [esp + 0x20]
jne 0x4d6358
call sub.MFC42.DLL_CString::CString
jmp 0x4d62ee
push 0x5fd02c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x160]
lea ecx, [esp + 0x10]
push eax
push 0x5e227c
push ecx
mov byte [esp + 0x288], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x2e
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid_1
push 0x2e
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 6
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Mid
test bl, bl
mov byte [esp + 0x27c], 7
je 0x4d627c
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
mov esi, eax
add esp, 8
test esi, esi
je 0x4d6293
or esi, 0xffffffff
jmp 0x4d6293
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28c]
push edx
call sub.MFC42.DLL_CString::Find_1
cmp esi, 0xffffffff
je 0x4d62b7
cmp eax, 0xffffffff
jne 0x4d630a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4d63a0
jmp 0x4d611c
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x160]
push ecx
push 0x5e2158
push edx
push str._s_s_s
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 5
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x27c], 2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x284]
mov byte [esp + 0x27c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28c]
mov dword [esp + 0x27c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4d63e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x284]
mov byte [esp + 0x27c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28c]
mov dword [esp + 0x27c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x270
ret 0x14