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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ffca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 0
jne 0x49ffac
mov eax, dword [ebp - 4]
inc word [eax + 0x38]
xor edx, edx
push ebp
push 0x49ffa5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov dword [ebp - 0x18], eax
mov al, byte [ebp - 0xd]
test al, al
je 0x49fd0a
sub al, 2
jne 0x49fe49
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x38]
mov edx, dword [ebp - 0x18]
cmp ax, word [edx + 0xe]
jb 0x49fe49
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49fe49
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x164]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 8]
call fcn.00404f3c
mov eax, dword [ebp - 0x160]
call fcn.004050e8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x49fe3d
xor eax, eax
push ebp
push 0x49fe36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 0
je 0x49fdb0
call fcn.004046a4
call fcn.004046a4
jmp 0x49ffac
mov eax, dword [ebp - 0x15c]
and eax, 0x10
test eax, eax
je 0x49fde1
cmp byte [ebp - 0x130], 0x2e
jne 0x49fde1
cmp byte [ebp - 0x12f], 0
je 0x49fe07
cmp byte [ebp - 0x12f], 0x2e
jne 0x49fde1
cmp byte [ebp - 0x12e], 0
je 0x49fe07
lea ecx, [ebp - 0x15c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x44]
test al, al
je 0x49fe07
lea ecx, [ebp - 0x15c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x40]
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49fd98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fe3d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose_1
ret
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x49fd3d
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0xc], 0
je 0x49ff90
mov dl, byte [ebp - 0xd]
sub dl, 2
jae 0x49ff90
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0x10]
test ax, ax
je 0x49fe7b
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x38]
jbe 0x49ff90
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x168]
mov ecx, 0x49ffe0
mov edx, dword [ebp - 8]
call fcn.00404f3c
mov eax, dword [ebp - 0x168]
call fcn.004050e8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x49ff90
xor edx, edx
push ebp
push 0x49ff89
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x36], 0
je 0x49fed9
call fcn.004046a4
call fcn.004046a4
jmp 0x49ffac
mov eax, dword [ebp - 0x15c]
mov edx, eax
and edx, 0x10
test edx, edx
je 0x49ff5a
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
and edx, eax
test edx, edx
jne 0x49ff5a
cmp byte [ebp - 0x130], 0x2e
jne 0x49ff18
cmp byte [ebp - 0x12f], 0
je 0x49ff5a
cmp byte [ebp - 0x12f], 0x2e
jne 0x49ff18
cmp byte [ebp - 0x12e], 0
je 0x49ff5a
push dword [ebp - 8]
lea eax, [ebp - 0x170]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00404e84
push dword [ebp - 0x170]
push 0x49ffec
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404fb0
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 4]
call fcn.0049fc84
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49fec1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ff90
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ffac
mov eax, dword [ebp - 4]
dec word [eax + 0x38]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ffd1
lea eax, [ebp - 0x170]
mov edx, 5
call fcn.00404c40
ret