Function at 0x41263f
Capabilities:
Create process on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edi
mov esi, edx
mov dword [ebp - 8], ebx
call fcn.00413d4d
push edi
lea ecx, [ebp - 8]
call fcn.00413ece
test eax, eax
js 0x4128cf
push 2
push 0x408048
lea ecx, [ebp - 8]
call fcn.00413d81
test eax, eax
js 0x4128cf
cmp dword [0x43532c], 1
lea ecx, [ebp - 8]
jne 0x412756
push 1
mov edi, 0x408044
push edi
call fcn.00413d81
test eax, eax
js 0x4128cf
push esi
lea ecx, [ebp - 8]
call fcn.00413ece
test eax, eax
js 0x4128cf
push 1
push edi
lea ecx, [ebp - 8]
call fcn.00413d81
test eax, eax
js 0x4128cf
push 0x44
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.00419ee0
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
mov ecx, eax
mov dword [ebp - 0x6c], eax
call fcn.0041758a
mov dword [ebp - 0xc], eax
test eax, eax
je 0x412729
or dword [ebp - 0x7c], 0x100
push 0xfffffffffffffff4
call esi
push 0xfffffffffffffff6
mov dword [ebp - 0x68], eax
call esi
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 4]
call fcn.004133dd
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
push 0x408050
call edi
mov esi, eax
lea ecx, [ebp - 4]
test esi, esi
jne 0x412766
call fcn.00413430
mov esi, dword [ebp - 4]
jmp 0x41280c
push dword [0x435328]
call fcn.00413ece
jmp 0x4126c9
push esi
call fcn.004134e4
push esi
push eax
push 0x408050
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00413404
lea ecx, [ebp - 4]
call fcn.004131d3
lea ecx, [ebp - 4]
call fcn.00413281
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
jl 0x41280c
push 0x408168
push esi
call fcn.0041972e
pop ecx
pop ecx
test eax, eax
je 0x41280c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x41280c
push 0x15
push eax
lea ecx, [ebp - 4]
call fcn.004132a9
lea ecx, [ebp - 4]
call fcn.004131d3
mov esi, dword [ebp - 4]
mov ecx, 0x40cad4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4127f4
test dx, dx
je 0x4127f0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4127f4
add eax, 4
add ecx, 4
test dx, dx
jne 0x4127ce
mov eax, ebx
jmp 0x4127f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412800
push ebx
jmp 0x412801
push esi
push 0x408050
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412896
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], eax
call ebx
push dword [ebp - 0x20]
call ebx
xor ebx, ebx
cmp dword [ebp - 0xc], 0x2e4
jne 0x4128b9
push 0x3c
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00419ee0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], 0x100
push eax
mov dword [ebp - 0x50], 0x408070
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
jmp 0x4128b9
cmp dword [ebp - 0xc], ebx
je 0x4128a6
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x20]
call ebx
xor ebx, ebx
inc ebx
lea ecx, [esi - 0x10]
call fcn.00411193
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
push eax
call fcn.0041692d
int3