Function at 0x5fde00
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643040
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x160], edi
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x164], eax
mov byte [ebp - 0x155], bl
test bl, bl
jne 0x5fe1b1
mov eax, dword [eax]
cmp eax, dword [edi + 4]
jae 0x5fe1b1
mov esi, dword [edi + 0x2c]
lea ecx, [eax + eax*2]
mov eax, dword [edi]
lea edx, [eax + ecx*4]
mov eax, dword [edx + 4]
shl eax, 6
add esi, eax
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x16c], esi
cmp byte [esi + 0x18], bl
jne 0x5fe003
mov eax, dword [edx]
mov dword [ebp - 4], 0
cmp byte [edi + 0x20], bl
je 0x5fdf67
add eax, 0xfffffffe
cmp eax, 6
ja case.0x5fdf78.2
jmp dword [eax*4 + 0x5fe1d4]
push esi
call fcn.005fe6c0
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x5fde50
cmp byte [esi + 0x19], 0
lea eax, [esi + 0x19]
mov bl, 1
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x155], bl
jne case.0x5fdf78.2
cmp dword [esi + 0x1c], 0xffffffff
lea eax, [esi + 0x1c]
mov dword [ebp - 0x15c], eax
jne case.0x5fdf78.2
cmp dword [esi + 0x14], 0x10
jb 0x5fdf00
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x15c]
cmp ecx, 0xffffffff
mov dword [eax], ecx
sete al
mov ecx, dword [ebp - 0x168]
mov byte [ecx], al
mov eax, dword [ebp - 0x164]
inc dword [eax]
jmp 0x5fde50
mov bl, 1
mov byte [ebp - 0x155], bl
push esi
call fcn.005fe220
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x5fde50
mov bl, 1
mov byte [ebp - 0x155], bl
cmp eax, 8
ja case.0x5fdf78.2
jmp dword [eax*4 + 0x5fe1f0]
cmp dword [esi + 0x14], 0x10
jb 0x5fdf87
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x5fde50
mov edi, dword [edx + 8]
test edi, edi
je 0x5fdff6
cmp dword [esi + 0x14], 0x10
jb 0x5fdfb1
mov esi, dword [esi]
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x15c], eax
cmp eax, 0xffffffff
je 0x5fdff6
mov esi, 1
nop
cmp esi, edi
jae 0x5fdfef
lea ecx, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov eax, dword [ebp - 0x15c]
je 0x5fdfef
inc esi
jmp 0x5fdfd0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x160]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x164]
inc dword [eax]
jmp 0x5fde50
cmp byte [esi + 0x19], 0
lea eax, [esi + 0x19]
mov dword [ebp - 0x15c], eax
jne case.0x5fdf78.2
cmp dword [esi + 0x1c], 0xffffffff
lea eax, [esi + 0x1c]
mov dword [ebp - 0x168], eax
jne case.0x5fdf78.2
cmp dword [esi + 0x14], 0x10
jb 0x5fe036
mov esi, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x168]
cmp ecx, 0xffffffff
mov dword [eax], ecx
sete al
mov ecx, dword [ebp - 0x15c]
mov byte [ecx], al
mov eax, dword [ebp - 0x164]
inc dword [eax]
jmp 0x5fde50
push 1
lea eax, [esi + 0x20]
push eax
push esi
call fcn.005fe570
add esp, 0xc
test al, al
je case.0x5fdf78.2
push dword [esi + 0x2c]
push dword [esi + 0x28]
mov ecx, dword [ebp - 0x15c]
mov eax, dword [edi + 0x10]
mov ecx, dword [ecx + 8]
lea eax, [eax + ecx*8]
push eax
call fcn.005fdd40
mov eax, dword [ebp - 0x164]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x5fde50
push 0
lea eax, [esi + 0x30]
push eax
push esi
call fcn.005fe570
add esp, 0xc
test al, al
je case.0x5fdf78.2
push dword [esi + 0x3c]
push dword [esi + 0x38]
jmp 0x5fe095
cmp byte [esi + 0x19], 0
jne 0x5fe11e
cmp dword [esi + 0x1c], 0xffffffff
jne 0x5fe11e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x5fe0f6
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x15c]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
sete al
mov byte [esi + 0x19], al
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xffffffff
je case.0x5fdf78.2
mov esi, dword [edi + 0x24]
test esi, esi
je case.0x5fdf78.2
push dword [edi + 0x28]
mov eax, dword [edx + 8]
shl eax, 4
add eax, dword [edi + 0x18]
push esi
push eax
push ecx
call fcn.005fdc40
mov eax, dword [ebp - 0x164]
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x5fde50
mov ecx, esi
call fcn.005fd5c0
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], 0xffffffff
inc dword [eax]
jmp 0x5fde50
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 - 0x14]
xor ecx, ebp
call fcn.005ce525
mov esp, ebp
pop ebp
ret 4