Function at 0x40a280
Capabilities:
Create process on windows
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x584
mov eax, dword [0x420070]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x584], ecx
mov eax, dword [ebp - 0x584]
cmp dword [eax + 8], 0
je 0x40a2b3
mov ecx, dword [ebp - 0x584]
mov ecx, dword [ecx + 8]
call fcn.004079a0
mov dword [ebp - 0x114], 0x208
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40a32c
push str.Error_get_yourself_.exe_name
call fcn.00403dd0
add esp, 4
push 1
mov ecx, dword [ebp + 8]
call fcn.0040c3d0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040bfb0
push 0x41b5d8
call fcn.0040f9f0
add esp, 4
push eax
push str.ErrorGetModuleExeName
mov ecx, dword [ebp + 8]
call fcn.0040c0c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x584]
call fcn.0040a5a0
mov eax, 1
jmp 0x40a58a
lea ecx, [ebp - 0x330]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
jne 0x40a35a
push str.c:del.bat
lea eax, [ebp - 0x330]
push eax
call fcn.0040fec0
add esp, 8
jmp 0x40a3a0
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040f9f0
add esp, 4
movsx edx, byte [ebp + eax - 0x331]
cmp edx, 0x5c
je 0x40a38c
push 0x41b614
lea eax, [ebp - 0x330]
push eax
call fcn.0040fed0
add esp, 8
jmp 0x40a3a0
push str.del.bat
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040fed0
add esp, 8
push 0x41b628
lea edx, [ebp - 0x330]
push edx
call fcn.00410b46
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a426
push 1
mov ecx, dword [ebp + 8]
call fcn.0040c3d0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040bfb0
lea eax, [ebp - 0x330]
push eax
push str.Cant_create_BatFile___s
lea ecx, [ebp - 0x580]
push ecx
call fcn.0041005f
add esp, 0xc
lea edx, [ebp - 0x580]
push edx
call fcn.0040f9f0
add esp, 4
push eax
lea eax, [ebp - 0x580]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040c0c0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x584]
call fcn.0040a5a0
mov eax, 1
jmp 0x40a58a
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x110]
push edx
push str.__s__delete_n:loop_ndel___s__nif_exist___s__goto_:loop_ndel___s_
mov eax, dword [ebp - 4]
push eax
call fcn.00410a8c
add esp, 0x18
cmp dword [ebp - 4], 0
je 0x40a465
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410a3b
add esp, 4
push 0x44
push 0
lea edx, [ebp - 0x378]
push edx
call fcn.004100c0
add esp, 0xc
mov dword [ebp - 0x378], 0x44
push 0x10
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004100c0
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x378]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x330]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x40a538
push str.Error_start_bat_file
call fcn.00403dd0
add esp, 4
push 1
mov ecx, dword [ebp + 8]
call fcn.0040c3d0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040bfb0
lea ecx, [ebp - 0x330]
push ecx
push str.Cant_start_BatFile___s
lea edx, [ebp - 0x580]
push edx
call fcn.0041005f
add esp, 0xc
lea eax, [ebp - 0x580]
push eax
call fcn.0040f9f0
add esp, 4
push eax
lea ecx, [ebp - 0x580]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040c0c0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x584]
call fcn.0040a5a0
mov eax, 1
jmp 0x40a58a
push 0
mov ecx, dword [ebp + 8]
call fcn.0040c3d0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040bfb0
push 0x41b6bc
call fcn.0040f9f0
add esp, 4
push eax
push 0x41b6c0
mov ecx, dword [ebp + 8]
call fcn.0040c0c0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x584]
call fcn.0040a5a0
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call fcn.004109af
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00410051
mov esp, ebp
pop ebp
ret 4