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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c137
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x100962c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
push str..
push eax
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 1
push eax
call fcn.1000f890
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x10005975
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1000595a
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10003190
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.1000d5a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x190]
cmp eax, 0x10
jb 0x10005997
inc eax
lea ecx, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
call fcn.10003190
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x184]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0x188], ebx
cmp ebx, 0xffffffff
je 0x10005b85
mov ebx, dword [ebp + 8]
mov esi, eax
nop word [eax + eax]
cmp byte [ebp - 0x158], 0x2e
je 0x10005b3c
test edi, edi
je 0x10005a1d
test ebx, ebx
jne 0x10005a1d
lea eax, [ebp - 0x158]
mov ecx, edi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10005a10
test dl, dl
je 0x10005a0c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10005a10
add ecx, 2
add eax, 2
test dl, dl
jne 0x100059f0
xor eax, eax
jmp 0x10005a15
sbb eax, eax
or eax, 1
test eax, eax
je 0x10005b3c
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x100875b4
cmovae eax, dword [ebp - 0x2c]
push dword [ebp - 0x18c]
mov dword [ebp - 0x1c], 0
mov byte [eax], 0
lea eax, [ebp - 0x1bc]
push eax
call fcn.1000f890
add esp, 0xc
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000f840
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x10005aa0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10005a85
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10003190
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.1000d5a0
mov eax, dword [ebp - 0x190]
cmp eax, 0x10
jb 0x10005abe
inc eax
lea ecx, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
call fcn.10003190
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x190], 0xf
mov dword [ebp - 0x194], 0
mov byte [ebp - 0x1a4], 0
cmp eax, 0x10
jb 0x10005afb
inc eax
lea ecx, [ebp - 0x1bc]
push eax
push dword [ebp - 0x1bc]
call fcn.10003190
test byte [ebp - 0x184], 0x10
lea ecx, [ebp - 0x2c]
je 0x10005b29
lea eax, [ebx + 1]
mov edx, edi
push eax
call fcn.100058c0
add esp, 4
test al, al
jne 0x10005b36
push dword [ebp - 0x188]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x10005b87
cmp dword [ebp - 0x18], 0x10
cmovae ecx, dword [ebp - 0x2c]
call fcn.10004da0
mov esi, dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100059d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x10005b81
test ebx, ebx
je 0x10005b85
mov eax, dword [ebp - 0x18c]
cmp dword [eax + 0x14], 0x10
jb 0x10005b76
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10005b85
xor bl, bl
jmp 0x10005b87
mov bl, 1
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x10005b9c
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10003190
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x10005bc3
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.10003190
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10049b55
mov esp, ebp
pop ebp
ret