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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x5065d0]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x13c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.004ab5d0
add esp, 0xc
mov edx, edi
mov dword [esp + 0xc], esi
call fcn.00476b3a
test eax, eax
je 0x4191db
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aaeb5
mov esp, ebp
pop ebp
ret
push 1
mov ebx, 0x71c
push ebx
call fcn.004aa454
mov esi, eax
test esi, esi
pop ecx
pop ecx
mov dword [esp + 0x10], esi
je 0x4191c4
push 1
push ebx
call fcn.004aa454
test eax, eax
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x41920f
push esi
call fcn.004aa2a8
pop ecx
jmp 0x4191c4
push edi
mov ecx, ebx
mov eax, esi
call fcn.00476b6c
mov edx, esi
call fcn.00477617
call fcn.004776b8
push 0x22
mov edi, esi
call fcn.004774f1
push esi
call fcn.0041a6da
add esp, 0xc
test eax, eax
je 0x419271
mov edi, 0x4c9428
push edi
push esi
call fcn.004aa910
test eax, eax
pop ecx
pop ecx
jne 0x419271
push esi
call fcn.004aa880
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x419268
push 0x4ce74c
mov eax, ebx
call fcn.00476c3c
pop ecx
push edi
mov eax, ebx
call fcn.00476c3c
pop ecx
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4192a0
xor edi, edi
push esi
call fcn.004aa2a8
push dword [esp + 0x18]
call fcn.004aa2a8
pop ecx
pop ecx
mov eax, edi
jmp 0x4191c6
mov edi, 0x104
lea edx, [esp + 0x4c]
call fcn.00476b3a
test eax, eax
jne 0x419325
cmp byte [esp + 0x4c], 0x2e
je 0x419325
cmp dword [ebp + 0xc], eax
je 0x4192c5
test byte [esp + 0x20], 2
jne 0x419325
test byte [esp + 0x20], 0x10
jne 0x419325
inc dword [esp + 0xc]
cmp dword [esp + 0x18], 0
je 0x419325
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
mov eax, esi
call fcn.00476b6c
push dword [esp + 0x14]
mov ecx, edi
lea eax, [esp + 0x54]
call fcn.00476b6c
call fcn.00476eac
mov edx, eax
mov ecx, esi
call fcn.004770f6
push esi
mov ecx, edi
lea eax, [esp + 0x58]
call fcn.00476b6c
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x419340
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4192a5
mov esi, dword [esp + 0x14]
push dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
cmp dword [ebp + 0x10], 0
je 0x4193f2
push dword [esp + 0x10]
push esi
call fcn.004aa9a0
mov eax, esi
call fcn.00476eac
push 0x4c9428
push esi
call fcn.004aa9b0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4193f2
lea edx, [esp + 0x4c]
call fcn.00476b3a
test eax, eax
jne 0x4193df
cmp byte [esp + 0x4c], 0x2e
je 0x4193df
cmp dword [ebp + 0xc], eax
je 0x4193a8
test byte [esp + 0x20], 2
jne 0x4193df
test byte [esp + 0x20], 0x10
je 0x4193df
push dword [esp + 0x10]
push esi
call fcn.004aa9a0
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.00476fdf
push dword [ebp + 0x18]
push dword [esp + 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00419175
add esp, 0x20
add dword [esp + 0xc], eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419388
push edi
call ebx
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
jmp 0x419288