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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x26c], ecx
test eax, eax
jne 0x4b5125
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 0x10
push esi
push eax
lea ecx, [ebp - 0x258]
call fcn.00464b60
mov esi, dword [ebp - 0x258]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4b516f
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b515b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4b53db
cmp ecx, eax
jg 0x4b53db
cmp word [esi + ecx*2], 0x5c
je 0x4b519c
push 0x5c
lea ecx, [ebp - 0x258]
call fcn.0044f490
mov esi, dword [ebp - 0x258]
push edi
lea edi, [esi - 0x10]
push edi
call fcn.0041eae0
add esp, 4
add eax, 0x10
push 0x566d8c
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x25c], eax
call fcn.004502c0
mov edx, dword [ebp - 0x25c]
lea ecx, [ebp - 0x254]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x4b5246
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b5203
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b521c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x260]
cmp word [ebp - 0x228], 0x2e
jne 0x4b5281
mov cx, word [ebp - 0x226]
test cx, cx
je 0x4b526c
cmp cx, 0x2e
jne 0x4b5281
cmp word [ebp - 0x224], 0
jne 0x4b5281
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x4b5369
lea eax, [esi - 0x10]
push eax
call fcn.0041eae0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b52a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x264]
call fcn.0044a1a0
test byte [ebp - 0x254], 0x10
mov esi, dword [ebp - 0x264]
je 0x4b52e8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
mov ecx, dword [ebp - 0x26c]
push esi
call fcn.004b50f0
jmp 0x4b5331
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, ebx
je 0x4b5317
mov ecx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x234]
add dword [ebx], eax
adc dword [ebx + 4], ecx
cmp dword [ebp + 0xc], 0
push esi
je 0x4b532b
mov ecx, dword [ebp - 0x26c]
call fcn.004b4dc0
jmp 0x4b5331
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x254]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b5363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x258]
test edi, edi
jne 0x4b5240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x260]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x12
je 0x4b53a6
lea ecx, [ebp - 0x25c]
call fcn.00442750
lea ecx, [ebp - 0x258]
call fcn.00442750
jmp 0x4b521c
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x25c]
call fcn.00442750
lea ecx, [ebp - 0x258]
call fcn.00442750
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00414840
int3