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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.0040436c
xor eax, eax
push ebp
push 0x51a0ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4106ec]
call fcn.00403168
mov dword [ebp - 0x40], eax
xor edx, edx
push ebp
push 0x51a071
push dword fs:[edx]
mov dword fs:[edx], esp
call sub.kernel32.dll_GetTickCount
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
call fcn.004041b8
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, 0x51a0c8
call fcn.0040d184
test al, al
jne 0x519e6d
lea eax, [ebp - 0x14]
mov ecx, 0x51a0c8
mov edx, dword [ebp - 4]
call fcn.00404204
jmp 0x519e78
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00403fd0
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404204
mov eax, dword [ebp - 0x184]
call fcn.0040437c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x51a05b
xor edx, edx
push ebp
push 0x51a054
push dword fs:[edx]
mov dword fs:[edx], esp
jmp 0x51a025
mov eax, dword [0x567568]
mov eax, dword [eax]
call fcn.0045184c
test dword [ebp - 0x180], 0x10
jbe 0x519f75
lea eax, [ebp - 0x188]
lea edx, [ebp - 0x154]
mov ecx, 0x104
call fcn.00404168
mov eax, dword [ebp - 0x188]
mov edx, 0x51a0d4
call fcn.004042c8
je 0x519fad
lea eax, [ebp - 0x18c]
lea edx, [ebp - 0x154]
mov ecx, 0x104
call fcn.00404168
mov eax, dword [ebp - 0x18c]
mov edx, 0x51a0e0
call fcn.004042c8
je 0x519fad
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x194]
lea edx, [ebp - 0x154]
mov ecx, 0x104
call fcn.00404168
mov ecx, dword [ebp - 0x194]
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 0x14]
call fcn.00404204
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
call fcn.00519db8
mov byte [ebp - 0xd], al
jmp 0x519fad
lea eax, [ebp - 0x19c]
lea edx, [ebp - 0x154]
mov ecx, 0x104
call fcn.00404168
mov ecx, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
mov edx, dword [ebp - 0x14]
call fcn.00404204
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x51a025
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x12
jne 0x51a025
mov byte [ebp - 0x2d], 1
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x51a00e
inc ebx
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.0051b594
test al, al
jne 0x51a008
inc dword [ebp - 0x38]
inc dword [ebp - 0x34]
dec ebx
jne 0x519feb
cmp dword [ebp - 0x38], 0
jne 0x51a021
mov eax, dword [ebp - 4]
call fcn.0040a3f8
mov byte [ebp - 0xd], al
jmp 0x51a025
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0x2d], 0
je 0x519ec1
mov eax, dword [0x567474]
cmp byte [eax], 0
jne 0x519ec1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a05b
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a078
mov eax, dword [ebp - 0x40]
call fcn.00403198
ret