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

Disassembly:
sub esp, 0x558
push ebx
push ebp
push esi
mov esi, dword [esp + 0x568]
push edi
push esi
lea eax, [esp + 0x364]
mov edi, ecx
push eax
mov dword [esp + 0x1c], edi
xor bl, bl
call fcn.100165e0
push esi
lea ecx, [esp + 0x260]
push ecx
mov ecx, edi
call fcn.10016650
lea edi, [esp + 0x25c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100167a0
mov dx, word [0x10039b2c]
mov word [edi], dx
xor eax, eax
jmp 0x100167c0
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x100167c0
lea eax, [esp + 0x360]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100167e0
lea edi, [esp + 0x464]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100167f1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100168c9
jmp 0x10016830
mov edi, 0x1003b95c
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1001685f
mov edi, 0x1003b958
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1001685f
test byte [esp + 0x18], 0x10
je 0x10016871
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016830
jmp 0x100168ba
mov edi, dword [esp + 0x574]
lea eax, [esp + 0x25c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10016885
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016895
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100168a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bl, 1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x10016a4a
mov ebp, dword [esp + 0x570]
test ebp, ebp
je 0x10016a4a
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x100168e0
lea edi, [esp + 0x158]
dec edi
jmp 0x10016900
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10016900
mov edx, dword [0x1003c81c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10016a4a
mov edi, 0x1003b95c
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10016a27
mov edi, 0x1003b958
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10016a27
test byte [esp + 0x18], 0x10
je 0x10016a27
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x158], cl
inc eax
test cl, cl
jne 0x10016970
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016990
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100169a1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100169c1
mov cx, word [0x10039b2c]
lea eax, [esp + 0x360]
mov word [edi], cx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100169e0
lea edi, [esp + 0x158]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100169f1
mov edx, dword [esp + 0x574]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push ebp
lea eax, [esp + 0x160]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10016760
mov bl, al
test bl, bl
jne 0x10016a3f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016930
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x558
ret 0xc