Function at 0x1400093e0
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 [0x140237008]
xor rax, rsp
mov qword [rbp], rax
xor r12b, r12b
xor r15d, r15d
mov r13d, r8d
mov r14, rdx
mov rsi, rcx
mov dil, 1
test r8d, r8d
je 0x1400096c1
mov qword [rsp + 0x160], rbx
lea ebx, [r15 + 5]
nop word [rax + rax]
mov rcx, qword [r14]
cmp dword [rcx], 0x11
jne 0x140009685
cmp dword [rcx + 0x34], 5
jne 0x140009685
mov dword [rsp + 0x38], 0xc
mov eax, dword [rcx + 8]
mov dword [rsp + 0x3c], eax
movzx eax, word [rcx + 0x18]
ror ax, 8
movzx eax, ax
mov dword [rsp + 0x40], eax
mov eax, dword [rcx + 0x20]
mov dword [rsp + 0x44], eax
movzx eax, word [rcx + 0x30]
lea rcx, [rsp + 0x38]
ror ax, 8
movzx eax, ax
mov dword [rsp + 0x48], eax
call qword [sym.imp.IPHLPAPI.DLL_SetTcpEntry]
test eax, eax
je 0x140009685
xor dil, dil
cmp eax, 0x13d
cmove eax, ebx
test r12b, r12b
jne 0x140009656
test eax, eax
jle 0x1400094bd
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.1400018e0
test al, al
je 0x140009656
nop dword [rax]
cmp byte [rsp + 0x30], dil
je 0x140009651
mov rcx, qword [0x140246560]
test rcx, rcx
jne 0x14000950b
mov ebx, 0xc0000037
lfence
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x1400095c5
mov eax, dword [rsp + 0x38]
lea r8, [rsp + 0x50]
mov dword [rbp - 0x80], eax
lea rdx, [rsp + 0x50]
mov eax, dword [rsp + 0x3c]
mov dword [rbp - 0x7c], eax
mov eax, dword [rsp + 0x40]
mov dword [rbp - 0x78], eax
mov eax, dword [rsp + 0x44]
mov dword [rbp - 0x74], eax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x70], eax
mov dword [rsp + 0x78], 9
mov qword [rsp + 0x50], 0xb00088
call qword [sym.imp.ntdll.dll_NtRequestWaitReplyPort]
test eax, eax
jns 0x14000957a
mov ebx, eax
cmp eax, 0xc0000022
je 0x140009596
nop dword [rax]
cmp eax, 0xc0000005
je 0x140009596
mov eax, ebx
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x1400095aa
movzx eax, bx
jmp 0x1400095a6
mov ebx, dword [rsp + 0x7c]
mov eax, ebx
test ebx, ebx
js 0x140009555
mov dil, 1
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
mov ebx, 5
jmp 0x140009685
lfence
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x1400095b6
lfence
mov ecx, ebx
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x1400095c5
lfence
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 0x140009631
lfence
lfence
mov rax, qword [rax + 8]
mov edx, 0x20
mov qword [rsp + 0x28], rax
mov r8d, 0xfffe
lea rax, [0x1401b8d58]
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 0x140009645
lfence
call fcn.1400fbcc0
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
mov ebx, 5
jmp 0x140009685
lea r8, [0x1401efb68]
mov edx, 0x10
call sym.ProcessHacker.exe_PhShowMessage
call sym.ProcessHacker.exe_PhUiDisconnectFromPhSvc
mov ebx, 5
jmp 0x140009685
mov r12b, 1
jmp 0x140009685
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 0x140009695
inc r15d
add r14, 8
cmp r15d, r13d
jb 0x140009440
mov rbx, qword [rsp + 0x160]
movzx eax, dil
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401848a0
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx eax, dil
jmp 0x1400096a1