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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x5e2ec0]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x2ff
lea eax, [esp + 0x465]
push 0
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], esi
mov byte [esp + 0x46c], 0
call fcn.0055bfc0
add esp, 0xc
test esi, esi
je 0x4617ff
push 4
push edi
xor edi, edi
call fcn.004616d1
pop ecx
pop ecx
push ebx
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, 0x5d42c8
je 0x461836
push esi
lea eax, [esp + 0x464]
push eax
call ebx
push dword [esp + 0xc]
lea eax, [esp + 0x464]
push eax
call ebx
push 0x5df840
lea eax, [esp + 0x464]
push eax
call ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x461878
xor eax, eax
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055a67a
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4619f3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x5d3854
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x461a03
push 0x5d3858
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x461a03
test byte [esp + 0x20], 0x10
mov byte [esp + 0x160], 0
lea eax, [esp + 0x161]
je 0x46193f
push 0x2ff
push 0
push eax
call fcn.0055bfc0
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x46190b
push dword [esp + 0xc]
lea eax, [esp + 0x164]
push eax
call ebx
push esi
lea eax, [esp + 0x164]
push eax
call ebx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x164]
push eax
call ebx
lea eax, [esp + 0x160]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0046179e
add esp, 0xc
test eax, eax
je 0x461861
jmp 0x461a03
mov edi, 0x2ff
push edi
push 0
push eax
call fcn.0055bfc0
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x461974
push dword [esp + 0xc]
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [esp + 0x164]
push eax
call ebx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x164]
push eax
call ebx
push edi
lea eax, [esp + 0x765]
push 0
push eax
mov byte [esp + 0x76c], 0
call fcn.0055bfc0
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x764]
push eax
call ebx
push esi
lea eax, [esp + 0x764]
push eax
call ebx
lea eax, [esp + 0x160]
push eax
lea eax, [esp + 0x764]
push eax
call ebx
push 2
push dword [esp + 0x1c]
lea edi, [esp + 0x768]
lea esi, [esp + 0x168]
call fcn.004616d1
pop ecx
pop ecx
test eax, eax
jne 0x461861
mov esi, 0x5d42c8
jmp 0x461a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x461a13
and dword [esp + 0x14], 0
cmp dword [esp + 0x14], 0
jne 0x461880
xor esi, esi
inc esi
jmp 0x461a15
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x461863