Function at 0x40cb87
Capabilities:
Delete directory
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x102c
call fcn.0044e410
call fcn.00412aaa
mov edi, eax
mov dword [esp + 4], 0x4635d6
mov dword [esp], 0
call sub.msvcrt.dll__tempnam
mov dword [esp + 4], str..bat
mov dword [esp], eax
call fcn.004130c0
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 4], eax
mov dword [esp], 0x64
call fcn.0040d1e1
mov eax, dword [0x4714a0]
mov dword [esp], eax
call fcn.00412f7b
mov ebx, eax
mov eax, dword [0x4714b0]
mov dword [esp], eax
call fcn.00412f7b
lea eax, [ebx + eax]
mov dword [0x471410], eax
mov eax, dword [0x4714a0]
mov dword [esp], eax
call fcn.00413063
lea esi, [ebp - 0x1018]
jmp 0x40cc7e
mov eax, dword [0x4714a0]
mov dword [esp], eax
call fcn.00412fa8
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Deleting_file__s
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call fcn.0044e850
mov dword [esp + 4], esi
mov eax, dword [0x471410]
sub eax, dword [0x471420]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
mov edx, 0
div dword [0x471410]
mov dword [esp], eax
call fcn.0040d1e1
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
inc dword [0x471420]
mov eax, dword [0x4714a0]
mov dword [esp], eax
call fcn.00413072
test eax, eax
jne 0x40cc17
mov eax, dword [0x4714b0]
mov dword [esp], eax
call fcn.00413063
lea esi, [ebp - 0x1018]
jmp 0x40cd1b
mov eax, dword [0x4714b0]
mov dword [esp], eax
call fcn.00412fa8
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Removing_folder__s
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call fcn.0044e850
mov dword [esp + 4], esi
mov eax, dword [0x471410]
sub eax, dword [0x471420]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
mov edx, 0
div dword [0x471410]
mov dword [esp], eax
call fcn.0040d1e1
inc dword [0x471420]
mov dword [esp], ebx
call sub.KERNEL32.dll_RemoveDirectoryA
sub esp, 4
test al, al
jne 0x40cd1b
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00412bb1
mov eax, dword [0x4714b0]
mov dword [esp], eax
call fcn.00413072
test eax, eax
jne 0x40cca4
mov dword [esp + 4], 0x463548
mov eax, dword [ebp - 0x101c]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
jne 0x40cd62
mov eax, dword [ebp - 0x101c]
mov dword [esp + 4], eax
mov dword [esp], str.Could_not_create__s
call fcn.00401520
mov dword [esp + 0xc], esi
mov dword [esp + 8], 5
mov dword [esp + 4], 1
mov dword [esp], str.cd__n
call sub.msvcrt.dll_fwrite
mov dword [esp], str.SETUP
call fcn.00403a4f
mov dword [esp + 8], eax
mov dword [esp + 4], str.:Repeat_ndel___s__n
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov dword [esp], str.SETUP
call fcn.00403a4f
mov dword [esp + 8], eax
mov dword [esp + 4], str.if_exist___s__goto_Repeat_n
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov dword [esp], edi
call fcn.00413063
jmp 0x40cde8
mov dword [esp], edi
call fcn.00412fa8
mov dword [esp + 8], eax
mov dword [esp + 4], str.rmdir___s__n
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov dword [esp], edi
call fcn.00413072
test eax, eax
jne 0x40cdcc
mov eax, dword [ebp - 0x101c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.del___s__n
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x101c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret