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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503c76
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x541074]
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 esi, edx
mov dword [ebp - 0x4a0], esi
mov edi, ecx
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x4b8], edi
mov dword [ebp - 0x4c4], edi
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xor al, al
mov dword [ebp - 0x4bc], 1
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x499], al
jb 0x406beb
mov eax, dword [esi]
jmp 0x406bed
mov eax, esi
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004e4c47
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x51bb60
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004e7e41
add esp, 0xc
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b8], eax
cmp eax, 0xffffffff
je 0x406feb
nop dword [eax + eax]
xor bl, bl
lea eax, [ebp - 0x46c]
mov ecx, 0x51bb48
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406c86
test dx, dx
je 0x406c82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406c86
add eax, 4
add ecx, 4
test dx, dx
jne 0x406c60
xor eax, eax
jmp 0x406c8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fbe
mov ecx, 0x51bb54
lea eax, [ebp - 0x46c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406cc6
test dx, dx
je 0x406cc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406cc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406ca0
xor eax, eax
jmp 0x406ccb
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fbe
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp + 8]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406df7
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x46c], ax
jne 0x406d1a
xor ecx, ecx
jmp 0x406d32
lea ecx, [ebp - 0x46c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d23
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402f90
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
je 0x406d90
nop dword [eax]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp dword [esi + 0x14], 8
jb 0x406d6e
mov ecx, dword [esi]
jmp 0x406d70
mov ecx, esi
push eax
push ecx
call fcn.004e7ccc
add esp, 8
test eax, eax
je 0x406d88
add esi, 0x18
cmp esi, dword [ebp + 0xc]
jne 0x406d50
jmp 0x406d90
mov bl, 1
mov byte [ebp - 0x499], bl
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406de9
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
ja 0x40703b
add eax, eax
cmp eax, 0x1000
jb 0x406de0
test cl, 0x1f
jne 0x40703b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40703b
sub ecx, eax
cmp ecx, 4
jb 0x40703b
cmp ecx, 0x23
ja 0x40703b
mov ecx, eax
push ecx
call fcn.004c8b2e
add esp, 4
mov esi, dword [ebp - 0x4a0]
test bl, bl
jne 0x406fbe
mov ecx, esi
call fcn.00402c40
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004e4c47
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004e7e41
add esp, 0xc
test byte [ebp - 0x498], 0x10
je 0x407040
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x406e72
xor ecx, ecx
jmp 0x406e8f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406e80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402f90
sub esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00407420
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x4b4]
call fcn.00406b60
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406eea
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403ab0
mov edi, dword [ebp - 0x4b0]
xor eax, eax
mov esi, dword [ebp - 0x4b4]
mov ecx, edi
mov word [ebp - 0x230], ax
sub ecx, esi
mov eax, 0x2aaaaaab
mov dword [ebp - 0x21c], 7
imul ecx
mov dword [ebp - 0x220], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406f53
mov ecx, dword [ebp - 0x4a8]
mov byte [ebp - 0x4c0], 0
push dword [ebp - 0x4c0]
push edi
push esi
push dword [ecx + 4]
call fcn.00407df0
mov edi, dword [ebp - 0x4b0]
mov esi, dword [ebp - 0x4b4]
mov byte [ebp - 4], 1
test esi, esi
je 0x406fb2
push dword [ebp - 0x4a4]
mov edx, edi
push ecx
mov ecx, esi
call fcn.00408010
mov ecx, dword [ebp - 0x4ac]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x4b4]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004079b0
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
mov esi, dword [ebp - 0x4a0]
mov edi, dword [ebp - 0x4a8]
mov ebx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x498]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406c50
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x499]
test al, al
jne 0x406ffa
cmp dword [esi + 0x14], 8
jb 0x406ff3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x407172
push dword [ebp - 0x4a4]
mov edx, dword [ebp + 0xc]
push ecx
call fcn.00408010
mov ecx, dword [ebp + 0x10]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp + 8]
add esp, 8
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x40712e
call fcn.004e4e85
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406fbe
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x407079
xor ecx, ecx
jmp 0x407091
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407082
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402f90
push 0xd
push 0
push 0x51bb70
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.004077c0
cmp eax, 0xffffffff
jne 0x407103
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402d60
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.004072f0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x407103
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403ab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x406fbe
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403ab0
jmp 0x406fbe
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x407169
test bl, 0x1f
je 0x407145
call fcn.004e4e85
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x407151
call fcn.004e4e85
sub ebx, eax
cmp ebx, 4
jae 0x40715d
call fcn.004e4e85
cmp ebx, 0x23
jbe 0x407167
call fcn.004e4e85
mov ebx, eax
push ebx
call fcn.004c8b2e
add esp, 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.004c8882
mov esp, ebp
pop ebp
ret