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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b90e
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403df8
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403efc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x49b7e2
xor edx, edx
push ebp
push 0x49b7db
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x15c]
test al, 0x10
jne 0x49b7ac
cmp byte [ebp + 0xc], 0
je 0x49b707
test al, 2
jne 0x49b7ac
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
call fcn.0049a230
mov eax, dword [ebp + 8]
test byte [eax + 0x4b], 0x10
jne 0x49b74f
push dword [ebp - 0x18]
push dword [ebp - 8]
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00403ce8
push dword [ebp - 0x160]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403df8
jmp 0x49b78d
cmp dword [ebp - 8], 0
je 0x49b78d
lea edx, [ebp - 0x164]
mov eax, dword [ebp - 0x18]
call fcn.0044c518
push dword [ebp - 0x164]
push dword [ebp - 8]
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 0x18]
call fcn.0044c4f0
push dword [ebp - 0x168]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403df8
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0049b508
pop ecx
test al, al
je 0x49b7ac
mov byte [ebp - 0xd], 1
call fcn.00403628
jmp 0x49b8e3
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49b6eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b7e2
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose_1
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x4c], 0x20
je 0x49b8e3
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push 0x49b928
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00403df8
mov eax, dword [ebp - 0x16c]
call fcn.00403efc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x49b8e3
xor eax, eax
push ebp
push 0x49b8dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x15c]
call fcn.0049b46c
test al, al
je 0x49b8ad
mov eax, dword [ebp + 0x10]
push eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00403ce8
push dword [ebp - 0x174]
push 0x49b934
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00403df8
mov edx, dword [ebp - 0x170]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0049b654
pop ecx
test al, al
je 0x49b8ad
mov byte [ebp - 0xd], 1
call fcn.00403628
jmp 0x49b8e3
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49b83d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b8e3
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b915
lea eax, [ebp - 0x174]
mov edx, 6
call fcn.00403adc
lea eax, [ebp - 0x18]
mov edx, 2