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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5186d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x55d3e4]
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
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], 7
push eax
mov dword [ebp - 0x30], 0
call fcn.00407eb0
push 3
push 0x520e54
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040a6a0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a4ff
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40a4ff
mov cx, word [ebp - 0x27c]
cmp cx, 0x2e
je 0x40a2f1
mov ax, word [ebp - 0x27a]
test ax, ax
je 0x40a2f1
cmp ax, 0x2e
jne 0x40a330
cmp word [ebp - 0x278], 0
je 0x40a2f1
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
test cx, cx
jne 0x40a34d
xor ecx, ecx
jmp 0x40a365
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a356
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00407fd0
xor eax, eax
mov byte [ebp - 4], 2
test byte [ebp - 0x2a8], 0x10
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
push eax
je 0x40a404
call fcn.00407eb0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a590
push 1
push 0x520de8
lea ecx, [ebp - 0x28]
call fcn.0040a6a0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40a3e5
mov eax, dword [ecx]
jmp 0x40a3e7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00407eb0
mov ecx, edi
call fcn.0040a260
jmp 0x40a4c8
call fcn.00407eb0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a590
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2ac], 7
cmovae edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
cmp word [edx], ax
jne 0x40a44e
xor ecx, ecx
jmp 0x40a462
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a453
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c0]
call fcn.00407fd0
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
cmovae eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a4aa
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
mov ecx, edi
cmovae eax, dword [ebp - 0x2c0]
push eax
call fcn.0040a140
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40a4c8
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0047f630
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a4dd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0047f630
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x40a2f1
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0047f630
jmp 0x40a2f1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40a532
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40a547
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x40a56c
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0047f630
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.004974f6
mov esp, ebp
pop ebp
ret 0x18