Function at 0x4866c0
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2b0
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x2a8], eax
lea esi, [esp + 0x118]
push 0x190
push 0
push esi
call fcn.004ec220
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x486706
mov ecx, ebx
mov eax, dword [ebx]
push 0xc8
push eax
push esi
call fcn.00491810
add esp, 0xc
push esi
call fcn.004117a0
add esp, 4
cmp byte [edi + 0x1d], 0
je 0x48679a
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x486734
and eax, 0x7f
jmp 0x486739
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
test eax, eax
js 0x486e63
mov bl, byte [edi]
mov bh, byte [edi + 0x1c]
test ecx, ecx
jne 0x486752
test eax, eax
jne 0x486e52
lea edi, [esp + 0xa0]
push eax
push ecx
push edi
call fcn.0049fad0
add esp, 0xc
movzx eax, bl
movzx esi, bh
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edx, edi
push eax
push esi
call fcn.00486360
add esp, 8
mov ecx, edi
call fcn.0049f880
mov ecx, dword [esp + 0x2a8]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [0x54a338]
xor ebx, ebx
dec ebx
mov byte [esp + 7], al
test al, 0x19
jne 0x486ec3
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
lea edi, [esp + 0xf4]
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
lea esi, [esp + 0xa0]
push 0x103
push str.launch_win.cc
push str.LaunchProcess
push esi
call fcn.0049a500
add esp, 0x10
mov ecx, edi
push 0x55acd4
push esi
call fcn.004b8ab0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x100], xmm0
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x3c], xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ecx, [esp + 0xa0]
call fcn.004b8d10
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x4a], 0
mov edx, 0
je 0x48684d
call fcn.004e1db0
xor edx, edx
cmp eax, 0x10
setge dl
mov ecx, dword [esi + 0x24]
xor eax, eax
cmp ecx, dword [esi + 0x28]
setne al
add eax, edx
mov ebx, dword [ebp + 8]
je 0x4868fb
lea ecx, [esp + 0xa0]
push eax
call fcn.004b8d70
mov ecx, 0x80000
test al, al
jne 0x4868fd
mov ecx, ebx
push 0
call fcn.00485cc0
lea ecx, [esp + 0xa0]
call fcn.004b8d40
lea ecx, [esp + 0xf4]
call fcn.004b8be0
test byte [esp + 7], 0x19
mov eax, dword [esp + 0x1c]
je 0x486782
cmp byte [eax], 0
je 0x486782
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xa4], ecx
sub esp, 0x10
movq xmm0, qword [esp + 0xb0]
movq qword [esp + 8], xmm0
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00482650
add esp, 0x10
jmp 0x486782
mov ebx, dword [ebp + 8]
jmp 0x48687d
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp byte [esi + 0x4a], 0
je 0x486938
call fcn.004e1db0
cmp eax, 0x10
jl 0x486938
lea eax, [esp + 0x100]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0xa0]
push 0x10
push eax
push 0x20007
call fcn.004b8e20
test al, al
je 0x48687d
cmp dword [esi + 0x20], 1
mov ebx, dword [esi + 0x24]
sete cl
mov edi, dword [esi + 0x28]
cmp ebx, edi
je 0x486997
cmp edi, ebx
js 0x4868f6
xor esi, esi
inc esi
push esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x486e81
add ebx, 4
cmp ebx, edi
jne 0x486950
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x28]
sub edx, eax
je 0x486e3c
lea ecx, [esp + 0xa0]
push edx
push eax
push 0x20002
call fcn.004b8e20
mov cl, 1
test al, al
je 0x4868f6
mov edi, dword [ebp + 0x10]
cmp byte [edi + 0x1e], 0
je 0x4869a8
or byte [esp + 0xd0], 0x80
mov byte [esp], cl
cmp byte [edi + 0x34], 0
je 0x4869bc
mov dword [esp + 0xac], 0x52b30c
mov eax, dword [esp + 0xd0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xd0], ecx
movzx ecx, byte [edi + 0x1c]
xor ecx, 1
mov word [esp + 0xd4], cx
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x40]
mov esi, dword [edi + 0x44]
test ecx, ecx
mov ebx, dword [ebp + 8]
jne 0x4869f6
test edx, edx
jne 0x4869f6
test esi, esi
je 0x486a45
mov edi, dword [edi + 0x24]
mov dword [esp + 8], esi
mov esi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x28]
mov esi, dword [esp + 8]
mov edi, dword [ebp + 0x10]
jne 0x486a24
test ecx, ecx
je 0x486f45
test edx, edx
je 0x486f48
test esi, esi
je 0x486f4b
or eax, 0x101
mov dword [esp + 0xd0], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], esi
cmp dword [edi + 0x38], 0
je 0x486a96
call fcn.004e1db0
mov edx, dword [esp + 0xc]
lea ecx, [edx + 0x1000000]
cmp eax, 5
cmovl edx, ecx
mov ecx, dword [ebp + 0xc]
mov esi, edx
or esi, 0x1000000
cmp byte [edi + 0x48], 0
cmove esi, edx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movzx eax, byte [edi + 0x1b]
test al, al
js 0x486b15
lea edx, [edi + 0x10]
and eax, 0x7f
jmp 0x486b1b
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
jmp 0x486a63
mov dword [esp + 8], esi
cmp ebx, 0x7ffffff8
jae 0x486f3c
mov esi, ebx
or esi, 3
inc esi
js 0x486f37
lea eax, [esi + esi]
push eax
call fcn.004e82a5
add esp, 4
mov dword [esp + 0x70], eax
or esi, 0x80000000
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov esi, dword [esp + 8]
jmp 0x486af0
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
cmp ebx, 4
ja 0x486a9f
lea eax, [esp + 0x70]
mov byte [eax + 0xb], bl
cmp eax, edi
ja 0x486b02
lea ecx, [eax + ebx*2]
add ecx, 2
cmp ecx, edi
ja 0x486e26
inc ebx
add ebx, ebx
push ebx
push edi
push eax
call fcn.004ebca0
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x486b4a
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
test eax, eax
cmove edx, eax
xor eax, eax
dec eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
cmp byte [ecx + 0xb], 0
mov dword [esp + 0xc], edx
js 0x486adf
mov eax, dword [ecx + 8]
mov dword [esp + 0x78], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x70], xmm0
lea edi, [esp + 0xa4]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x486b98
xor ecx, ecx
lea edx, [esp + 0x30]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x486dbc
or esi, 0x400
mov ecx, dword [esp + 0x30]
movzx eax, byte [esp]
mov dword [esp], eax
cmp byte [esp + 0x7b], 0
jns 0x486ca4
mov edx, dword [esp + 0x70]
jmp 0x486ca8
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov cl, byte [edx + 0x58]
test cl, cl
jne 0x486bd0
cmp dword [edx + 0x54], 0
jne 0x486bd0
mov cl, byte [esp]
movzx ecx, cl
mov dword [esp], ecx
cmp byte [esp + 0x7b], 0
js 0x486c61
lea edx, [esp + 0x70]
jmp 0x486c65
mov dword [esp + 8], esi
test cl, cl
je 0x486c22
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea esi, [esp + 0x60]
push eax
push 0x5333ce
push esi
call fcn.004b8e50
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [esi]
movq qword [esp + 0x30], xmm0
cmp byte [esp + 0x3b], 0
mov cl, byte [esp]
mov esi, dword [esp + 8]
js 0x486c16
lea eax, [esp + 0x30]
jmp 0x486c1a
mov eax, dword [esp + 0x30]
or esi, 0x400
jmp 0x486bb6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x486dbc
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea ebx, [esp + 0x60]
push eax
push esi
push ebx
call fcn.004b8e50
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x38], eax
movq xmm0, qword [ebx]
movq qword [esp + 0x30], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x486c02
mov edx, dword [esp + 0x70]
xor ebx, ebx
lea ecx, [esp + 0x80]
push ecx
push edi
push dword [esp + 0x14]
push eax
push esi
push dword [esp + 0x14]
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x486dc7
cmp byte [esp + 0x3b], 0
mov ebx, dword [ebp + 8]
jns 0x486ce3
push dword [esp + 0x30]
call fcn.004e82d5
add esp, 4
jmp 0x486ce3
lea edx, [esp + 0x70]
xor ebx, ebx
lea eax, [esp + 0x80]
push eax
push edi
push dword [esp + 0x14]
push ecx
push esi
push dword [esp + 0x14]
push ebx
push ebx
push edx
push ebx
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x30]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov ebx, dword [ebp + 8]
test edi, edi
je 0x486dbc
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x60]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x80]
push eax
call fcn.004b9190
mov eax, dword [esi + 0x38]
test eax, eax
je 0x486d19
push dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x486de8
cmp byte [esi + 0x49], 0
je 0x486d32
push dword [esp + 0x60]
call fcn.004861b0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x486d86
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x20]
push 0x1c2
push str.launch_win.cc
push str.LaunchProcess
push esi
call fcn.0049a500
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00490060
push 0xffffffffffffffff
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004900e0
lea ecx, [esp + 0x60]
call fcn.004b9370
mov ecx, ebx
push eax
call fcn.00485cc0
lea ecx, [esp + 0x60]
call fcn.004b92e0
cmp byte [esp + 0x7b], 0
jns 0x486886
push dword [esp + 0x70]
call fcn.004e82d5
add esp, 4
jmp 0x486886
mov ecx, ebx
push 0
call fcn.00485cc0
jmp 0x486da0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00485cc0
cmp byte [esp + 0x3b], 0
jns 0x486da0
push dword [esp + 0x30]
call fcn.004e82d5
add esp, 4
jmp 0x486da0
lea edi, [esp + 0x30]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x60]
call fcn.004b9370
mov ecx, edi
push eax
call fcn.00485cc0
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.00485dd0
mov ecx, ebx
push 0
call fcn.00485cc0
mov ecx, edi
call fcn.004854f0
jmp 0x486d97
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1____n
push 0x13b
push str....._third_partylibc_srcinclude__stringchar_traits.h
jmp 0x486e77
push str.vector___index_out_of_bounds
push 0x52a71f
push 0x60b
push str....._third_partylibc_srcinclude_vector
jmp 0x486e77
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
jmp 0x486e72
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
push 0x13e
push str.launch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x3c]
push eax
call fcn.0049a500
add esp, 0x10
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.004a1db0
add esp, 8
lea ecx, [esp + 0x9c]
call fcn.004a1e20
jmp 0x486962
lea esi, [esp + 0xa0]
push esi
call fcn.004e21e0
add esp, 4
call fcn.004e2440
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x54a338
mov dword [esp], 0x58
call fcn.00482530
add esp, 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], str.LaunchProcess
mov dword [esp + 0x1c], 0x54a338
jmp 0x4867c2
call fcn.00516400
lea ecx, [esp + 0x70]
call fcn.004148d0
int3
int3
int3