Function at 0x584880
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd78
push ebx
xor ebx, ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.00405ca0
xor eax, eax
push ebp
push 0x584b6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x585764]
call fcn.00585b38
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 4]
call fcn.00472640
mov edx, dword [ebp - 0x280]
mov ecx, dword [0x591f98]
mov ecx, dword [ecx]
lea eax, [ebp - 8]
call fcn.004059f4
test bl, bl
jne 0x584920
mov eax, dword [ebp - 8]
call fcn.00472b9c
test al, al
je 0x584920
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x584b44
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov eax, dword [ebp - 4]
call fcn.00472b88
test al, al
je 0x584b44
xor eax, eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00472640
mov dl, 1
mov eax, dword [0x470340]
call fcn.00403fdc
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x584b3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x584b16
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x18]
mov ecx, 0x584b84
mov edx, dword [ebp - 0x10]
call fcn.004059f4
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00405978
push eax
call sub.KERNEL32.DLL_FindFirstFileW
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x584b0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x28], 0xffffffff
jne 0x5849d2
call fcn.00404a30
jmp 0x584b16
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x250]
mov ecx, 0x104
call fcn.0040594c
mov eax, dword [ebp - 0x14]
mov edx, 0x584b90
call fcn.00405aac
je 0x584add
mov eax, dword [ebp - 0x14]
mov edx, 0x584b98
call fcn.00405aac
je 0x584add
cmp dword [ebp - 0x2c], 0
jne 0x584a29
mov edx, dword [0x591f98]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0040a51c
test eax, eax
je 0x584add
cmp dword [ebp - 0x2c], 0
jne 0x584a47
mov edx, dword [0x59155c]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0040a51c
test eax, eax
je 0x584add
cmp dword [ebp - 0x2c], 0
jne 0x584a61
mov edx, dword [0x591cf4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.0040a51c
test eax, eax
je 0x584add
mov eax, dword [ebp - 0x27c]
and eax, 0x10
cmp eax, 0x10
jne 0x584a98
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x584ba4
lea eax, [ebp - 0x284]
mov edx, 3
call fcn.00405a64
mov edx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x288]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.004059f4
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00472920
lea eax, [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x5856cc]
call fcn.00585908
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea eax, [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_FindNextFileW
test eax, eax
jne 0x5849d2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584b13
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_FindClose
ret
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x2c]
jg 0x58497e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584b44
lea eax, [ebp - 0x24]
call fcn.00410eb0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584b76
lea eax, [ebp - 0x288]
mov edx, 3
call fcn.004057a8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004057a8
ret