Function at 0x585fb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
lea edi, [ebp - 0x43c]
mov ecx, 0x10f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x818f7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.00533469
add esp, 0xc
mov dword [ebp - 0x260], 0
push 0x13c
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.00533469
add esp, 0xc
mov dword [ebp - 0x26c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00532325
add esp, 4
test eax, eax
je 0x58603e
or eax, 0xffffffff
jmp 0x58622c
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00535647
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call fcn.00533b5d
add esp, 4
lea eax, [ebp - 0x118]
push eax
call fcn.005339be
add esp, 4
push 0x22
lea eax, [ebp - 0x118]
push eax
call fcn.00534698
add esp, 8
lea eax, [ebp - 0x118]
push eax
call fcn.00533603
add esp, 4
movsx ecx, byte [ebp + eax - 0x119]
cmp ecx, 0x2a
je 0x5860ef
lea eax, [ebp - 0x118]
push eax
call fcn.00533603
add esp, 4
movsx ecx, byte [ebp + eax - 0x119]
cmp ecx, 0x5c
je 0x5860d6
push 0x104
push 0x7a5198
lea eax, [ebp - 0x118]
push eax
call fcn.005348b9
add esp, 0xc
push 0x104
push 0x79e14c
lea eax, [ebp - 0x118]
push eax
call fcn.005348b9
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x58611d
or eax, 0xffffffff
jmp 0x58622c
lea eax, [ebp - 0x234]
push eax
call fcn.00532325
add esp, 4
test eax, eax
je 0x586135
jmp 0x5861ea
movsx eax, byte [ebp - 0x234]
cmp eax, 0x2e
jne 0x586146
jmp 0x5861ea
cmp dword [ebp + 0xc], 0
je 0x58615c
mov eax, dword [ebp - 0x260]
and eax, 2
je 0x58615c
jmp 0x5861ea
mov eax, dword [ebp - 0x260]
and eax, 0x10
je 0x5861db
cmp dword [ebp + 0x10], 0
je 0x5861d9
mov byte [ebp - 0x378], 0
push 0x103
push 0
lea eax, [ebp - 0x377]
push eax
call fcn.00533469
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x378]
push ecx
call fcn.00533662
add esp, 8
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x378]
push ecx
call fcn.005358a4
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x378]
push edx
call fcn.00532e56
add esp, 0xc
add eax, dword [ebp - 0x26c]
mov dword [ebp - 0x26c], eax
jmp 0x5861ea
mov eax, dword [ebp - 0x26c]
add eax, 1
mov dword [ebp - 0x26c], eax
mov esi, esp
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call fcn.00535fca
test eax, eax
jne 0x58611d
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call fcn.00535fca
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x26c]
push edx
mov ecx, ebp
push eax
lea edx, [0x58625c]
call fcn.0053491d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535561
add esp, 0x43c
cmp ebp, esp
call fcn.00535fca
mov esp, ebp
pop ebp
ret