Function at 0x40a5c2
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x3c
call fcn.0040be95
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x208
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.0040cbc0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a645
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.0040cbc0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a67c
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esp
push 0x104
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a692
add eax, 8
push eax
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a6be
push 0xb6
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0x104
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a6d0
add eax, 8
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a6db
add eax, 8
push eax
xor eax, eax
call dword [0x41367a]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a702
push 0xf7
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a7a7
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.COMSPEC
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040592c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a73f
push ebx
call fcn.0040be9b
add esp, 4
mov dword [ebp - 0x2c], esp
push 0x104
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a751
add eax, 8
push eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40a75c
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40a783
push 0x189
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a796
push ebx
call fcn.0040be9b
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x40a7a7
mov eax, 1
jmp 0x40a7ac
mov eax, 0
test eax, eax
je 0x40ac85
fild dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4122cb]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004010ad
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40a7e9
mov eax, 0x4122c3
push eax
push 2
mov ebx, 0x1a0
call fcn.0040cbf0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push 0x413116
push dword [ebp - 0x2c]
push 0x41312c
mov ecx, 3
call fcn.00401c2d
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a82c
push ebx
call fcn.0040be9b
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a840
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0x3c
mov ebx, dword [ebp - 0x18]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.Open
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040592c
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a89e
push ebx
call fcn.0040be9b
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a8b4
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a8dd
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040be95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a8f0
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a919
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040be95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a92c
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov eax, 0x4122c3
test eax, eax
je 0x40a957
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040be95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a96a
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x1c
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0x40
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 0x18]
push eax
push 0x3c
call fcn.0040be95
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a9dc
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a9ed
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a9fe
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40aa0f
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40aa3e
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40aa91
push 0x5cd
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x20]
push ebx
mov edi, dword [ebp - 0x24]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
add edi, 0x10
add ebx, 0x10
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
add edi, 4
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040be9b
add esp, 4
pop eax
test eax, eax
je 0x40ac85
mov ebx, dword [ebp - 0x18]
add ebx, 0x38
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0x40
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40ab56
push 0x642
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40ab7f
push 0x6f0
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x100
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40abb3
push 0x6f0
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40abdc
push 0x71b
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0xf
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40ac10
push 0x71b
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.00405bf5
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push 1
push 4
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40ac57
push 0x7a2
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ac95
push ebx
call fcn.0040be9b
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40aca5
push ebx
call fcn.0040be9b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40acb5
push ebx
call fcn.0040be9b
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40accc
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ace0
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40acf4
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ad08
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ad1c
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
call fcn.0040be9b
add esp, 4
mov esp, ebp
pop ebp
ret