Function at 0x140017ec0
Capabilities:
Set tcp connection state

Disassembly:
jmp 0x140031870
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x30]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x31], 0
mov dword [rsp + 0x38], 0
jmp 0x1400318d0
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x38], eax
jae 0x140031a9e
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
cmp dword [rax], 0x11
jne 0x14003190c
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x34], 5
je 0x14003190e
jmp 0x1400318c6
mov dword [rsp + 0x48], 0xc
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
movzx ecx, word [rax + 0x18]
call fcn.140011e40
movzx eax, ax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
movzx ecx, word [rax + 0x30]
call fcn.140011e40
movzx eax, ax
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.IPHLPAPI.DLL_SetTcpEntry]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140031a99
mov byte [rsp + 0x30], 0
cmp dword [rsp + 0x34], 0x13d
jne 0x1400319b5
mov dword [rsp + 0x34], 5
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x140031a67
cmp dword [rsp + 0x34], 0
jg 0x1400319d6
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x90], eax
jmp 0x1400319f0
mov eax, dword [rsp + 0x34]
and eax, 0xffff
or eax, 0x70000
or eax, 0xc0000000
mov dword [rsp + 0x90], eax
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x90]
lea rdx, str.Unable_to_close_the_TCP_connection
mov rcx, qword [rsp + 0xb0]
call fcn.140004440
movzx eax, al
test eax, eax
je 0x140031a67
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x140031a60
lea rcx, [rsp + 0x48]
call fcn.14000dc20
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jl 0x140031a3d
mov byte [rsp + 0x30], 1
jmp 0x140031a59
xor r9d, r9d
mov r8d, dword [rsp + 0x64]
lea rdx, str.Unable_to_close_the_TCP_connection
mov rcx, qword [rsp + 0xb0]
call sym.ProcessHacker.exe_PhShowStatus
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
jmp 0x140031a65
mov byte [rsp + 0x31], 1
jmp 0x140031a99
lea rax, str.Make_sure_Process_Hacker_is_running_with_administrative_privileges.
mov qword [rsp + 0x20], rax
lea r9, str.Unable_to_close_the_TCP_connection.
mov r8d, 0xfffe
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call sym.ProcessHacker.exe_PhShowMessage2
cmp eax, 1
je 0x140031a99
jmp 0x140031a9e
jmp 0x1400318c6
movzx eax, byte [rsp + 0x30]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1403c61a0]
call fcn.140015750
mov eax, edi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14000d430
add rsp, 0xa0
pop rdi
ret