Function at 0x4060f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416a30
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4bc], esi
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
cmp eax, 1
jne 0x40637a
push 0x40
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x4a4], 0x44
push 0
push eax
mov edi, 0x90
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x450], 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x444], 0xc
lea eax, [ebp - 0x4a8]
movq qword [ebp - 0x44c], xmm0
movq qword [ebp - 0x440], xmm0
push 1
push esi
push eax
mov dword [ebp - 0x4a8], 0
call sub.USERENV.dll_CreateEnvironmentBlock
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
mov ecx, 0x490
lea eax, [ebp + 0xc]
cmovne edi, ecx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x4b8], edi
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call esi
push 0x418df8
lea eax, [ebp - 0x218]
push 0x104
push eax
call esi
mov esi, dword [ebp + 0x28]
add esp, 0x18
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x4b4], esi
cmp edi, esi
je 0x40631e
cmp dword [edi + 0x14], 8
mov edx, 0x7ffffffe
mov eax, dword [edi + 0x10]
mov ecx, edi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4ac], edi
jb 0x406231
mov ecx, dword [edi]
mov dword [ebp - 0x4ac], ecx
cmp eax, 8
jae 0x406258
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x424], 7
movups xmmword [ebp - 0x438], xmm0
jmp 0x4062c0
mov esi, eax
lea ecx, [ebp - 0x438]
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, edx
lea eax, [esi + 1]
push eax
call fcn.00402fd0
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x438], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x4ac]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x4b0]
add esp, 0xc
mov dword [ebp - 0x428], eax
cmp esi, 8
lea eax, [ebp - 0x438]
mov dword [ebp - 0x424], esi
cmovae eax, dword [ebp - 0x438]
mov esi, dword [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov edx, dword [ebp - 0x424]
add esp, 0xc
cmp edx, 8
jb 0x406316
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40630c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063a6
push edx
push ecx
call fcn.0040fd80
add esp, 8
add edi, 0x18
jmp 0x4061f1
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x4a4]
push eax
push 0
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x444]
push dword [ebp - 0x4b8]
push 0
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x4bc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x4a8]
test eax, eax
je 0x40637a
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x4063b6
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4063ac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040fd80
add esp, 8
xor eax, eax
mov dword [ebp + 0x1c], 0
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
call fcn.00405920
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fd3f
mov esp, ebp
pop ebp
ret