Function at 0x1800173d0
Capabilities:
Set tcp connection state

Disassembly:
jmp 0x180030ae0
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 [0x1805a6200]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x31], 0
mov dword [rsp + 0x38], 0
jmp 0x180030b40
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x38], eax
jae 0x180030d0e
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
cmp dword [rax], 0x11
jne 0x180030b7c
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x34], 5
je 0x180030b7e
jmp 0x180030b36
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.180011650
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.180011650
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 0x180030d09
mov byte [rsp + 0x30], 0
cmp dword [rsp + 0x34], 0x13d
jne 0x180030c25
mov dword [rsp + 0x34], 5
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x180030cd7
cmp dword [rsp + 0x34], 0
jg 0x180030c46
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x90], eax
jmp 0x180030c60
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.180004330
movzx eax, al
test eax, eax
je 0x180030cd7
movzx eax, byte [rsp + 0x74]
test eax, eax
je 0x180030cd0
lea rcx, [rsp + 0x48]
call fcn.18000d650
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jl 0x180030cad
mov byte [rsp + 0x30], 1
jmp 0x180030cc9
xor r9d, r9d
mov r8d, dword [rsp + 0x64]
lea rdx, str.Unable_to_close_the_TCP_connection
mov rcx, qword [rsp + 0xb0]
call sym.ProcessMonitor.dll_PhShowStatus
call sym.ProcessMonitor.dll_PhUiDisconnectFromPhSvc
jmp 0x180030cd5
mov byte [rsp + 0x31], 1
jmp 0x180030d09
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.ProcessMonitor.dll_PhShowMessage2
cmp eax, 1
je 0x180030d09
jmp 0x180030d0e
jmp 0x180030b36
movzx eax, byte [rsp + 0x30]
mov edi, eax
mov rcx, rsp
lea rdx, [0x18039ae80]
call fcn.180014e20
mov eax, edi
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18000ce90
add rsp, 0xa0
pop rdi
ret