Function at 0x4b9ff0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fb91c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x529748]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push esi
push edi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
mov dword [esp + 0x20], edx
mov esi, ecx
mov dword [esp + 0x1c], esi
xor ebx, ebx
lea ecx, [esp + 0x5c]
mov edx, 0x5134f0
mov dword [esp + 0x24], ebx
xor edi, edi
call fcn.004bba60
mov dword [esp + 0x2d8], edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x4ba06c
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
mov edx, esi
lea ecx, [esp + 0x38]
call fcn.0049c450
push dword [esp + 0x24]
mov edx, eax
mov byte [esp + 0x2e0], 1
lea ecx, [esp + 0x30]
call fcn.0049c450
add esp, 8
lea ecx, [esp + 0x74]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4ba0c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x2d8], 0
or ecx, 0xffffffff
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ba0e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x2d8], 0xffffffff
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4ba11b
push eax
call fcn.004191e0
add esp, 4
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x4ba5e2
jmp 0x4ba130
lea eax, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4ba5c7
test byte [esp + 0x74], 0x10
je 0x4ba469
lea eax, [esp + 0xa0]
mov dword [esp + 0x6c], 0
push eax
lea ecx, [esp + 0x70]
call fcn.0048e020
mov edx, str.aQ
mov dword [esp + 0x2d8], 2
lea ecx, [esp + 0x44]
call fcn.004bba60
mov byte [esp + 0x2d8], 3
or ebx, 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [esp + 0x14], ebx
sar eax, 1
mov dword [esp + 0x24], ebx
je 0x4ba062
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4ba5b3
mov eax, dword [esp + 0x6c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ba1dc
test dx, dx
je 0x4ba1d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ba1dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ba1b6
xor eax, eax
jmp 0x4ba1e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ba263
mov edx, 0x51514c
lea ecx, [esp + 0x50]
call fcn.004bba60
mov ecx, eax
mov dword [esp + 0x2d8], 4
or ebx, 2
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov dword [esp + 0x14], ebx
sar ecx, 1
mov dword [esp + 0x24], ebx
je 0x4ba062
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4ba5b3
mov ecx, dword [esp + 0x6c]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4ba256
test dx, dx
je 0x4ba252
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4ba256
add ecx, 4
add eax, 4
test dx, dx
jne 0x4ba230
xor eax, eax
jmp 0x4ba25b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ba263
xor bl, bl
jmp 0x4ba265
mov bl, 1
mov ecx, dword [esp + 0x14]
test cl, 2
je 0x4ba2a2
mov eax, dword [esp + 0x50]
and ecx, 0xfffffffd
mov dword [esp + 0x14], ecx
test eax, eax
je 0x4ba2a2
push eax
call fcn.004191e0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x2d8], 2
test cl, 1
je 0x4ba2e2
mov eax, dword [esp + 0x44]
and ecx, 0xfffffffe
mov dword [esp + 0x14], ecx
test eax, eax
je 0x4ba2e2
push eax
call fcn.004191e0
add esp, 4
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test bl, bl
je 0x4ba324
mov dword [esp + 0x2d8], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x6c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov ebx, dword [esp + 0x14]
test ecx, ecx
mov ecx, dword [esp + 0x18]
jg 0x4ba130
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
jmp 0x4ba130
mov dword [esp + 0x68], 0
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x4ba5b3
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x1c]
mov ebx, 1
mov byte [esp + 0x2d8], 5
mov edx, ebx
sub edx, dword [eax - 4]
mov esi, dword [ecx]
mov ecx, dword [eax - 8]
sub ecx, 0x104
or ecx, edx
jge 0x4ba387
push 0x104
lea ecx, [esp + 0x6c]
call fcn.00415500
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0xa0]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x68]
push dword [eax - 8]
push eax
call fcn.004bf579
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4ba5bd
mov eax, dword [esp + 0x68]
cmp ecx, dword [eax - 8]
jg 0x4ba5bd
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 0x68]
push esi
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x6c]
mov edx, dword [esp + 0x24]
call fcn.004b9ff0
add esp, 4
test eax, eax
cmovne edi, ebx
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ba405
test esi, esi
je 0x4ba403
push 4
push eax
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, ebx
mov byte [esp + 0x2d8], 2
or ecx, 0xffffffff
mov edx, dword [esp + 0x68]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ba42b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x2d8], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x6c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov ebx, dword [esp + 0x14]
test ecx, ecx
mov ecx, dword [esp + 0x18]
jg 0x4ba130
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
jmp 0x4ba130
mov edx, 0x5134f0
mov dword [esp + 0x70], 0
lea ecx, [esp + 0x38]
call fcn.004bba60
mov dword [esp + 0x2d8], 6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
je 0x4ba062
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0049c450
lea ecx, [esp + 0xa4]
mov byte [esp + 0x2dc], 7
push ecx
mov edx, eax
lea ecx, [esp + 0x38]
call fcn.0049c450
add esp, 8
mov byte [esp + 0x2d8], 8
lea ecx, [esp + 0x70]
push dword [eax]
call fcn.0048e020
mov byte [esp + 0x2d8], 0xa
or ecx, 0xffffffff
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ba4fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x2d8], 0xb
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ba524
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x2d8], 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4ba555
push eax
call fcn.004191e0
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ba579
test esi, esi
je 0x4ba574
push 4
push eax
push dword [esp + 0x78]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 1
mov dword [esp + 0x2d8], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x70]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
mov ecx, dword [esp + 0x18]
jg 0x4ba130
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
jmp 0x4ba130
push 0x80004005
call fcn.004162a0
push 0x80070057
call fcn.004162a0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4ba5e2
mov edi, 1
mov ebx, dword [esp + 0x1c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ba606
test esi, esi
je 0x4ba601
push 4
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 1
mov eax, edi
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.004bd963
mov esp, ebp
pop ebp
ret