Function at 0x5587c4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x558a58
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 4]
call fcn.00409a00
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 0x164]
mov edx, 0x558a70
call fcn.0040502c
mov eax, dword [ebp - 0x164]
mov edx, 2
call fcn.004cf0dc
mov edx, dword [ebx + 0x60]
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 0x22c]
call fcn.004598d0
mov edi, eax
cmp edi, 0xffffffff
je 0x558a22
mov dword [ebp - 0xc], edi
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
call fcn.004986c4
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0xc]
call fcn.004986c4
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x16c]
mov ecx, 0x558a8c
mov edx, dword [ebp - 0x1c]
call fcn.0040502c
mov eax, dword [ebp - 0x16c]
call fcn.004051e0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x558a0a
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x134]
mov ecx, 0x104
call fcn.00404f74
push 0x558a98
push dword [ebp - 0x18]
push 0x558aac
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0xc]
call fcn.00409a00
push dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.004050a0
mov eax, dword [ebp - 0x170]
mov edx, 4
call fcn.004cf0dc
mov eax, dword [ebp - 0x18]
mov edx, 0x558ac0
call fcn.0040512c
je 0x5589dc
mov eax, dword [ebp - 0x18]
mov edx, 0x558acc
call fcn.0040512c
je 0x5589dc
test byte [ebp - 0x160], 0x10
je 0x55893e
mov byte [ebp - 5], 1
jmp 0x558942
mov byte [ebp - 5], 0
cmp byte [ebx + 0x98], 0
je 0x55896a
mov eax, dword [0x59263c]
mov eax, dword [eax]
mov edx, dword [eax + 0x158]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.004996b4
inc eax
je 0x55896a
mov dword [ebp - 0x10], edi
jmp 0x558970
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x144]
mov edx, eax
neg eax
add eax, dword [ebp - 0x140]
xor edx, edx
push edx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x178]
mov edx, ebx
mov eax, esi
call fcn.0055a784
mov eax, dword [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov al, byte [ebp - 5]
push eax
push 0
push 0
push 0
push 0
mov al, byte [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov al, byte [ebx + 0x96]
push eax
push 0
mov cl, byte [ebx + 0x64]
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x48]
call fcn.00500ab0
test eax, eax
je 0x5589dc
inc dword [ebp - 0xc]
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x558a0a
mov eax, dword [0x5924f8]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x5588b5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindClose
mov edx, 2
mov eax, 0x558ad8
call fcn.004cf0dc
mov edx, dword [ebx + 0x60]
mov eax, dword [esi + 0x48]
call fcn.005010e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x558a5f
lea eax, [ebp - 0x178]
mov edx, 6
call fcn.00404d28
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404d28
ret