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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x558], eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
mov dword [ebp - 0x520], edx
mov edx, dword [ebp + 0x1c]
push esi
lea eax, [ebp - 0x528]
xor ebx, ebx
push eax
mov dword [ebp - 0x554], ecx
mov dword [ebp - 0x550], edx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x524], ebx
call fcn.10078a3b
cmp eax, ebx
jne 0x10079c9d
push edi
push dword [ebp - 0x528]
call fcn.100790b8
cmp dword [ebp - 0x520], ebx
je 0x1007980c
push dword [ebp - 0x550]
push ebx
push esi
call dword [ebp - 0x520]
cmp eax, ebx
jne 0x10079c9d
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100620c0
push dword [ebp - 0x558]
lea eax, [ebp - 0x20c]
push 0x1000e578
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x250
lea eax, [ebp - 0x508]
push ebx
push eax
call fcn.100620c0
add esp, 0x24
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x50c], eax
cmp eax, 0xffffffff
jne 0x10079875
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10079c9d
mov esi, dword [ebp - 0x508]
and esi, 0x10
je 0x100798aa
cmp word [ebp - 0x4dc], 0x2e
jne 0x100798aa
lea eax, [ebp - 0x4dc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10079893
sub eax, edx
sar eax, 1
cmp eax, 1
je 0x10079c4e
cmp esi, ebx
je 0x100798e2
cmp word [ebp - 0x4dc], 0x2e
jne 0x100798e2
cmp word [ebp - 0x4da], 0x2e
jne 0x100798e2
lea eax, [ebp - 0x4dc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100798cb
sub eax, edx
sar eax, 1
cmp eax, 2
je 0x10079c4e
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100620c0
lea eax, [ebp - 0x4dc]
push eax
push dword [ebp - 0x558]
lea eax, [ebp - 0x20c]
push 0x1000e568
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xac
lea eax, [ebp - 0x2b8]
push ebx
push eax
call fcn.100620c0
add esp, 0x28
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov esi, eax
cmp esi, 0xffffffff
je 0x10079cae
xor eax, eax
lea edi, [ebp - 0x51c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10079cae
mov ax, word [ebp - 0x51c]
mov word [ebp - 0x534], ax
mov al, byte [ebp - 0x51a]
mov byte [ebp - 0x532], al
mov al, byte [ebp - 0x516]
mov byte [ebp - 0x531], al
mov al, byte [ebp - 0x514]
mov byte [ebp - 0x530], al
mov al, byte [ebp - 0x512]
mov byte [ebp - 0x52f], al
mov al, byte [ebp - 0x510]
mov byte [ebp - 0x52e], al
mov al, byte [ebp - 0x50e]
mov byte [ebp - 0x52d], al
mov eax, 0x1000
mov ecx, eax
cmp word [0x1009b46c], cx
je 0x100799f5
cmp esi, 1
jne 0x100799db
mov eax, dword [ebp - 0x264]
jmp 0x100799eb
mov eax, esi
dec eax
dec eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x2b8]
add eax, ecx
neg eax
mov word [ebp - 0x52c], ax
xor eax, eax
lea edi, [ebp - 0x51c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x4fc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10079cae
mov ax, word [ebp - 0x51c]
mov word [ebp - 0x540], ax
mov al, byte [ebp - 0x51a]
mov byte [ebp - 0x53e], al
mov al, byte [ebp - 0x516]
mov byte [ebp - 0x53d], al
mov al, byte [ebp - 0x514]
mov byte [ebp - 0x53c], al
mov al, byte [ebp - 0x512]
mov byte [ebp - 0x53b], al
mov al, byte [ebp - 0x510]
mov byte [ebp - 0x53a], al
mov al, byte [ebp - 0x50e]
mov byte [ebp - 0x539], al
mov eax, 0x1000
mov ecx, eax
cmp word [0x1009b46c], cx
je 0x10079ab1
cmp esi, 1
jne 0x10079a97
mov eax, dword [ebp - 0x264]
jmp 0x10079aa7
mov eax, esi
dec eax
dec eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x2b8]
add eax, ecx
neg eax
mov word [ebp - 0x538], ax
xor eax, eax
lea edi, [ebp - 0x51c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x4f4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10079cae
mov ax, word [ebp - 0x51c]
mov word [ebp - 0x54c], ax
mov al, byte [ebp - 0x51a]
mov byte [ebp - 0x54a], al
mov al, byte [ebp - 0x516]
mov byte [ebp - 0x549], al
mov al, byte [ebp - 0x514]
mov byte [ebp - 0x548], al
mov al, byte [ebp - 0x512]
mov byte [ebp - 0x547], al
mov al, byte [ebp - 0x510]
mov byte [ebp - 0x546], al
mov al, byte [ebp - 0x50e]
mov byte [ebp - 0x545], al
mov eax, 0x1000
mov ecx, eax
cmp word [0x1009b46c], cx
jne 0x10079b4f
mov word [ebp - 0x544], ax
jmp 0x10079b7b
cmp esi, 1
jne 0x10079b5c
mov esi, dword [ebp - 0x264]
jmp 0x10079b6a
dec esi
dec esi
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x2b8]
add esi, eax
neg esi
mov word [ebp - 0x544], si
test byte [ebp - 0x508], 0x10
je 0x10079bbb
lea eax, [ebp - 0x534]
push eax
push dword [ebp - 0x550]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x520]
push dword [ebp - 0x528]
push dword [ebp - 0x554]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.10079778
jmp 0x10079c48
push dword [ebp - 0x528]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x554]
push eax
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.10078bbd
mov esi, eax
cmp esi, ebx
jne 0x10079cb6
push ebx
lea eax, [ebp - 0x534]
push eax
push dword [ebp - 0x524]
call fcn.100790f2
push 1
lea eax, [ebp - 0x540]
push eax
push dword [ebp - 0x524]
call fcn.100790f2
push 2
lea eax, [ebp - 0x54c]
push eax
push dword [ebp - 0x524]
call fcn.100790f2
cmp dword [ebp - 0x520], ebx
je 0x10079c4e
push dword [ebp - 0x550]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x4dc]
push eax
call dword [ebp - 0x520]
mov esi, eax
cmp esi, ebx
jne 0x10079cb6
push 0x250
lea eax, [ebp - 0x508]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10079875
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x50c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
sub eax, 0x12
neg eax
sbb eax, eax
and eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10062074
leave
ret 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x10079c9d