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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404c7c
xor eax, eax
push ebp
push 0x520699
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x170]
mov ecx, 0x5206b0
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 0x170]
call fcn.00404c8c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x520091
mov al, 1
jmp 0x520642
xor eax, eax
jmp 0x520642
cmp byte [esi + 0x3ec], 2
je 0x52064a
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
lea eax, [ebp - 8]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00404a3c
mov eax, dword [ebp - 0x15c]
cmp eax, 0x10
je 0x5200f5
cmp eax, 4
je 0x5200f5
cmp eax, 0x80
je 0x5200f5
cmp eax, 0x100
je 0x5200f5
cmp eax, 0x12
je 0x5200f5
cmp eax, 0x13
je 0x5200f5
cmp eax, 0x20
jne 0x52021a
push dword [ebp - 4]
push 0x5206c0
push dword [ebp - 8]
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.00404b4c
mov edx, dword [ebp - 0x174]
mov eax, dword [esi + 0x344]
call fcn.0046dddc
mov eax, dword [ebp - 8]
mov edx, 0x5206cc
call fcn.00404bd8
je 0x52021a
mov eax, dword [ebp - 8]
mov edx, 0x5206d8
call fcn.00404bd8
je 0x52021a
push dword [ebp - 4]
push 0x5206c0
push dword [ebp - 8]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404b4c
mov eax, dword [ebp - 0x178]
call fcn.004e9d2c
test al, al
je 0x52021a
mov eax, dword [esi + 0x3d0]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x5201f2
lea edx, [ebp - 0x17c]
mov eax, dword [esi + 0x3c8]
call fcn.0046ddac
mov eax, dword [ebp - 0x17c]
push eax
push dword [ebp - 4]
push 0x5206c0
push dword [ebp - 8]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.00404b4c
mov edx, dword [ebp - 0x180]
pop eax
call fcn.00404bd8
je 0x52021a
push dword [ebp - 4]
push 0x5206c0
push dword [ebp - 8]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00404b4c
mov edx, dword [ebp - 0x184]
mov eax, esi
call fcn.00520000
jmp 0x52021a
push dword [ebp - 4]
push 0x5206c0
push dword [ebp - 8]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.00404b4c
mov edx, dword [ebp - 0x188]
mov eax, esi
call fcn.00520000
mov byte [ebp - 0xd], 1
mov eax, dword [esi + 0x3f0]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x52041e
inc eax
mov dword [ebp - 0x1c], eax
xor edi, edi
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
cmp byte [esi + 0x3ec], 2
je 0x52041e
mov edx, edi
mov eax, dword [esi + 0x3f0]
call fcn.0041a6f0
mov ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
call fcn.00404bd8
jne 0x520414
mov byte [ebp - 0xd], 0
mov eax, dword [esi + 0x3b0]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x520295
mov eax, dword [ebx + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x13c]
jne 0x52041e
mov eax, dword [esi + 0x3b4]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x5202e1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 8]
fcomp qword [eax + 8]
fnstsw ax
sahf
jne 0x52041e
mov eax, dword [esi + 0x3d4]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x52030d
mov eax, dword [esi + 0x3d8]
call fcn.004e6fcc
shl eax, 0xa
cmp eax, dword [ebp - 0x13c]
jg 0x52041e
mov eax, ebx
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00404a3c
inc dword [ebx + 4]
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x51e894]
call fcn.00405c1c
add esp, 4
mov eax, dword [ebx + 4]
shl eax, 2
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x13c]
mov dword [edx + eax*8 - 0x20], ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 4]
shl eax, 2
mov edx, dword [ebx + 8]
fstp qword [edx + eax*8 - 0x18]
wait
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 4]
shl eax, 2
mov edx, dword [ebx + 8]
fstp qword [edx + eax*8 - 0x10]
wait
mov eax, dword [ebx + 4]
shl eax, 2
mov edx, dword [ebx + 8]
lea eax, [edx + eax*8 - 8]
mov ecx, 0x5206c0
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov ecx, ebx
mov edx, edi
mov eax, dword [esi + 0x3f0]
call fcn.0041a83c
mov eax, dword [esi + 0x3f0]
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x340]
mov eax, dword [eax + 0x22c]
call fcn.00452078
mov eax, dword [esi + 0x340]
mov edx, dword [eax]
call dword [edx + 0x80]
jmp 0x52041e
inc edi
dec dword [ebp - 0x1c]
jne 0x520236
cmp byte [ebp - 0xd], 0
je 0x52062c
mov eax, dword [ebp - 8]
mov edx, 0x5206cc
call fcn.00404bd8
je 0x52062c
mov eax, dword [ebp - 8]
mov edx, 0x5206d8
call fcn.00404bd8
je 0x52062c
mov edx, dword [ebp - 8]
mov eax, 0x5206cc
call fcn.00404dd0
test eax, eax
jle 0x52062c
mov eax, dword [esi + 0x3d4]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x520562
mov eax, dword [esi + 0x3d8]
call fcn.004e6fcc
shl eax, 0xa
cmp eax, dword [ebp - 0x13c]
jg 0x52062c
mov edx, dword [0x51e8bc]
mov eax, 0xc
call fcn.004056d0
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404820
mov dword [ebx + 4], 1
push 1
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x51e894]
call fcn.00405c1c
add esp, 4
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x13c]
mov dword [eax], edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 8]
fstp qword [eax + 8]
wait
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 8]
fstp qword [eax + 0x10]
wait
mov eax, dword [ebx + 8]
add eax, 0x18
mov ecx, 0x5206c0
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov edx, ebx
mov eax, dword [esi + 0x3f0]
call fcn.0041a594
jmp 0x52062c
mov edx, dword [0x51e8bc]
mov eax, 0xc
call fcn.004056d0
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404820
mov dword [ebx + 4], 1
push 1
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x51e894]
call fcn.00405c1c
add esp, 4
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x13c]
mov dword [eax], edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 8]
fstp qword [eax + 8]
wait
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x16c]
call fcn.0040af64
mov eax, dword [ebx + 8]
fstp qword [eax + 0x10]
wait
mov eax, dword [ebx + 8]
add eax, 0x18
mov ecx, 0x5206c0
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov edx, ebx
mov eax, dword [esi + 0x3f0]
call fcn.0041a594
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x520098
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax