Function at 0x584790
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad034
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0xb8], 0
je 0x5847d3
mov eax, 0xfe000009
jmp 0x584a36
cmp dword [ebx + 0x15c], 1
jae 0x5847e6
mov eax, 0xfe000002
jmp 0x584a36
xor esi, esi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2c4], esi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], esi
lea eax, [ebx + 4]
mov dword [ebp - 0x2d4], ecx
mov edx, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.004adce0
push 0x5f9bdc
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0045ac80
push 0x5fa288
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0045ac80
add esp, 0xc
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x584858
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x58488b
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x70]
call fcn.00446620
add esp, 8
push 0
push 0
xor eax, eax
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c0]
push 0
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push 0
push eax
mov dword [ebp - 0x5c], 7
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5849d2
lea eax, [ebp - 0x294]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.005845a0
xor esi, esi
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x58490b
lea eax, [ebp - 0x294]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.005845a0
jmp 0x584913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x5848e2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2c8]
mov esi, dword [ebp - 0x2cc]
sub eax, esi
mov edx, dword [ebp - 0x2c8]
mov ecx, esi
sar eax, 3
imul edi, eax, 0xaaaaaaab
mov byte [ebp - 0x2d0], 0
push dword [ebp - 0x2d0]
push edi
call fcn.004b0350
mov eax, dword [ebx + 0x15c]
add esp, 8
test eax, eax
je 0x5849d2
sub edi, eax
add edi, 1
js 0x5849d2
test edi, edi
jle 0x5849d2
mov ebx, dword [ebp - 0x2d4]
nop
push ebx
lea ecx, [ebp - 0x40]
call fcn.0044a700
mov byte [ebp - 4], 6
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x584987
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00447e80
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x5849c4
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
add esi, 0x18
sub edi, 1
jne 0x584970
mov esi, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5849ed
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x584a34
mov edx, dword [ebp - 0x2c8]
push ecx
mov ecx, esi
call fcn.0044dc80
mov eax, dword [ebp - 0x2c4]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
lea eax, [eax + eax*2]
shl eax, 3
push eax
push esi
call fcn.00446620
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret