Function at 0x40a0c0
Capabilities:
Create process on windows
Delete file
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40a0c8
push ebx
push esi
push edi
mov eax, dword [0x40b3ec]
mov byte [eax], 1
mov eax, 0x40a058
call fcn.004049e8
xor eax, eax
push ebp
push 0x40a4b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40b2c0]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
call fcn.00409978
mov edx, dword [ebp - 0x14]
mov eax, 0x40c950
call fcn.00403a60
lea edx, [ebp - 0x18]
mov eax, dword [0x40c950]
call fcn.00409898
mov edx, dword [ebp - 0x18]
mov eax, 0x40c950
call fcn.00403a60
mov eax, 0x40c954
mov edx, 0x800
call fcn.00403ed0
push 0x800
mov eax, dword [0x40c954]
call fcn.00403de8
push eax
mov eax, dword [0x40c950]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40c954
xchg edx, eax
call fcn.00403ed0
mov eax, 0x40c950
mov edx, dword [0x40c954]
call fcn.00403a60
xor eax, eax
mov dword [0x40c8f4], eax
xor eax, eax
mov dword [0x40c8f8], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40a2ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40a4c8
push 0xa
mov ecx, dword [0x40b338]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x408cd0]
call fcn.00409588
mov dword [0x40c8f4], eax
push 0x40a4d8
push 0xa
mov ecx, dword [0x40b338]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x408cd0]
call fcn.00409588
mov dword [0x40c8f8], eax
mov dl, 1
mov eax, dword [0x408c54]
call fcn.00403020
mov esi, eax
push 0
push 0
mov edx, dword [0x40c8f8]
mov eax, esi
call fcn.00408fb0
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40a4e8
mov eax, esi
call fcn.00409e08
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40c864
mov ecx, 0x90
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00409434
push 0
push 0
mov edx, dword [0x40c8f4]
mov eax, esi
call fcn.00408fb0
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40a4e8
mov eax, esi
call fcn.00409e08
lea eax, [ebp - 0x20]
mov edx, 0x40c864
call fcn.00403c54
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x40c950]
call fcn.00409f90
mov edx, dword [ebp - 0x1c]
mov eax, 0x40c958
call fcn.00403a60
mov edx, dword [0x40c958]
mov eax, esi
call fcn.004093b0
push 2
mov eax, dword [0x40c958]
call fcn.00403de8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, esi
call fcn.00403050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a2b9
xor eax, eax
push ebp
push 0x40a48e
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40a46c
lea eax, [ebp - 0x24]
call fcn.00409a90
mov eax, dword [ebp - 0x24]
call fcn.00403de8
push eax
push 0x40a50c
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x40c954
call fcn.00403a0c
mov eax, dword [0x40c950]
call fcn.00403c8c
mov esi, eax
dec esi
test esi, esi
jl 0x40a342
inc esi
xor edi, edi
mov eax, dword [0x40c950]
mov bl, byte [eax + edi - 1]
cmp bl, 0x26
je 0x40a32f
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00403bd8
mov edx, dword [ebp - 0x28]
mov eax, 0x40c954
call fcn.00403c94
jmp 0x40a33e
mov eax, 0x40c954
mov edx, 0x40a51c
call fcn.00403c94
inc edi
dec esi
jne 0x40a308
mov eax, 0x40c950
mov edx, dword [0x40c954]
call fcn.00403a60
mov eax, 0x40c8fc
xor ecx, ecx
mov edx, 0x44
call fcn.00402ac0
mov dword [0x40c8fc], 0x44
mov dword [0x40c928], 1
mov word [0x40c92c], 0
mov eax, dword [0x40b44c]
cmp dword [eax], 2
jne 0x40a3be
push 0x40a528
push dword [0x40c958]
push 0x40a53c
lea eax, [ebp - 0x2c]
mov edx, dword [0x40b3b8]
mov edx, dword [edx]
call fcn.00403be8
push dword [ebp - 0x2c]
mov eax, 0x40c960
mov edx, 4
call fcn.00403d4c
jmp 0x40a3f0
push 0x40a548
push dword [0x40c958]
push 0x40a53c
lea eax, [ebp - 0x30]
mov edx, dword [0x40b3b8]
mov edx, dword [edx]
call fcn.00403be8
push dword [ebp - 0x30]
mov eax, 0x40c960
mov edx, 4
call fcn.00403d4c
push 0x40c940
push 0x40c8fc
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [0x40c960]
call fcn.00403de8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x40a44f
push 0xffffffffffffffff
mov eax, dword [0x40c940]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x40c95c
mov eax, dword [0x40c940]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x40c940]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40c944]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40c958]
call fcn.00403de8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x40b2c0]
mov edx, dword [0x40c95c]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a495
mov eax, dword [0x40c8f4]
call fcn.00403050
mov eax, dword [0x40c8f8]
call fcn.00403050
ret