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

Disassembly:
sub esp, 0x68c
push ebx
mov ebx, dword [esp + 0x6dc]
push ebp
push esi
mov al, byte [ebx + 0x24]
push edi
cmp al, 0x20
mov dword [esp + 0x10], 0
jne 0x10170c19
mov eax, dword [esp + 0x6e4]
mov esi, dword [esp + 0x6dc]
mov ecx, dword [eax]
mov dword [ecx + esi*4], 0xfffffff
jmp 0x10170c2f
mov edx, dword [esp + 0x6e4]
mov esi, dword [esp + 0x6dc]
mov eax, dword [edx]
mov word [eax + esi*2], 0xffff
mov ecx, dword [ebx + 0x10]
shl ecx, 9
push ecx
call fcn.10034761
mov ecx, dword [ebx + 0x10]
mov edx, eax
shl ecx, 9
mov ebp, ecx
xor eax, eax
mov edi, edx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
lea ebp, [esp + 0x6b8]
and ecx, 3
mov dword [esp + 0x14], edx
rep stosb byte es:[edi], al
mov eax, 0x20202020
mov ecx, esi
mov dword [esp + 0x6b9], eax
mov word [esp + 0x6d2], si
mov dword [esp + 0x6bd], eax
mov byte [esp + 0x6b8], 0x2e
shr ecx, 0x10
mov word [esp + 0x6c1], ax
mov word [esp + 0x6cc], cx
mov edi, edx
sub ebp, edx
mov eax, 0x20
mov cl, byte [edi + ebp]
mov byte [edi], cl
inc edi
dec eax
jne 0x10170ca4
mov eax, dword [esp + 0x6e0]
mov byte [esp + 0x6b9], 0x2e
mov ecx, eax
mov word [esp + 0x6d2], ax
shr ecx, 0x10
mov word [esp + 0x6cc], cx
lea eax, [esp + 0x6b8]
lea edi, [edx + 0x20]
mov ebp, 0x20
mov dl, byte [eax]
inc eax
mov byte [edi], dl
inc edi
dec ebp
jne 0x10170ce0
mov ax, word [ebx + 0x10]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
shl ax, 4
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x18]
lea ebp, [ecx + eax*2]
mov ecx, dword [ebx + 0x14]
mov al, byte [ebx + 0x24]
add ebp, edx
add ebp, ecx
cmp al, 0x20
jne 0x10170d1e
lea edx, [esi - 2]
mov dword [esp + 0x24], ebp
imul edx, dword [ebx + 0x10]
add ebp, edx
jmp 0x10170d30
lea ecx, [esi - 2]
lea eax, [ebp + 0x20]
imul ecx, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
lea ebp, [ecx + ebp + 0x20]
mov edx, dword [esp + 0x6d8]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x6e8], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 2
call fcn.10033da9
lea ecx, [esp + 0x44]
push ecx
call fcn.10033dce
add esp, 0xc
cmp word [esp + eax*2 + 0x3c], 0x5c
je 0x10170d83
lea edx, [esp + 0x3c]
push 0x1028bc3c
push edx
jmp 0x10170d8d
lea eax, [esp + 0x3c]
push 0x1028bc34
push eax
call fcn.10033d7f
add esp, 8
lea ecx, [esp + 0x244]
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x101712cb
mov dword [esp + 0x2c], 0
push 2
lea eax, [esp + 0x274]
push 0x1028bc2c
push eax
call fcn.101469a3
add esp, 0xc
test eax, eax
je 0x10171247
push 3
lea ecx, [esp + 0x274]
push 0x1028bc24
push ecx
call fcn.101469a3
add esp, 0xc
test eax, eax
je 0x10171247
mov edx, dword [esp + 0x6d8]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.10033da9
lea ecx, [esp + 0x44]
push ecx
call fcn.10033dce
add esp, 0xc
cmp word [esp + eax*2 + 0x3c], 0x5c
je 0x10170e43
lea edx, [esp + 0x3c]
push 0x1028bc08
push edx
call fcn.10033d7f
add esp, 8
lea eax, [esp + 0x270]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.10033d7f
mov edx, dword [esp + 0x24c]
add esp, 8
and edx, 0x10
cmp dl, 0x10
je 0x10170e91
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x50]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10171247
mov edi, dword [esp + 0x6e4]
lea ecx, [esp + 0x244]
lea edx, [esp + 0x6b8]
push ecx
push edx
push edi
call fcn.10170780
add esp, 0xc
mov dword [esp + 0x34], eax
test ax, ax
mov dword [esp + 0x28], 0
jbe 0x10170fab
mov eax, dword [esp + 0x30]
and eax, 0xffff
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push esi
push eax
mov eax, dword [edi + 0x10]
and ecx, 0xffff
add ecx, eax
push ecx
call fcn.10171470
mov eax, dword [esp + 0x24]
add esp, 0xc
inc eax
mov dword [esp + 0x18], eax
and eax, 0xffff
cdq
idiv dword [esp + 0x38]
test edx, edx
jne 0x10170f8a
mov edx, dword [esp + 0x6a8]
cmp byte [edx], 0
jne 0x101712e8
mov eax, dword [esp + 0x6ec]
push eax
push ebx
push esi
push ebp
call fcn.10170590
add esp, 0x10
test eax, eax
je 0x10171322
push ebx
push edi
push 2
call fcn.10170b50
mov cl, byte [ebx + 0x24]
add esp, 0xc
cmp cl, 0x20
jne 0x10170f5f
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi]
mov dword [ecx + eax*4], 0xfffffff
jmp 0x10170f71
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov word [edx + ecx*2], ax
mov edx, dword [edi]
mov word [edx + eax*2], 0xffff
lea ebp, [eax - 2]
mov ecx, dword [esp + 0x24]
imul ebp, dword [ebx + 0x10]
add ebp, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
add eax, 0xffff
add esi, 0x20
test ax, ax
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], eax
ja 0x10170ed3
mov eax, dword [esp + 0x6d4]
test eax, eax
jne 0x10170fc7
mov al, byte [esp + 0x6c3]
and al, 0x10
cmp al, 0x10
je 0x10170fc7
xor esi, esi
jmp 0x10170fd5
push ebx
push edi
push 2
call fcn.10170b50
add esp, 0xc
mov esi, eax
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, esi
push edx
lea eax, [esp + 0x6bc]
push edi
shr ecx, 0x10
push eax
mov word [esp + 0x6d8], cx
mov word [esp + 0x6de], si
call fcn.10171470
mov ecx, dword [esp + 0x250]
add esp, 0xc
and ecx, 0x10
inc edi
cmp cl, 0x10
mov dword [esp + 0x18], edi
jne 0x101710b0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x494]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x494]
push edx
push eax
call fcn.10033da9
lea ecx, [esp + 0x49c]
push 0x102295ec
push ecx
call fcn.10033d7f
mov edx, dword [esp + 0x6fc]
mov eax, dword [esp + 0x6f4]
mov ecx, dword [esp + 0x6f0]
add esp, 0x10
push edx
push ebx
push eax
push ecx
lea edx, [esp + 0x4a4]
push esi
push edx
mov ecx, 8
sub esp, 0x20
lea esi, [esp + 0x6f0]
mov edi, esp
sub esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x6f0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10170be0
add esp, 0x50
test eax, eax
je 0x1017135c
jmp 0x1017119c
mov cl, byte [esp + 0x6b1]
mov edi, dword [esp + 0x6a0]
inc cl
mov byte [esp + 0x6b1], cl
mov cl, byte [esp + 0x6a5]
test cl, cl
je 0x1017113e
mov al, byte [edi]
mov dl, byte [esp + 0x6a4]
cmp al, dl
jae 0x1017113e
mov dl, byte [esp + 0x6b0]
test dl, dl
je 0x10171117
mov dl, byte [esp + 0x6a6]
cmp cl, dl
jb 0x10171104
add al, dl
sub cl, dl
mov byte [edi], al
mov byte [esp + 0x6a5], cl
jmp 0x10171147
mov al, byte [esp + 0x6a4]
mov byte [esp + 0x6a5], 0
mov byte [edi], al
jmp 0x10171147
mov dl, byte [esp + 0x6b1]
cmp dl, byte [esp + 0x6a6]
jb 0x10171147
inc al
dec cl
mov byte [edi], al
mov byte [esp + 0x6a5], cl
mov byte [esp + 0x6b1], 0
jmp 0x10171147
mov al, byte [esp + 0x6a4]
mov byte [edi], al
mov edi, dword [esp + 0x6e4]
mov ecx, dword [esp + 0x6d4]
push ebx
push edi
push esi
push ecx
call fcn.101714a0
mov edx, dword [esp + 0x6fc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x6e4]
add esp, 0x10
push edx
push ebx
push edi
push eax
push esi
push ecx
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0x6d0]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10171520
add esp, 0x30
test eax, eax
je 0x10171375
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
and eax, 0xffff
and ecx, 0xffff
cdq
idiv ecx
test edx, edx
jne 0x10171243
mov edx, dword [esp + 0x6a8]
cmp byte [edx], 0
jne 0x1017137f
mov eax, dword [esp + 0x6ec]
mov esi, dword [esp + 0x14]
push eax
push ebx
push esi
push ebp
call fcn.10170590
add esp, 0x10
test eax, eax
je 0x101713bd
mov esi, dword [esp + 0x6e4]
push ebx
push esi
push 2
call fcn.10170b50
mov cl, byte [ebx + 0x24]
add esp, 0xc
cmp cl, 0x20
jne 0x10171218
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi]
mov dword [ecx + eax*4], 0xfffffff
jmp 0x1017122a
mov edx, dword [esi]
mov ecx, dword [esp + 0x20]
mov word [edx + ecx*2], ax
mov edx, dword [esi]
mov word [edx + eax*2], 0xffff
lea ebp, [eax - 2]
mov ecx, dword [esp + 0x24]
imul ebp, dword [ebx + 0x10]
add ebp, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x1c]
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101712a1
mov ecx, dword [esp + 0x6a8]
cmp byte [ecx], 0
jne 0x101713f7
mov edx, dword [esp + 0x6ec]
mov edi, dword [esp + 0x14]
push edx
push ebx
push edi
push ebp
call fcn.10170590
add esp, 0x10
test eax, eax
je 0x10171431
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101712b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10170dbf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10034678
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
mov eax, dword [esp + 0x6b4]
mov byte [eax], 0x36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10171301
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.10034678
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10171331
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x6b4]
mov eax, dword [esp + 0x1c]
push eax
mov byte [edx], 0x5c
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.10034678
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1017136b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x10171411
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10171398
jmp 0x10171391
mov edx, dword [esp + 0x6b4]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [edx], 0x36
je 0x10171398
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10034678
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101713cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x6b4]
mov eax, dword [esp + 0x1c]
push eax
mov byte [edx], 0x5c
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.10034678
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
mov ecx, dword [esp + 0x6b4]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [ecx], 0x36
je 0x10171410
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
call fcn.10034678
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10171440
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x6b4]
push esi
mov byte [eax], 0x5c
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.10034678
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret