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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a752c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x60f520]
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 ecx, dword [ecx]
sub ecx, 0x10
call fcn.0040c3c0
add eax, 0x10
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0
call fcn.00428930
mov ecx, eax
call fcn.004289b0
mov eax, dword [ebp - 0x264]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x5138d0
xor edi, edi
jmp 0x513b34
push 1
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x264]
call fcn.00419710
mov byte [ebp - 4], 1
mov ecx, 0x5bcf3c
mov esi, dword [ebp - 0x270]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x51391b
test dx, dx
je 0x513917
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x51391b
add eax, 4
add ecx, 4
test dx, dx
jne 0x5138f5
xor eax, eax
jmp 0x513920
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x51394d
lea edx, [ebp - 0x270]
mov ecx, 0x5beeec
call fcn.00443340
test al, al
je 0x51394d
push 0x5bcf3c
lea ecx, [ebp - 0x264]
call fcn.004288e0
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x513964
xor edi, edi
jmp 0x513b17
push 0x5beef0
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x278]
call fcn.00414260
add esp, 4
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [ebp - 0x278]
mov edx, ebx
add edi, 0xfffffff0
mov dword [ebp - 0x26c], eax
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5139b7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x26c]
cmp eax, 0xffffffff
je 0x513b09
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x268]
call fcn.0040c2d0
mov byte [ebp - 4], 2
mov edx, 0x5beef8
mov eax, dword [ebp - 0x268]
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x513a09
test di, di
je 0x513a05
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x513a09
add ecx, 4
add edx, 4
test di, di
jne 0x5139e3
xor ecx, ecx
jmp 0x513a0e
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x513ac9
mov edx, 0x5beefc
mov ecx, eax
lea ecx, [ecx]
mov di, word [ecx]
cmp di, word [edx]
jne 0x513a46
test di, di
je 0x513a42
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x513a46
add ecx, 4
add edx, 4
test di, di
jne 0x513a20
xor ecx, ecx
jmp 0x513a4b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x513ac9
lea eax, [ebp - 0x268]
push eax
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x274]
call fcn.00428a60
add esp, 4
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call fcn.0040b7d0
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x513aa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp - 0x260], 0x10
je 0x513ab7
lea ecx, [ebp - 0x268]
call fcn.00513860
jmp 0x513ac3
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x268]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x513ae6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5139c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov edx, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513b34
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x513b58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.0055199a
mov esp, ebp
pop ebp
ret