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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567184
mov eax, dword fs:[0]
push eax
sub esp, 0xa68
mov eax, dword [0x5df7e4]
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
push str.DeleteImageFile
call fcn.004c1030
lea eax, [ebp - 0xa6c]
push eax
call fcn.0050c720
add esp, 8
mov dword [ebp - 4], 0
mov esi, 0xa
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov eax, esi
dec esi
test eax, eax
je 0x50c055
push dword [ebp - 0xa6c]
call ebx
test eax, eax
jne 0x50bd60
push 0x3e8
call edi
jmp 0x50bd40
mov eax, dword [ebp - 0xa6c]
add eax, 0xfffffff0
push eax
call fcn.004bbb10
add eax, 0x10
add esp, 4
mov dword [ebp - 0xa64], eax
mov byte [ebp - 4], 2
or edi, 0xffffffff
push 0x5c
push dword [ebp - 0xa64]
call fcn.0052a53d
add esp, 8
test eax, eax
jne 0x50bd9b
or eax, 0xffffffff
jmp 0x50bda3
sub eax, dword [ebp - 0xa64]
sar eax, 1
cmp eax, 0xffffffff
je 0x50c023
push eax
lea eax, [ebp - 0xa70]
push eax
lea ecx, [ebp - 0xa64]
call fcn.004babf0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov esi, dword [ebp - 0xa64]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x50be20
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x50be0e
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x50be0e
push edx
call fcn.004bbb10
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x50be03
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [ebx + 0x10]
mov dword [ebp - 0xa64], eax
jmp 0x50be1d
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0xa64]
call fcn.004bbc70
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0xa70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50be41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0052a280
push dword [ebp - 0xa64]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0053a19c
push 0x5be3b0
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0053a127
add esp, 0x24
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x50c023
call fcn.004b98f0
test eax, eax
je 0x50c0a7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0xa68], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xa34]
test eax, 0xffff0000
jne 0x50bee2
movzx eax, ax
lea ecx, [ebp - 0xa68]
push eax
call fcn.004bb960
jmp 0x50bf07
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50bee5
sub eax, edx
lea ecx, [ebp - 0xa68]
sar eax, 1
push eax
lea eax, [ebp - 0xa34]
push eax
call fcn.004bbc70
mov byte [ebp - 4], 6
mov ecx, 0x5be3ac
mov esi, dword [ebp - 0xa68]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50bf3e
test dx, dx
je 0x50bf3a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50bf3e
add eax, 4
add ecx, 4
test dx, dx
jne 0x50bf18
xor eax, eax
jmp 0x50bf43
sbb eax, eax
or eax, 1
test eax, eax
je 0x50bf7f
mov ecx, 0x5be3bc
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50bf76
test dx, dx
je 0x50bf72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50bf76
add eax, 4
add ecx, 4
test dx, dx
jne 0x50bf50
xor eax, eax
jmp 0x50bf7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50bff2
lea eax, [ebp - 0xa60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x50bfb5
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50bea3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50bea3
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50bfd0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0xa64]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x50bd82
push str.DeleteImageFile_1
jmp 0x50c028
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.DeleteImageFile_2
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50c030
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50c030
push str.DeleteImageFile_over
call fcn.004c1030
add esp, 4
mov byte [ebp - 4], 0
mov bl, 1
mov edx, dword [ebp - 0xa64]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50c067
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50c067
push str.DeleteImageFile_3
call fcn.004c1030
add esp, 4
xor bl, bl
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa6c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x50c089
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b95c0
int3