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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x530400]
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 - 0x1a0], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x199]
call fcn.00408040
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov ecx, esi
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409db8
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403b90
push 0x4e803c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.004028b0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x409e19
mov ecx, eax
call fcn.00403170
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 - 0x1a4]
cmp ecx, 0xf
jbe 0x409e53
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a130
push ecx
push edx
call fcn.004bbade
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 0x40a06e
mov esi, dword [ebp - 0x1a0]
nop dword [eax]
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40a06e
cmp byte [ebp - 0x16c], 0x2e
je 0x409e80
mov al, byte [ebp - 0x16b]
test al, al
je 0x409e80
cmp al, 0x2e
jne 0x409eb6
cmp byte [ebp - 0x16a], 0
je 0x409e80
test byte [ebp - 0x198], 0x10
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
je 0x409fd3
lea eax, [ebp - 0x1b8]
push eax
call fcn.004028b0
add esp, 0xc
push 1
push 0x50aea0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004024e0
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 - 0x1a4]
mov byte [ebp - 4], 4
cmp ecx, 0xf
jbe 0x409f64
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a130
push ecx
push edx
call fcn.004bbade
add esp, 8
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov ecx, esi
mov dword [ebp - 0x1a8], 0
cmova eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
call fcn.00409d40
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x409e80
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a130
push ecx
push edx
call fcn.004bbade
add esp, 8
jmp 0x409e80
lea eax, [ebp - 0x40]
push eax
call fcn.004028b0
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 0x40a027
mov eax, dword [esi + 0x534]
lea ecx, [ebp - 0x40]
push ecx
cmp eax, dword [esi + 0x538]
je 0x40a01b
mov ecx, eax
call fcn.00402630
add dword [esi + 0x534], 0x18
jmp 0x40a027
push eax
lea ecx, [esi + 0x530]
call fcn.00409050
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1a0]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x409e80
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a05f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a130
push ecx
push edx
call fcn.004bbade
add esp, 8
jmp 0x409e80
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 0x40a0a1
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 0x40a0d1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a0c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a135
push ecx
push edx
call fcn.004bbade
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 0x40a113
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a109
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a135
push ecx
push edx
call fcn.004bbade
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.004bbaec
mov esp, ebp
pop ebp
ret 4
call fcn.004bff0f
call fcn.004bff0f
int3