Function at 0x451820
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fb972
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x134c
call fcn.00498cf0
mov eax, dword [0x5344a8]
xor eax, esp
mov dword [esp + 0x1348], eax
push ebx
push esi
push edi
mov eax, dword [0x5344a8]
xor eax, esp
push eax
lea eax, [esp + 0x1360]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x1c], esi
mov edi, edi
mov eax, dword [esi + 0x90]
lea ecx, [esp + 0xa4]
push ecx
mov edi, 0x51c21c
mov dword [esp + 0x18], eax
call fcn.004064b0
xor edi, edi
mov dword [esp + 0x1368], edi
cmp dword [esi + 8], 4
jne 0x4518bc
mov edx, dword [esi + 0x94]
push 3
mov eax, 0x51c224
lea esi, [esp + 0xa8]
mov dword [esp + 0x18], edx
call fcn.004086a0
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0x44
lea edx, [esp + 0x60]
push edi
push edx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x150], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
call fcn.0048ba50
xor eax, eax
mov dword [ebx + 0x13c], eax
mov dword [ebx + 0x140], eax
mov dword [ebx + 0x144], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
add esp, 0xc
mov dword [ebx + 0x148], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x44]
push 1
mov ecx, eax
push ecx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push edi
push 1
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 2
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x38]
push eax
call edi
mov ecx, dword [esp + 0x38]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 0
push 0
lea edx, [esp + 0x4c]
push edx
call edi
push eax
mov eax, dword [esp + 0x34]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
xor edx, edx
push 0x5115e8
lea ecx, [esp + 0xcc]
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x90], 0x101
mov word [esp + 0x94], dx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
mov byte [esp + 0x1368], 1
cmp dword [esi], 1
jne 0x451a3f
push str.__redirect_gateway_def1_bypass_dhcp_bypass_dns
lea ecx, [esp + 0xc8]
call dword [0x501308]
cmp dword [esi + 8], 3
mov ecx, 8
jne 0x451a95
cmp dword [esi + 0x48], ecx
jb 0x451a54
mov eax, dword [esi + 0x34]
jmp 0x451a57
lea eax, [esi + 0x34]
mov edx, dword [esp + 0xac]
cmp dword [esp + 0xc0], ecx
jae 0x451a6e
lea edx, [esp + 0xac]
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0x148]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x98]
push ecx
push eax
push edx
push str.___service_vpn_exit_0___config_client.o___verb_3___client___dev_tun___keepalive_10_120___cipher_AES_256_CBC___auth_SHA1___auth_user_pass___reneg_sec_0___ping_timer_rem____proto__s___remote__s__d__s
jmp 0x451ade
cmp dword [esi + 0x48], ecx
jb 0x451a9f
mov eax, dword [esi + 0x34]
jmp 0x451aa2
lea eax, [esi + 0x34]
mov edx, dword [esp + 0xac]
cmp dword [esp + 0xc0], ecx
jae 0x451ab9
lea edx, [esp + 0xac]
sub esp, 0x84
mov edi, esp
mov ecx, 0x21
lea esi, [esp + 0x148]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x98]
push ecx
push eax
push edx
push str.___service_vpn_exit_0___config_client.o___client___dev_tun___persist_key___persist_tun___auth_user_pass___ns_cert_type_server___comp_lzo___reneg_sec_0___ping_timer_rem___verb_3___explicit_exit_notify_2___proto__s___remote__s__d__s
lea edx, [esp + 0x1e0]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.LibDui.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
add esp, 0x98
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [ebx + 0x34]
call esi
push eax
push 0
push 0x10
push 1
push 0
push 0
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [ebx + 0xb8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x451ce0
push str.vpn_exit
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [ebx + 0x14c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [esp + 0x1c]
mov edi, 8
cmp dword [esi + 0x88], edi
jb 0x451b67
mov eax, dword [esi + 0x74]
jmp 0x451b6a
lea eax, [esi + 0x74]
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0046ef40
add esp, 4
mov byte [esp + 0x1388], 2
cmp dword [esi + 0x68], edi
jb 0x451b8e
mov esi, dword [esi + 0x54]
jmp 0x451b91
add esi, 0x54
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x98], esp
push esi
call fcn.0046ef40
mov edx, dword [esp + 0x64]
mov eax, dword [ebx + 0x14c]
mov ecx, dword [esp + 0x70]
add esp, 4
push edx
push eax
push ebx
lea edx, [esp + 0x3a0]
mov byte [esp + 0x13b4], 1
call fcn.00451e70
mov ecx, dword [ebx + 0x14c]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebx + 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [ebx + 0x14c]
push edx
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x13c]
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp edi, 3
jne 0x451d60
mov ecx, ebx
call fcn.00452d60
cmp eax, 1
jne 0x451d65
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1368], 0
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov dword [esp + 0x1368], 0xffffffff
cmp dword [esp + 0xc0], 8
jb 0x451c6e
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00479ac0
add esp, 4
xor edx, edx
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], esi
mov word [esp + 0xb0], dx
call fcn.00477370
mov eax, dword [esp + 0xa4]
cmp eax, 0xfffffffd
je 0x451cce
cmp eax, esi
je 0x451cc7
jmp 0x451cb0
mov dword [eax], esi
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 4]
mov dword [esp + 0xa4], eax
cmp eax, esi
jne 0x451cb0
mov dword [esp + 0xa4], esi
lea ecx, [esp + 0x3c]
call fcn.004773b0
mov esi, dword [esp + 0x1c]
jmp 0x451870
mov ecx, dword [ebx + 0x150]
mov edx, dword [ebx + 0x2c]
push 0
push 2
push ecx
call edx
add esp, 0xc
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1368], 0
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov dword [esp + 0x1368], 0xffffffff
cmp dword [esp + 0xc0], 8
jb 0x451d2d
mov eax, dword [esp + 0xac]
push eax
call fcn.00479ac0
add esp, 4
xor ecx, ecx
mov word [esp + 0xac], cx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
call fcn.00401050
xor eax, eax
jmp 0x451e43
cmp edi, 6
je 0x451dbd
mov edx, dword [ebx + 0x150]
mov eax, dword [ebx + 0x2c]
push edi
push 2
push edx
call eax
add esp, 0xc
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1368], 0
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov dword [esp + 0x1368], 0xffffffff
cmp dword [esp + 0xc0], 8
jb 0x451db1
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00479ac0
add esp, 4
xor edx, edx
mov word [esp + 0xac], dx
jmp 0x451e20
mov eax, dword [ebx + 0x150]
mov ecx, dword [ebx + 0x2c]
push esi
push 3
push eax
call ecx
add esp, 0xc
push 0x5129ac
call fcn.00451590
add esp, 4
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1368], 0
call dword [sym.imp.LibDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov dword [esp + 0x1368], 0xffffffff
cmp dword [esp + 0xc0], 8
jb 0x451e16
mov edx, dword [esp + 0xac]
push edx
call fcn.00479ac0
add esp, 4
xor eax, eax
mov word [esp + 0xac], ax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], esi
call fcn.00401050
mov eax, 1
mov ecx, dword [esp + 0x1360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1348]
xor ecx, esp
call fcn.004797c0
mov esp, ebp
pop ebp
ret 0xc