Function at 0x5b8758
Capabilities:
Enumerate files on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x5b8761
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004042f8
xor eax, eax
push ebp
push 0x5b8b80
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov byte [ebx + 0x3d0], 1
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x364]
call fcn.005aa110
lea eax, [ebp - 0x2d0]
push eax
mov eax, dword [ebp - 4]
call fcn.00404308
push eax
call fcn.00407e24
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x5b8b4d
xor ecx, ecx
push ebp
push 0x5b8b46
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x2d0]
mov edx, eax
and edx, 0x10
mov ecx, dword [ebp - 8]
and ecx, 0x10
cmp edx, ecx
jne 0x5b8b17
mov ecx, dword [ebp - 8]
and ecx, 1
mov esi, eax
and esi, 1
cmp ecx, esi
jb 0x5b8b17
mov ecx, dword [ebp - 8]
and ecx, 2
mov esi, eax
and esi, 2
cmp ecx, esi
jb 0x5b8b17
mov ecx, dword [ebp - 8]
and ecx, 4
and eax, 4
cmp ecx, eax
jb 0x5b8b17
test edx, edx
jbe 0x5b8838
lea eax, [ebp - 0x24]
mov edx, 0x5b8b9c
call fcn.00403f5c
jmp 0x5b8845
lea eax, [ebp - 0x24]
mov edx, 0x5b8ba8
call fcn.00403f5c
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x2a4]
call fcn.0040aedc
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00404190
mov al, byte [ebx + 0x378]
sub al, 1
jb 0x5b8882
jne 0x5b88a8
mov eax, dword [ebp - 0x1c]
mov edx, 0x5b8bb8
call fcn.00404254
je 0x5b8b17
jmp 0x5b88a8
mov eax, dword [ebp - 0x1c]
mov edx, 0x5b8bb8
call fcn.00404254
je 0x5b8b17
mov eax, dword [ebp - 0x1c]
mov edx, 0x5b8bc4
call fcn.00404254
je 0x5b8b17
push 0x4600
push 0x160
lea eax, [ebp - 0x190]
push eax
push 0
mov eax, dword [ebp - 0x20]
call fcn.00404308
push eax
call fcn.004626c0
mov eax, dword [ebp - 0x2b4]
mov edx, eax
neg eax
add eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebx + 0x3a4]
mov edx, dword [ebx + 0x3a0]
lea eax, [ebp - 0x2bc]
call fcn.005aa20c
mov eax, dword [ebp - 0x2b8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x2bc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d4], edx
fild qword [ebp - 0x2d8]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x28]
call fcn.0040b500
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x2d0]
call fcn.005b86c8
mov eax, dword [ebx + 0x20c]
call fcn.004c8980
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov edx, 0x5b8bc4
call fcn.00404254
jne 0x5b8980
mov edx, dword [ebx + 0x3cc]
mov eax, esi
call fcn.004c8424
mov ecx, dword [ebx + 0x3b8]
xor edx, edx
mov eax, esi
call fcn.004c85f8
jmp 0x5b89ff
mov al, byte [ebx + 0x3a8]
sub al, 1
jb 0x5b89e6
jne 0x5b89f0
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp - 0x1c]
call fcn.0040aa94
mov eax, dword [ebp - 0x2dc]
call fcn.00404144
mov edi, eax
test edi, edi
jle 0x5b89da
lea eax, [ebp - 0x2e0]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404144
mov ecx, eax
sub ecx, edi
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0040434c
mov edx, dword [ebp - 0x2e0]
mov eax, esi
call fcn.004c8424
jmp 0x5b89f0
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004c8424
jmp 0x5b89f0
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004c8424
mov ecx, dword [ebp - 0x18c]
xor edx, edx
mov eax, esi
call fcn.004c85f8
mov al, byte [ebx + 0x371]
test al, al
jne 0x5b8a2d
mov eax, dword [ebp - 0x2c]
cdq
push edx
push eax
lea edx, [ebp - 0x2e4]
mov eax, dword [ebp - 0x24]
call fcn.005aa538
mov edx, dword [ebp - 0x2e4]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x5b8a7a
cmp al, 1
jne 0x5b8a7a
mov eax, dword [ebp - 0x24]
mov edx, 0x5b8b9c
call fcn.00404254
jne 0x5b8a4f
mov eax, dword [esi + 8]
mov edx, 0x5b8bd0
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x5b8a7a
mov eax, dword [ebp - 0x24]
mov edx, 0x5b8ba8
call fcn.00404254
jne 0x5b8a7a
lea edx, [ebp - 0x2e8]
mov eax, dword [ebp - 0x2c]
call fcn.0040a418
mov edx, dword [ebp - 0x2e8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
mov edx, 0x5b8bc4
call fcn.00404254
jne 0x5b8ab2
mov eax, dword [esi + 8]
mov edx, 0x5b8bd0
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, 0x5b8bd0
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, 0x5b8bd0
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x5b8ae9
lea eax, [ebp - 0x2ec]
lea edx, [ebp - 0x80]
mov ecx, 0x50
call fcn.004040f4
mov edx, dword [ebp - 0x2ec]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x2c]
add dword [ebx + 0x368], eax
mov byte [ebp - 9], 1
lea eax, [ebp - 0x2d0]
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.00407e2c
test eax, eax
jne 0x5b87d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8b4d
mov eax, dword [ebp - 0x30]
push eax
call fcn.00407e1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8b87
lea eax, [ebp - 0x2ec]
mov edx, 5
call fcn.00403ee8
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00403ee8
lea eax, [ebp - 4]
call fcn.00403ec4
ret