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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46de6a
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x48f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x26c], edi
mov dword [ebp - 4], 0
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jg 0x40f5ac
xor edi, edi
jmp 0x40f8f2
add ecx, 0xfffffff0
call fcn.00413f80
lea esi, [eax + 0x10]
mov dword [ebp - 0x268], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.00434773
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40f5d7
or ecx, 0xffffffff
jmp 0x40f5db
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
lea ecx, [ebp - 0x268]
jne 0x40f5f2
push 3
push 0x480df0
jmp 0x40f5f9
push 4
push str..
call fcn.00413b90
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x270], eax
cmp eax, ebx
je 0x40f8c8
or esi, ebx
nop word [eax + eax]
mov ecx, 0x480e04
lea eax, [ebp - 0x238]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f666
test dx, dx
je 0x40f662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f666
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f640
xor eax, eax
jmp 0x40f66b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f898
mov ecx, 0x480e08
lea eax, [ebp - 0x238]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f6a6
test dx, dx
je 0x40f6a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f6a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f680
xor eax, eax
jmp 0x40f6ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f898
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, ebx
je 0x40f708
nop dword [eax]
mov edx, dword [eax]
lea ecx, [ebp - 0x238]
mov di, word [ecx]
cmp di, word [edx]
jne 0x40f6ee
test di, di
je 0x40f6ea
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x40f6ee
add ecx, 4
add edx, 4
test di, di
jne 0x40f6c8
xor ecx, ecx
jmp 0x40f6f3
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x40f898
add eax, 4
cmp eax, ebx
jne 0x40f6c0
mov edi, dword [ebp - 0x26c]
test byte [ebp - 0x264], 0x10
je 0x40f79f
sub esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x28c], esp
push eax
call fcn.00411ce0
push 0x481298
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00412c70
add esp, 4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x274]
call fcn.00412c70
add esp, 4
mov byte [ebp - 4], 4
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040f560
mov byte [ebp - 4], 5
add esp, 0xc
mov edx, dword [ebp - 0x274]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x278]
jmp 0x40f881
push 0x481298
mov edx, edi
lea ecx, [ebp - 0x280]
call fcn.00412c70
add esp, 4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x27c]
call fcn.00412c70
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x27c]
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40f7f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x280]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f817
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x40f898
mov edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x288]
push 0x481298
call fcn.00412c70
add esp, 4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x284]
call fcn.00412c70
add esp, 4
push 4
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x284]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f877
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x288]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f898
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x26c]
test eax, eax
jne 0x40f630
mov esi, dword [ebp - 0x268]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f8f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 8]
call fcn.004134a0
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 - 0x14]
xor ecx, ebp
call fcn.0042fe16
mov esp, ebp
pop ebp
ret