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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x509380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov ecx, edx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d8b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409f50
push 0x4c7698
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.004022f0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x40d911
mov ecx, eax
call fcn.00402c10
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 0xf
jbe 0x40d94b
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d941
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc25
push ecx
push edx
call fcn.0049ce1b
add esp, 8
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40db63
mov esi, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40db63
cmp byte [ebp - 0x16c], 0x2e
je 0x40d975
mov al, byte [ebp - 0x16b]
test al, al
je 0x40d975
cmp al, 0x2e
jne 0x40d9ab
cmp byte [ebp - 0x16a], 0
je 0x40d975
test byte [ebp - 0x198], 0x10
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
je 0x40dac8
lea eax, [ebp - 0x1b4]
push eax
call fcn.004022f0
add esp, 0xc
push 1
push 0x4e58d0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401f50
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x1a0]
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x40da59
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40da4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc25
push ecx
push edx
call fcn.0049ce1b
add esp, 8
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov ecx, esi
mov dword [ebp - 0x1a4], 0
cmova eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x1a0], 0xf
mov byte [ebp - 0x1b4], 0
call fcn.0040d840
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x40d975
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dab9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc25
push ecx
push edx
call fcn.0049ce1b
add esp, 8
jmp 0x40d975
lea eax, [ebp - 0x40]
push eax
call fcn.004022f0
add esp, 0xc
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40db1c
mov eax, dword [esi + 0x714]
lea ecx, [ebp - 0x40]
push ecx
cmp eax, dword [esi + 0x718]
je 0x40db10
mov ecx, eax
call fcn.00402070
add dword [esi + 0x714], 0x18
jmp 0x40db1c
push eax
lea ecx, [esi + 0x710]
call fcn.0040c3e0
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x19c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x40d975
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40db54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc25
push ecx
push edx
call fcn.0049ce1b
add esp, 8
jmp 0x40d975
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40db96
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 4
cmova eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40dbc6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dbbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc2a
push ecx
push edx
call fcn.0049ce1b
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x40dc08
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dbfe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dc2a
push ecx
push edx
call fcn.0049ce1b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049cd8d
mov esp, ebp
pop ebp
ret 4
call fcn.004a746a
call fcn.004a746a
int3