Function at 0x1400061c0
Capabilities:
Set tcp connection state

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rbp + 8], rax
xor r12b, r12b
xor r15d, r15d
mov r13d, r8d
mov r14, rdx
mov rsi, rcx
mov dil, 1
test r8d, r8d
je 0x140006481
mov qword [rsp + 0x160], rbx
lea ebx, [r15 + 5]
nop word [rax + rax]
mov rcx, qword [r14]
cmp dword [rcx], 0x11
jne 0x140006445
cmp dword [rcx + 0x34], 5
jne 0x140006445
mov dword [rbp - 0x10], 0xc
mov eax, dword [rcx + 8]
mov dword [rbp - 0xc], eax
movzx eax, word [rcx + 0x18]
ror ax, 8
movzx eax, ax
mov dword [rbp - 8], eax
mov eax, dword [rcx + 0x20]
mov dword [rbp - 4], eax
movzx eax, word [rcx + 0x30]
lea rcx, [rbp - 0x10]
ror ax, 8
movzx eax, ax
mov dword [rbp], eax
call qword [sym.imp.IPHLPAPI.DLL_SetTcpEntry]
test eax, eax
je 0x140006445
xor dil, dil
cmp eax, 0x13d
cmove eax, ebx
test r12b, r12b
jne 0x140006416
test eax, eax
jle 0x140006297
movzx eax, ax
or eax, 0xc0070000
lea r9, [rsp + 0x30]
mov r8d, eax
lea rdx, str.Unable_to_close_the_TCP_connection
mov rcx, rsi
call fcn.140001910
test al, al
je 0x140006416
nop word [rax + rax]
cmp byte [rsp + 0x30], dil
je 0x140006411
mov rcx, qword [0x1402185c0]
test rcx, rcx
jne 0x1400062ea
mov ebx, 0xc0000037
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x140006394
mov eax, dword [rbp - 0x10]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x40]
mov eax, dword [rbp - 0xc]
mov dword [rsp + 0x74], eax
mov eax, dword [rbp - 8]
mov dword [rsp + 0x78], eax
mov eax, dword [rbp - 4]
mov dword [rsp + 0x7c], eax
mov eax, dword [rbp]
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x68], 9
mov qword [rsp + 0x40], 0xb00088
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
test eax, eax
jns 0x14000635a
mov ebx, eax
cmp eax, 0xc0000022
je 0x140006376
nop word [rax + rax]
cmp eax, 0xc0000005
je 0x140006376
mov eax, ebx
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x140006384
movzx eax, bx
jmp 0x14000637e
mov ebx, dword [rsp + 0x6c]
mov eax, ebx
test ebx, ebx
js 0x140006333
mov dil, 1
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
mov ebx, 5
jmp 0x140006445
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop
test eax, eax
jne 0x14000638d
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x140006394
mov ecx, eax
call sym.ProcessHacker.exe_PhGetWin32Message
lea r9, str.Unable_to_close_the_TCP_connection
mov rbx, rax
mov rcx, rsi
test rax, rax
je 0x1400063f1
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov r8d, 0xfffe
lea rax, [0x1401b439c]
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhShowMessage2
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140006405
nop
call fcn.140106290
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
mov ebx, 5
jmp 0x140006445
lea r8, [0x1401c7ff8]
mov edx, 0x10
call sym.ProcessHacker.exe_PhShowMessage
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
mov ebx, 5
jmp 0x140006445
mov r12b, 1
jmp 0x140006445
lea rax, str.Make_sure_Process_Hacker_is_running_with_administrative_privileges.
mov edx, 1
lea r9, str.Unable_to_close_the_TCP_connection.
mov qword [rsp + 0x20], rax
mov r8d, 0xfffe
mov rcx, rsi
call sym.ProcessHacker.exe_PhShowMessage2
nop dword [rax]
cmp eax, 1
jne 0x140006455
inc r15d
add r14, 8
cmp r15d, r13d
jb 0x140006220
mov rbx, qword [rsp + 0x160]
movzx eax, dil
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140161390
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
nop
ret
movzx eax, dil
jmp 0x140006461