Function at 0x589ce0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x5e92f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5fc7d0]
xor eax, esp
push eax
lea eax, [esp + 0x1bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1cc]
mov edi, dword [esp + 0x1d0]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x1c4], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
push 0x530358
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c8], 1
push ebp
push eax
call fcn.00586aa0
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x60]
cmp eax, esi
je 0x589db5
cmp dword [esp + 0x74], 0x10
jb 0x589d96
push dword [esp + 0x60]
call fcn.005c40d3
add esp, 4
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.00546560
cmp dword [esp + 0x2c], 0x10
jb 0x589dc8
push dword [esp + 0x18]
call fcn.005c40d3
add esp, 4
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x78]
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x589fd9
mov ebx, dword [esp + 0x1d4]
mov esi, eax
lea ebx, [ebx]
cmp byte [esp + 0xa4], 0x2e
je 0x589f97
test edi, edi
je 0x589e4d
test ebx, ebx
jne 0x589e4d
lea eax, [esp + 0xa4]
mov ecx, edi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x589e40
test dl, dl
je 0x589e3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x589e40
add ecx, 2
add eax, 2
test dl, dl
jne 0x589e20
xor eax, eax
jmp 0x589e45
sbb eax, eax
or eax, 1
test eax, eax
je 0x589f97
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
mov dword [esp + 0x58], 0
cmovae eax, dword [esp + 0x48]
push 0x52fa54
push ebp
mov byte [eax], 0
lea eax, [esp + 0x38]
push eax
call fcn.00586aa0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1d0], 2
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00586a00
mov esi, eax
add esp, 0x18
lea eax, [esp + 0x48]
cmp eax, esi
je 0x589f0e
cmp dword [esp + 0x5c], 0x10
jb 0x589eb1
push dword [esp + 0x48]
call fcn.005c40d3
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
cmp dword [esi + 0x14], 0x10
jae 0x589ee3
mov eax, dword [esi + 0x10]
inc eax
je 0x589eef
push eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.005c4250
add esp, 0xc
jmp 0x589eef
mov eax, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x5c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x2c], 0x10
jb 0x589f21
push dword [esp + 0x18]
call fcn.005c40d3
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x1c4], 1
jb 0x589f51
push dword [esp + 0x30]
call fcn.005c40d3
add esp, 4
test byte [esp + 0x78], 0x10
je 0x589f7c
lea eax, [ebx + 1]
push eax
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00589ce0
add esp, 0xc
test al, al
jne 0x589f93
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x589fdb
cmp dword [esp + 0x5c], 0x10
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
call fcn.0058c890
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x589e00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x589fd5
test ebx, ebx
je 0x589fd9
cmp dword [ebp + 0x14], 0x10
jb 0x589fca
mov ebp, dword [ebp]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x589fd9
xor bl, bl
jmp 0x589fdb
mov bl, 1
cmp dword [esp + 0x74], 0x10
jb 0x589fee
push dword [esp + 0x60]
call fcn.005c40d3
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x58a016
push dword [esp + 0x48]
call fcn.005c40d3
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.005c4b26
add esp, 0x1b4
ret