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

Disassembly:
push 0x2f0
mov eax, 0x101752dd
call fcn.1006e789
mov dword [ebp - 0x2f8], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], esi
test eax, eax
jne 0x10045853
xor eax, eax
jmp 0x100459bc
test esi, esi
je 0x1004584c
push eax
lea ecx, [ebp - 0x70]
xor ebx, ebx
call fcn.100255d0
and dword [ebp - 4], ebx
mov edi, 0x10177e6c
push edi
call fcn.1005b6b8
pop ecx
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.10027360
and dword [ebp - 0x30], ebx
xor eax, eax
push 7
pop edi
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x40], ax
inc eax
lea ecx, [ebp - 0x58]
push esi
mov byte [ebp - 4], al
call fcn.100255d0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.1003a553
xor eax, eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x14], edi
mov edi, 0x1017a83c
push edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.1005b6b8
pop ecx
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.10025730
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100255d0
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1003a33b
add esp, 0xc
lea ecx, [ebp - 0x88]
push ebx
push 1
call fcn.10025670
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10025670
mov eax, dword [ebp - 0x2e4]
sub eax, dword [ebp - 0x2e8]
push 0x18
cdq
pop ecx
idiv ecx
xor edi, edi
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x2d8]
cmovae ecx, dword [ebp - 0x70]
push eax
push ecx
mov dword [ebp - 0x2ec], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
jne 0x100459ca
xor esi, esi
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jle 0x1004598e
cmp edi, dword [ebp - 0x2fc]
cmovge ebx, esi
lea ecx, [ebp - 0x2e8]
call fcn.1003a7a5
push 0
push esi
lea ecx, [ebp - 0x58]
call fcn.10025670
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.10025670
push 0
push esi
lea ecx, [ebp - 0x70]
call fcn.10025670
mov eax, ebx
call fcn.1006e744
ret 8
mov esi, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x2d8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x2dc]
je 0x10045977
push 0x2e
pop ecx
cmp word [ebp - 0x2ac], cx
je 0x100459ca
cmp word [ebp - 0x2aa], 0
je 0x100459ca
cmp word [ebp - 0x2aa], cx
jne 0x10045a0b
cmp word [ebp - 0x2a8], 0
je 0x100459ca
cmp word [ebp - 0x2ac], 0
jne 0x10045a19
xor eax, eax
jmp 0x10045a26
lea eax, [ebp - 0x2ac]
push eax
call fcn.1005b6b8
pop ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.10025730
test byte [ebp - 0x2d8], 0x10
je 0x10045aaf
push dword [ebp - 0x2f4]
lea ecx, [ebp - 0x28]
call fcn.100255d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.10027490
push 0x101ce09c
call fcn.1005b6b8
pop ecx
push eax
push 0x101ce09c
lea ecx, [ebp - 0x28]
call fcn.10027360
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x2f8]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call fcn.10045821
lea ecx, [ebp - 0x28]
push 0
test eax, eax
jne 0x10045b3b
push 1
mov byte [ebp - 4], 3
call fcn.10025670
jmp 0x10045b30
lea eax, [ebp - 0x40]
push eax
call fcn.1003a553
mov esi, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2dc]
pop ecx
cmp esi, dword [ebp - 0x2e4]
je 0x100459c4
cmp dword [esi + 0x14], 8
jb 0x10045adb
mov eax, dword [esi]
jmp 0x10045add
mov eax, esi
push eax
lea ecx, [ebp - 0x88]
call fcn.100255d0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
call fcn.100390ac
push 0
push 1
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.10025670
mov eax, dword [ebp - 0x2ec]
add esi, 0x18
test edi, edi
lea ecx, [eax + 1]
cmovne ecx, eax
mov edi, ecx
mov dword [ebp - 0x2ec], edi
cmp esi, dword [ebp - 0x2e4]
jne 0x10045ad1
mov esi, dword [ebp - 0x2f0]
mov eax, dword [ebp - 0x2dc]
jmp 0x100459ca
xor esi, esi
inc esi
push esi
mov ebx, esi
call fcn.10025670
mov eax, dword [ebp - 0x2dc]
jmp 0x1004597a