Function at 0x40a1e0
Capabilities:
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462756
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x47b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.0043a680
add esp, 0xc
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.0040a490
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0043a680
add esp, 0xc
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40a471
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
push 0x4709a4
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 1
push str.CO_sEC
push eax
call fcn.00406780
mov esi, dword [ebp - 0x424]
add esp, 0xc
or ebx, 0xffffffff
cmp dword [ebp - 0x42c], 0
je 0x40a401
push 0x104
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40a401
cmp dword [ebp - 0x428], 7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x43c]
cmova eax, dword [ebp - 0x43c]
push 0x208
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x478], 0x3c
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], str.Open
call fcn.0043a680
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40a47b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x47c]
call fcn.004062e0
test al, al
jne 0x40a386
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a364
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.004065f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x460], eax
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a3ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x45c], 0
push eax
mov dword [ebp - 0x474], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a401
push 0x40
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a41a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x428]
cmp ecx, 7
jbe 0x40a456
mov edx, dword [ebp - 0x43c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a44c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a485
push ecx
push edx
call fcn.00438aa2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438436
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022c0
push 0x80004005
call fcn.004022c0
call fcn.00442b30
int3