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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8c40
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x5363c0]
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.00404a90
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 0x4129b8
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403d10
push 0x4ef5f8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.00402850
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x412a19
mov ecx, eax
call fcn.00403210
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, 0x10
jb 0x412a53
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412a49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d30
push ecx
push edx
call fcn.004bb95e
add esp, 8
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412c6e
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 0x412c6e
cmp byte [ebp - 0x16c], 0x2e
je 0x412a80
mov al, byte [ebp - 0x16b]
test al, al
je 0x412a80
cmp al, 0x2e
jne 0x412ab6
cmp byte [ebp - 0x16a], 0
je 0x412a80
test byte [ebp - 0x198], 0x10
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
je 0x412bd3
lea eax, [ebp - 0x1b8]
push eax
call fcn.00402850
add esp, 0xc
push 1
push 0x5113e0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402420
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, 0x10
jb 0x412b64
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412b5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d30
push ecx
push edx
call fcn.004bb95e
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov ecx, esi
mov dword [ebp - 0x1a8], 0
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
call fcn.00412940
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x412a80
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412bc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d30
push ecx
push edx
call fcn.004bb95e
add esp, 8
jmp 0x412a80
lea eax, [ebp - 0x40]
push eax
call fcn.00402850
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x412c27
mov eax, dword [esi + 0x7b8]
lea ecx, [ebp - 0x40]
push ecx
cmp eax, dword [esi + 0x7bc]
je 0x412c1b
mov ecx, eax
call fcn.00402570
add dword [esi + 0x7b8], 0x18
jmp 0x412c27
push eax
lea ecx, [esi + 0x7b4]
call fcn.0040fe80
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1a0]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x412a80
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412c5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d30
push ecx
push edx
call fcn.004bb95e
add esp, 8
jmp 0x412a80
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x412ca1
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x412cd1
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412cc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d35
push ecx
push edx
call fcn.004bb95e
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, 0x10
jb 0x412d13
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412d09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d35
push ecx
push edx
call fcn.004bb95e
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.004bb96c
mov esp, ebp
pop ebp
ret 4
call fcn.004c15cf
call fcn.004c15cf
int3