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

Disassembly:
mov eax, 0x44b974
call fcn.0044a418
sub esp, 0x2b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, cl
lea ecx, [ebp - 0x4c]
call fcn.004021c9
or dword [ebp - 0x18], 0xffffffff
test bl, bl
je 0x405508
mov edx, 0x45862c
lea ecx, [ebp + 0x20]
call fcn.004064bb
test al, al
je 0x405508
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.00405db5
lea ecx, [ebp - 0x34]
call fcn.00413109
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00405ceb
lea ecx, [ebp - 0x34]
call fcn.004034ff
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.00405db5
lea ecx, [ebp - 0x34]
call fcn.00413145
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00405cd9
lea ecx, [ebp - 0x34]
call fcn.004034ff
push 0x4586b8
lea ecx, [ebp + 8]
call fcn.00405cd0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2b4]
push eax
push 0x458698
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00406375
pop ecx
mov ecx, eax
call fcn.00404459
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x34]
call fcn.004034ff
cmp esi, 0xffffffff
jne 0x405590
mov dword [ebp - 0x1c], 2
push 0x460d78
lea eax, [ebp - 0x1c]
push eax
call fcn.0042e1e4
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4056f3
cmp byte [0x464a71], 0
jne 0x405735
test byte [ebp - 0x2b4], 0x10
je 0x40569d
mov ecx, 0x4585d4
lea eax, [ebp - 0x288]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4055f1
test dx, dx
je 0x4055ed
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4055f1
add eax, 4
add ecx, 4
test dx, dx
jne 0x4055cb
xor eax, eax
jmp 0x4055f6
sbb eax, eax
or eax, 1
test eax, eax
je 0x405590
mov ecx, 0x4586bc
lea eax, [ebp - 0x288]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40562b
test dx, dx
je 0x405627
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40562b
add eax, 4
add ecx, 4
test dx, dx
jne 0x405605
xor eax, eax
jmp 0x405630
sbb eax, eax
or eax, 1
test eax, eax
je 0x405590
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.00403509
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00406454
pop ecx
lea ecx, [ebp - 0x64]
call fcn.004034ff
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.004021e0
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.00405db5
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0x34]
push eax
call fcn.00405db5
mov cl, bl
call fcn.004054a5
add esp, 0x48
lea ecx, [ebp - 0x34]
call fcn.004034ff
jmp 0x405590
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.004021e0
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.00405db5
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403509
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.00406454
sub esp, 0x14
mov ecx, esp
push eax
call fcn.00405d5e
mov cl, bl
call fcn.00405768
add esp, 0x48
lea ecx, [ebp - 0x64]
call fcn.004034ff
jmp 0x405690
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.00402091
lea ecx, [ebp + 8]
call fcn.004034ff
lea ecx, [ebp + 0x20]
call fcn.004034ff
lea ecx, [ebp + 0x38]
call fcn.00402091
mov al, 1
jmp 0x405757
lea ecx, [ebp - 0x4c]
call fcn.00402091
lea ecx, [ebp + 8]
call fcn.004034ff
lea ecx, [ebp + 0x20]
call fcn.004034ff
lea ecx, [ebp + 0x38]
call fcn.00402091
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret