Function at 0x5117fa
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2a0
mov eax, 0x792472
call fcn.00700ca1
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov esi, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x10], ebx
jne 0x5118c8
push str.fs__enum_folder__invalid_path
push 0x806a84
call fcn.0050496b
pop ecx
pop ecx
lea eax, [ebp - 0x2a8]
mov ecx, edi
push eax
call fcn.004fa4c8
mov esi, dword [ebp - 0x2a8]
test esi, esi
je 0x511ab1
push 0x18
mov edi, esi
pop ebx
jmp 0x51187d
mov ecx, edi
call fcn.004c0931
add edi, ebx
cmp edi, dword [ebp - 0x2a4]
jne 0x511874
mov eax, dword [ebp - 0x2a0]
sub eax, esi
mov dword [ebp - 0x294], esi
cdq
idiv ebx
imul eax, eax, 0x18
mov dword [ebp - 0x298], eax
cmp eax, 0x1000
jb 0x511aa2
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x298]
jmp 0x511a9a
push 0x5c
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005126ee
push 0x250
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00719250
add esp, 0x1c
lea ecx, [ebp - 0x290]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x298], eax
push 0x18
pop ebx
cmp eax, 0xffffffff
je 0x511a16
mov edi, dword [ebp - 0x2a8]
test byte [ebp - 0x290], 0x10
jne 0x5119ea
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x264]
push eax
call fcn.004c097f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
cmp esi, dword [ebp - 0x2a0]
je 0x51196d
mov ecx, esi
call fcn.004c2b5d
add esi, ebx
mov dword [ebp - 0x2a4], esi
jmp 0x511985
push esi
lea ecx, [ebp - 0x2a8]
call fcn.004f9e43
mov esi, dword [ebp - 0x2a4]
mov edi, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x5119d8
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x29c], ecx
cmp eax, 0x1000
jb 0x5119cf
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x294]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x29c]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov eax, esi
sub eax, edi
cdq
idiv ebx
cmp eax, dword [ebp + 0x14]
jae 0x511a06
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x298]
jne 0x51191f
mov eax, dword [ebp - 0x298]
mov edi, dword [ebp - 0x2ac]
test eax, eax
je 0x511a1d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push dword [ebp - 0x2a8]
call fcn.005080b5
pop ecx
pop ecx
lea eax, [ebp - 0x2a8]
mov ecx, edi
push eax
call fcn.004fa4c8
lea ecx, [ebp - 0x40]
call fcn.004c0931
mov esi, dword [ebp - 0x2a8]
test esi, esi
je 0x511ab1
mov edi, esi
jmp 0x511a58
mov ecx, edi
call fcn.004c0931
add edi, ebx
cmp edi, dword [ebp - 0x2a4]
jne 0x511a4f
mov eax, dword [ebp - 0x2a0]
sub eax, esi
mov dword [ebp - 0x294], esi
cdq
idiv ebx
imul eax, eax, 0x18
mov dword [ebp - 0x29c], eax
cmp eax, 0x1000
jb 0x511aa2
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x294]
pop ecx
pop ecx
push eax
push esi
call fcn.007009b8
mov edi, dword [ebp - 0x2ac]
pop ecx
pop ecx
mov eax, edi
call fcn.00700c4b
ret