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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8791
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x63fe64]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x63c844]
mov byte [ebp - 0x2a9], 1
cmp eax, dword [ecx + 4]
jg 0x4588d6
push ebx
lea ecx, [ebp - 0x28]
call fcn.00457bb0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
call fcn.0045a0c0
mov edx, dword [ebp - 0x18]
mov eax, SysReAllocString
mov ebx, dword [0x633b64]
sub eax, edx
add esp, 4
cmp eax, ebx
jb 0x45892b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
mov eax, 0x633b54
cmp dword [0x633b68], 8
cmovae eax, dword [0x633b54]
push eax
push edx
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x40]
call fcn.0041d914
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0x2b0], ebx
cmp edx, 8
jb 0x458701
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4586f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458930
push edx
push ecx
call fcn.0057b69e
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ebx, 0xffffffff
je 0x45887c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [ebp - 0x27c], 0x2e
jne 0x458752
mov ax, word [ebp - 0x27a]
test ax, ax
je 0x45884d
cmp ax, 0x2e
jne 0x458752
cmp word [ebp - 0x278], 0
je 0x45884d
test esi, esi
je 0x458763
push 0
push esi
call ebx
test eax, eax
je 0x45882a
mov eax, dword [ebp - 0x2a8]
test al, 0x10
je 0x45883a
test eax, 0x400
jne 0x45884d
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458785
sub eax, edx
mov ecx, SysReAllocString
mov edx, dword [ebp - 0x18]
sub ecx, edx
sar eax, 1
cmp ecx, eax
jb 0x45892b
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x27c]
push eax
push edx
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2b0]
lea ecx, [ebp - 0x58]
call fcn.0041d914
push esi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.004585e0
mov edx, dword [ebp - 0x44]
add esp, 0xc
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x45881d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458930
push edx
push ecx
call fcn.0057b69e
add esp, 8
test esi, esi
je 0x45884d
push 0
push esi
call ebx
test eax, eax
jne 0x45884d
push dword [ebp - 0x2b0]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45887e
mov ecx, dword [ebp - 0x28c]
xor eax, eax
or eax, dword [ebp - 0x288]
add dword [edi], eax
adc dword [edi + 4], ecx
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x458724
push dword [ebp - 0x2b0]
mov bl, byte [ebp - 0x2a9]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45887e
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4588b8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4588ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458935
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
push 0x63c844
call fcn.0057bb6b
add esp, 4
cmp dword [0x63c844], 0xffffffff
jne 0x45863e
push 3
push 0x5cb2f0
mov ecx, 0x633b54
mov dword [ebp - 4], 0
call fcn.0040491a
push 0x5c6cc0
call fcn.0057ba23
push 0x63c844
mov dword [ebp - 4], 0xffffffff
call fcn.0057bb21
add esp, 8
jmp 0x45863e
call fcn.004048ae
call fcn.00582360
call fcn.00582360
int3