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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d41b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1002085b
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.10155d20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push str._s.
lea eax, [ebp - 0x420]
push eax
call fcn.10028de0
add esp, 0xc
lea ecx, [ebp - 0x87c]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x898], eax
cmp dword [ebp - 0x898], 0xffffffff
jne 0x100205f3
jmp 0x1002085b
mov dword [ebp - 0x884], 0x101e22f4
lea eax, [ebp - 0x850]
mov dword [ebp - 0x880], eax
mov ecx, dword [ebp - 0x880]
mov dx, word [ecx]
mov word [ebp - 0x88e], dx
mov eax, dword [ebp - 0x884]
cmp dx, word [eax]
jne 0x1002066f
cmp word [ebp - 0x88e], 0
je 0x10020663
mov ecx, dword [ebp - 0x880]
mov dx, word [ecx + 2]
mov word [ebp - 0x890], dx
mov eax, dword [ebp - 0x884]
cmp dx, word [eax + 2]
jne 0x1002066f
add dword [ebp - 0x880], 4
add dword [ebp - 0x884], 4
cmp word [ebp - 0x890], 0
jne 0x10020609
mov dword [ebp - 0x89c], 0
jmp 0x1002067a
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x89c], ecx
mov edx, dword [ebp - 0x89c]
mov dword [ebp - 0x8a8], edx
cmp dword [ebp - 0x8a8], 0
je 0x1002072f
mov dword [ebp - 0x88c], 0x101e22f8
lea eax, [ebp - 0x850]
mov dword [ebp - 0x888], eax
mov ecx, dword [ebp - 0x888]
mov dx, word [ecx]
mov word [ebp - 0x892], dx
mov eax, dword [ebp - 0x88c]
cmp dx, word [eax]
jne 0x1002070f
cmp word [ebp - 0x892], 0
je 0x10020703
mov ecx, dword [ebp - 0x888]
mov dx, word [ecx + 2]
mov word [ebp - 0x894], dx
mov eax, dword [ebp - 0x88c]
cmp dx, word [eax + 2]
jne 0x1002070f
add dword [ebp - 0x888], 4
add dword [ebp - 0x88c], 4
cmp word [ebp - 0x894], 0
jne 0x100206a9
mov dword [ebp - 0x8a0], 0
jmp 0x1002071a
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x8a0], ecx
mov edx, dword [ebp - 0x8a0]
mov dword [ebp - 0x8ac], edx
cmp dword [ebp - 0x8ac], 0
jne 0x10020734
jmp 0x10020832
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10155d20
add esp, 0xc
lea ecx, [ebp - 0x850]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
lea eax, [ebp - 0x218]
push eax
call fcn.10028de0
add esp, 0x10
cmp dword [ebp - 0x87c], 0
jne 0x1002077e
mov dword [ebp - 0x8a4], 1
jmp 0x10020788
mov dword [ebp - 0x8a4], 0
mov ecx, dword [ebp - 0x8a4]
and ecx, 0x10
je 0x100207a7
lea edx, [ebp - 0x218]
push edx
call fcn.10020560
add esp, 4
jmp 0x10020832
push 0x208
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.10155d20
add esp, 0xc
lea ecx, [ebp - 0x628]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.10163343
add esp, 0x14
push 4
lea ecx, [ebp - 0x62c]
call fcn.10005000
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x62c]
call fcn.1000af00
mov dword [ebp - 4], 0
push 0x101e230c
lea ecx, [ebp - 0x62c]
call fcn.10028d40
test eax, eax
jne 0x10020820
mov dl, 1
lea ecx, [ebp - 0x218]
call fcn.1003e030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x62c]
call fcn.10009c10
lea ecx, [ebp - 0x87c]
push ecx
mov edx, dword [ebp - 0x898]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100205f3
mov eax, dword [ebp - 0x898]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret