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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ddf7
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x48f00c]
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 edi, ecx
mov dword [ebp - 0x268], edi
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jg 0x40f275
xor eax, eax
jmp 0x40f541
add ecx, 0xfffffff0
call fcn.00413f80
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
push 0x5c
push esi
mov dword [ebp - 4], 0
call fcn.00434773
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40f2a3
or ecx, 0xffffffff
jmp 0x40f2a7
sub ecx, esi
sar ecx, 1
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
lea ecx, [ebp - 0x264]
jne 0x40f2be
push 3
push 0x480df0
jmp 0x40f2c5
push 4
push str..
call fcn.00413b90
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x26c], eax
cmp eax, ebx
je 0x40f512
mov esi, dword [ebp - 0x268]
nop word [eax + eax]
mov ecx, 0x480e04
lea eax, [ebp - 0x234]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f336
test dx, dx
je 0x40f332
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f336
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f310
xor eax, eax
jmp 0x40f33b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f4e5
mov eax, 0x480e08
lea ecx, [ebp - 0x234]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40f376
test dx, dx
je 0x40f372
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40f376
add ecx, 4
add eax, 4
test dx, dx
jne 0x40f350
xor eax, eax
jmp 0x40f37b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40f4e5
test byte [ebp - 0x260], 0x10
mov edx, esi
push 0x481298
je 0x40f3f7
lea ecx, [ebp - 0x274]
call fcn.00412c70
add esp, 4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x270]
call fcn.00412c70
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040f230
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f3e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x274]
jmp 0x40f4ce
lea ecx, [ebp - 0x27c]
call fcn.00412c70
add esp, 4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x278]
call fcn.00412c70
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x278]
mov edi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40f447
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x27c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f468
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x40f4e5
push 0x481298
mov edx, esi
lea ecx, [ebp - 0x284]
call fcn.00412c70
add esp, 4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x280]
call fcn.00412c70
add esp, 4
push 4
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x280]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x284]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f300
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f53f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 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.0042fe16
mov esp, ebp
pop ebp
ret