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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x354
mov eax, dword [0x5b4e20]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x2da8], 1
mov esi, dword [ebp + 8]
push edi
jne 0x408629
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.005308a3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx + 0x2dc0]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x408640
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408640
sub ecx, edx
cmp byte [ecx + esi - 1], 0x5c
jne 0x408662
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408655
sub ecx, edx
mov byte [ecx + esi - 1], al
push esi
lea eax, [esp + 0x154]
push 0x208
push eax
call fcn.0053170f
mov eax, dword [ebx + 0x30e4]
add esp, 0xc
cmp eax, dword [ebx + 0x620]
ja 0x408705
push 8
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4086c6
push 0x10
push 0x58def0
push str.Failed_to_allocate_memory_for_scan_parameter.__n_nThis_should_never_happen_unless_your_system_is_very_low_on_resources.
mov ecx, ebx
call fcn.00415b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.005308a3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebx + 0x30e4]
push eax
mov dword [edi], ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0x10000
push 0
push edi
push 0x408560
call fcn.0042035f
test eax, eax
jne 0x40871a
lea eax, [ebx + 0x30e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, ebx
call fcn.004083f0
cmp dword [ebx + 0x2da8], 1
je 0x408612
push 0x58ff08
lea eax, [esp + 0x154]
push 0x208
push eax
call fcn.00530cad
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x408612
lea ecx, [esp + 0x150]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408760
sub ecx, edx
dec ecx
cmp ecx, 0x208
jae 0x40898a
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esp + ecx + 0x150], al
cmp dword [ebx + 0x2da8], 1
je 0x408969
test byte [esp + 0x10], 0x10
je 0x40890e
mov ecx, 0x58ff88
lea eax, [esp + 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4087c4
test dl, dl
je 0x4087c0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4087c4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4087a4
xor eax, eax
jmp 0x4087c9
sbb eax, eax
or eax, 1
test eax, eax
je 0x40890e
mov ecx, 0x58ff8c
lea eax, [esp + 0x3c]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408800
test dl, dl
je 0x4087fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408800
add eax, 2
add ecx, 2
test dl, dl
jne 0x4087e0
xor eax, eax
jmp 0x408805
sbb eax, eax
or eax, 1
test eax, eax
je 0x40890e
push 0x208
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x408950
lea eax, [esp + 0x150]
push eax
push 0x208
push esi
call fcn.0053170f
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 0x208
push esi
call fcn.00530cad
mov eax, dword [esp + 0x1c]
add esp, 0xc
test al, 2
je 0x40888d
cmp dword [ebx + 0x1820], 0
je 0x40886d
test eax, 0x400
je 0x40886d
push esi
call edi
jmp 0x40890e
push 1
push esi
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.00408140
cmp dword [ebx + 0x1814], 0
jne 0x40888d
push esi
call edi
jmp 0x40890e
cmp dword [ebx + 0x1810], 0
jne 0x40889b
push esi
call edi
jmp 0x40890e
mov eax, dword [ebx + 0x30e4]
cmp eax, dword [ebx + 0x620]
ja 0x408946
push 8
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x408696
lea eax, [ebx + 0x30e4]
push eax
mov dword [edi], ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0x10000
push 0
push edi
push 0x4085a0
call fcn.0042035f
test eax, eax
jne 0x408908
lea eax, [ebx + 0x30e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ecx, ebx
call fcn.004085e0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408783
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.005308a3
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, ebx
call fcn.004085e0
jmp 0x40890e
push 0x10
push 0x58def0
push str.Failed_to_allocate_memory_for_scan_file_path.__n_nThis_should_never_happen_unless_your_system_is_very_low_on_resources.
mov ecx, ebx
call fcn.00415b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x35c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005308a3
mov esp, ebp
pop ebp
ret 4
call fcn.005319b5
int3