Function at 0x40a0d0
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 0x40a0d8
push ebx
push esi
push edi
mov eax, 0x40a068
call fcn.004049e8
xor eax, eax
push ebp
push 0x40a509
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, 0x40c958
call fcn.00403a60
lea edx, [ebp - 0x18]
mov eax, dword [0x40c958]
call fcn.00409898
mov edx, dword [ebp - 0x18]
mov eax, 0x40c958
call fcn.00403a60
mov eax, 0x40c95c
mov edx, 0x100
call fcn.00403ed0
push 0x100
mov eax, dword [0x40c95c]
call fcn.00403de8
push eax
mov eax, dword [0x40c958]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40c95c
xchg edx, eax
call fcn.00403ed0
mov eax, 0x40c958
mov edx, dword [0x40c95c]
call fcn.00403a60
xor eax, eax
mov dword [0x40c8fc], eax
xor eax, eax
mov dword [0x40c900], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40a2b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40a520
push 0xa
mov ecx, dword [0x40b338]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x408cd0]
call fcn.00409588
mov dword [0x40c8fc], eax
push 0x40a534
push 0xa
mov ecx, dword [0x40b338]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x408cd0]
call fcn.00409588
mov dword [0x40c900], eax
mov dl, 1
mov eax, dword [0x408c54]
call fcn.00403020
mov esi, eax
push 0
push 0
mov edx, dword [0x40c900]
mov eax, esi
call main
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40a544
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, 0x40c870
mov ecx, 0x8a
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00409434
push 0
push 0
mov edx, dword [0x40c8fc]
mov eax, esi
call main
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40a544
mov eax, esi
call fcn.00409e08
lea eax, [ebp - 0x20]
mov edx, 0x40c870
call fcn.00403c54
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x40c958]
call fcn.00409f90
mov edx, dword [ebp - 0x1c]
mov eax, 0x40c960
call fcn.00403a60
mov edx, dword [0x40c960]
mov eax, esi
call fcn.004093b0
push 2
mov eax, dword [0x40c960]
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 0x40a2c1
xor eax, eax
push ebp
push 0x40a4e7
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40a4c5
lea eax, [ebp - 0x24]
call fcn.00409a90
mov eax, dword [ebp - 0x24]
call fcn.00403de8
push eax
push 0x40a560
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x40c95c
call fcn.00403a0c
mov eax, dword [0x40c958]
call fcn.00403c8c
mov esi, eax
dec esi
test esi, esi
jl 0x40a34a
inc esi
xor edi, edi
mov eax, dword [0x40c958]
mov bl, byte [eax + edi - 1]
cmp bl, 0x26
je 0x40a337
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00403bd8
mov edx, dword [ebp - 0x28]
mov eax, 0x40c95c
call fcn.00403c94
jmp 0x40a346
mov eax, 0x40c95c
mov edx, 0x40a570
call fcn.00403c94
inc edi
dec esi
jne 0x40a310
mov eax, 0x40c958
mov edx, dword [0x40c95c]
call fcn.00403a60
mov eax, 0x40c864
xor ecx, ecx
mov edx, 0xc
call fcn.00402ac0
mov dword [0x40c864], 0xc
mov dword [0x40c86c], 0xffffffff
xor eax, eax
mov dword [0x40c868], eax
mov eax, 0x40c904
xor ecx, ecx
mov edx, 0x44
call fcn.00402ac0
mov dword [0x40c904], 0x44
mov dword [0x40c930], 1
mov word [0x40c934], 0
cmp dword [0x40c875], 0x8000
jne 0x40a3d3
push 0x30
push 0x40a574
push 0x40a584
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x40b44c]
cmp dword [eax], 2
jne 0x40a411
push 0x40a640
push dword [0x40c960]
push 0x40a654
lea eax, [ebp - 0x2c]
mov edx, dword [0x40b3b8]
mov edx, dword [edx]
call fcn.00403be8
push dword [ebp - 0x2c]
mov eax, 0x40c968
mov edx, 4
call fcn.00403d4c
jmp 0x40a443
push 0x40a660
push dword [0x40c960]
push 0x40a654
lea eax, [ebp - 0x30]
mov edx, dword [0x40b3b8]
mov edx, dword [edx]
call fcn.00403be8
push dword [ebp - 0x30]
mov eax, 0x40c968
mov edx, 4
call fcn.00403d4c
push 0x40c948
push 0x40c904
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0x40c864
push 0x40c864
mov eax, dword [0x40c968]
call fcn.00403de8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x40a4a8
push 0xffffffffffffffff
mov eax, dword [0x40c948]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x40c964
mov eax, dword [0x40c948]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x40c948]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40c94c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40c960]
call fcn.00403de8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x40b2c0]
mov edx, dword [0x40c964]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a4ee
mov eax, dword [0x40c8fc]
call fcn.00403050
mov eax, dword [0x40c900]
call fcn.00403050
ret