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

Disassembly:
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [esp + 0x178]
mov edx, dword [esp + 0x178]
mov ecx, dword [eax + 4]
sub ecx, dword [edx]
cmp ecx, 0x104
jae 0x421c58
lea ecx, [esp + 0xc]
mov edx, 0x476c1c
push ecx
push edx
call fcn.0045a18c
add esp, 4
mov ecx, dword [esp + 0x17c]
mov ebx, eax
mov esi, dword [ecx + 4]
mov edx, dword [esp + 0x17c]
lea esi, [ebx + esi + 1]
xor ecx, ecx
sub esi, dword [edx]
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], ecx
push esi
lea ecx, [esp + 0x154]
call fcn.0042eac0
mov edx, dword [esp + 0x154]
mov byte [edx], 0
mov ecx, dword [esp + 0x17c]
push dword [ecx + 4]
mov edx, dword [esp + 0x180]
push dword [edx]
lea ecx, [esp + 0x158]
call fcn.004288b0
lea edx, [ebx + 0x476c1c]
mov ecx, 0x476c1c
push edx
push ecx
lea ecx, [esp + 0x158]
call fcn.0042870c
mov edx, dword [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x170], eax
sub ecx, dword [esp + 0x14c]
push ecx
push dword [esp + 0x150]
lea ecx, [esp + 0x15c]
call fcn.00428728
cmp dword [esp + 0x170], 0xffffffff
je 0x421c58
test dword [esp + 0xc], 0x400
jne 0x421c31
mov eax, 0x2e
cmp byte [esp + 0x38], al
jne 0x421a94
cmp byte [esp + 0x39], 0
je 0x421c31
cmp byte [esp + 0x39], al
jne 0x421a94
cmp byte [esp + 0x3a], 0
je 0x421c31
test dword [esp + 0xc], 0x10
je 0x421c16
push dword [esp + 0x17c]
lea edx, [esp + 0x3c]
push edx
call fcn.0045a18c
add esp, 4
mov ecx, dword [esp + 0x17c]
mov ebx, eax
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x17c]
lea edi, [ebx + edi + 1]
xor ecx, ecx
sub edi, dword [edx]
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], ecx
mov dword [esp + 0x164], ecx
push edi
lea ecx, [esp + 0x160]
call fcn.0042eac0
mov ecx, dword [esp + 0x160]
xor edx, edx
mov byte [ecx], dl
mov ecx, dword [esp + 0x17c]
push dword [ecx + 4]
mov ecx, dword [esp + 0x180]
push dword [ecx]
lea ecx, [esp + 0x164]
call fcn.004288b0
lea edx, [esp + ebx + 0x3c]
push edx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x164]
call fcn.0042870c
mov edx, 0x476c20
push edx
call fcn.0045a18c
add esp, 4
mov esi, eax
mov dword [esp + 0x168], 0
mov ecx, dword [esp + 0x160]
lea edx, [esi + ecx + 1]
sub edx, dword [esp + 0x15c]
mov dword [esp + 0x16c], 0
mov dword [esp + 0x170], 0
push edx
lea ecx, [esp + 0x16c]
call fcn.0042eac0
mov edx, dword [esp + 0x16c]
mov byte [edx], 0
push dword [esp + 0x160]
push dword [esp + 0x160]
lea ecx, [esp + 0x170]
call fcn.004288b0
lea edx, [esi + 0x476c20]
mov ecx, 0x476c20
push edx
push ecx
lea ecx, [esp + 0x170]
call fcn.0042870c
lea edx, [esp + 0x168]
push edx
call fcn.00421960
mov ecx, dword [esp + 0x174]
sub ecx, dword [esp + 0x16c]
push ecx
push dword [esp + 0x170]
lea ecx, [esp + 0x17c]
call fcn.00428728
mov edx, dword [esp + 0x168]
sub edx, dword [esp + 0x160]
push edx
push dword [esp + 0x164]
lea ecx, [esp + 0x170]
call fcn.00428728
add esp, 8
jmp 0x421c31
push dword [esp + 0x17c]
lea ebx, [esp + 0x3c]
push ebx
push dword [esp + 0x180]
call fcn.00421010
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x174]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x421a5f
push dword [esp + 0x170]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
add esp, 0x168
ret