Function at 0x401d40
Capabilities:
Create process on windows
Move file
Set current directory
Set environment variable

Disassembly:
mov eax, 0x30058
call fcn.004148f0
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0x30050], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0x44
push ebx
xorps xmm0, xmm0
lea eax, [esp + 0x1005c]
push ebx
push str.__sStarVPN.exe____s_resources_app.asarpackages_servicedistindex.js_
push 0x7fff
push eax
mov esi, edx
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movups xmmword [0x41e480], xmm0
call fcn.00401050
add esp, 0x14
test eax, eax
js 0x401f30
push 0x41b3b8
push 0x41b3bc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x401f3a
push ebx
push str.directory_s_n
call fcn.00401aa0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x401f44
push esi
push str._s_servicelog.txt
lea eax, [esp + 0x60]
push 0x7fff
push eax
call fcn.00401050
add esp, 0x10
test eax, eax
js 0x401f4e
push esi
push str._s_servicelog.prev.txt
lea eax, [esp + 0x20060]
push 0x7fff
push eax
call fcn.00401050
add esp, 0x10
test eax, eax
js 0x401f58
push 1
lea eax, [esp + 0x2005c]
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 2
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f62
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x4c]
push 2
push 1
push 0
push eax
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x401f6c
push 2
push 1
push 0
lea eax, [esp + 0x5c]
push eax
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x401f76
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
or dword [esp + 0x3c], 0x100
lea eax, [esp + 0x10058]
push eax
push str.cmd_s_n
call fcn.00401aa0
add esp, 8
lea eax, [esp + 0x10]
push 0x41e480
push eax
push ebx
push 0
push 0x10
push 1
push 0
push 0
lea eax, [esp + 0x10078]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401f80
push dword [esp + 0x4c]
call edi
push dword [esp + 0x50]
call edi
mov ecx, dword [esp + 0x3005c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401f8e
add esp, 0x30058
ret
mov ecx, str.service_main_thread.cmd
call fcn.00401bf0
mov ecx, str.service_main_thread.SetEnvironmentVariableW
call fcn.00401bf0
mov ecx, str.service_main_thread.SetCurrentDirectoryW
call fcn.00401bf0
mov ecx, str.service_main_thread.flog
call fcn.00401bf0
mov ecx, str.service_main_thread.flogold
call fcn.00401bf0
mov ecx, str.service_main_thread.CreateFile_flog
call fcn.00401bf0
mov ecx, str.service_main_thread.DuplicateHandle_hStdOutput
call fcn.00401bf0
mov ecx, str.service_main_thread.DuplicateHandle_hStdError
call fcn.00401bf0
push esi
call edi
mov ecx, str.service_main_thread.CreateProcess
call fcn.00401bf0
int3