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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x248
push 8
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x402350
push dword [ebp + 0x18]
push str._s
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402344
mov esi, eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0x18]
push 0x475198
push 0x104
push edi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov eax, dword [ebp - 0x290]
add esp, 0x14
test al, 0x10
je 0x402195
push 0x4751a4
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40218f
push 0x4751a8
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40218f
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004020b4
add esp, 0x18
jmp 0x402327
mov eax, dword [ebp - 0x290]
test al, 0xa7
je 0x402327
cmp dword [ebp + 0x10], 0
je 0x402293
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
jbe 0x402327
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax*4]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x40227e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
lea eax, [esi*2 + 0x48]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0xc]
push 0x475198
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 4
add eax, esi
mov esi, dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
cmp dword [ebp + 0x1c], 0
je 0x402269
lea eax, [ebp - 0x3c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x402257
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
mov edx, esi
push 2
push 0
push edi
call fcn.0045507c
add esp, 0xc
mov eax, dword [ebp - 8]
inc dword [eax]
test esi, esi
je 0x40227e
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 8]
jb 0x4021b5
jmp 0x402324
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
lea eax, [esi*2 + 0x48]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0xc]
push 0x475198
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 4
add eax, esi
mov esi, dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ecx, dword [ebp + 0x14]
add esp, 0x14
mov edx, esi
push 2
push 0
push edi
call fcn.0045507c
mov eax, dword [ebp - 8]
add esp, 0xc
inc dword [eax]
test esi, esi
je 0x402324
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402119
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret