Function at 0x14000a240
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push r13
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15, qword [rcx + 0x390]
lea rbx, [rcx + 0x88]
xor r13d, r13d
xorps xmm0, xmm0
mov dword [rbp - 0x74], r13d
xorps xmm1, xmm1
mov qword [rbp - 0x68], r13
mov rsi, rcx
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x50], xmm1
mov word [rbp + 0x40], r13w
mov dword [rbp + 0x54], r13d
mov word [rbp + 0x58], r13w
movdqu xmmword [rbp + 0x30], xmm0
movdqu xmmword [rbp + 0x44], xmm0
test rbx, rbx
je 0x14000a9c9
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14000a9c9
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x14000a9c9
mov rax, qword [rbx]
mov ecx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000a9c9
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x40], 0xffffffffffffffff
mov eax, r13d
movups xmmword [rbp - 0x28], xmm0
mov qword [rsp + 0x1a8], rdi
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
mov dword [rbp - 0x38], r13d
mov dword [rbp - 0x34], r13d
mov dword [rbp - 0x30], r13d
xchg dword [rbp - 0x2c], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x70], ecx
cmp eax, ecx
je 0x14000a358
mov eax, dword [rbx + 0xc]
cmp eax, ecx
je 0x14000a358
mov rax, qword [rbx]
mov ecx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000a358
lock inc dword [rbx + 0x14]
mov rcx, qword [rbx]
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lock dec dword [rbx + 0x14]
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbp - 0x40], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [rbx + 8]
mov edi, eax
neg edi
mov dword [rsp + 0x78], r13d
cmp ecx, 1
je 0x14000a3bb
mov ecx, dword [rbx + 0xc]
cmp ecx, 1
je 0x14000a3bb
mov rcx, qword [rbx]
mov r8d, r13d
dec rcx
cmp rcx, 0xfffffffffffffffd
setbe r8b
cmp r8d, 1
jne 0x14000a3bb
lock inc dword [rbx + 0x14]
mov rcx, qword [rbx]
lea r8, [rsp + 0x78]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lock dec dword [rbx + 0x14]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x14000a9a6
mov eax, dword [rbp - 0x38]
cmp eax, 1
je 0x14000a9a6
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x14000a9a6
mov rax, qword [rbp - 0x40]
mov ecx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000a9a6
lea rcx, [rsi + 0x1b8]
test rcx, rcx
je 0x14000a654
mov eax, dword [rcx + 8]
cmp eax, 1
je 0x14000a654
mov eax, dword [rcx + 0xc]
cmp eax, 1
je 0x14000a654
mov rax, qword [rcx]
mov edx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe dl
cmp edx, 1
jne 0x14000a654
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], r13d
call sym.Launcher.exe_check_tcpsock_rawstate
cmp dword [rsp + 0x60], 0x1f
jne 0x14000a643
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x64], r13d
cmp eax, 1
je 0x14000a4b3
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x14000a4b3
mov rax, qword [rbp - 0x40]
mov ecx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000a4b3
lock inc dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x40]
lea r8, [rsp + 0x64]
lea rdx, [rbp + 8]
mov dword [rsp + 0x64], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14000a4af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lock dec dword [rbp - 0x2c]
mov r9d, dword [rbp + 0xc]
xor eax, eax
mov dword [rbp + 0x54], eax
mov r10d, r9d
mov word [rbp + 0x58], ax
xorps xmm0, xmm0
mov eax, r9d
shr r10d, 0x18
shr eax, 0x10
xorps xmm1, xmm1
movzx r8d, al
mov edx, reloc.WS2_32.dll_recv
mov eax, r9d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r8d
lea r8, str._d._d._d._d
shr eax, 8
movzx ecx, al
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x20]
movzx r9d, r9b
movups xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x42], r13w
movups xmmword [rbp + 0x44], xmm1
call fcn.1400017b0
movzx ecx, word [rbp + 0xa]
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rbp + 0x20]
mov word [rbp + 0x42], ax
call sym.Launcher.exe_store_ipport_fullname
mov dword [0x140045ebc], 1
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000workcomplat_srcmod_net_netinterface.c
mov dword [0x140045ec0], 1
lea r8, [0x140045eb0]
movzx eax, word [rsi + 0x32]
xor edx, edx
mov dword [rsp + 0x40], eax
xor ecx, ecx
lea rax, [rbp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, str.detect__s_try_to_connnect_local_port__d_n
mov qword [rsp + 0x30], rax
lea rax, str.accept_tcp_connect
mov dword [rsp + 0x28], 0x6f7
mov qword [rsp + 0x20], rax
call sym.Launcher.exe_elog_fmt
mov eax, dword [rbp - 0x38]
cmp eax, 1
je 0x14000a9a6
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x14000a9a6
mov rcx, qword [rbp - 0x40]
mov edx, r13d
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
setbe dl
test edx, edx
je 0x14000a9a6
mov edx, 2
mov dword [rbp - 0x38], 1
call qword [sym.imp.WS2_32.dll_shutdown]
nop dword [rax + rax]
xor r9d, r9d
lea rdx, [0x140052d30]
mov r8d, 0x100
lea rcx, [rbp - 0x40]
call sym.Launcher.exe_sock_recv
test eax, eax
jg 0x14000a5d0
mov eax, r13d
lock xadd dword [rbp - 0x2c], eax
test eax, eax
jle 0x14000a617
nop dword [rax]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, r13d
lock xadd dword [rbp - 0x2c], eax
test eax, eax
jg 0x14000a600
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000a62b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x40], 0xffffffffffffffff
mov dword [rbp - 0x30], r13d
mov dword [rbp - 0x34], 1
jmp 0x14000a9a6
lea rcx, [rsi + 0xe0]
call fcn.140009850
jmp 0x14000a9a6
mov qword [rsp + 0x1b0], r12
mov qword [rsp + 0x1b8], r14
test rcx, rcx
je 0x14000a6a8
xorps xmm0, xmm0
mov eax, r13d
movups xmmword [rsi + 0x1c0], xmm0
movups xmmword [rsi + 0x1d0], xmm0
movups xmmword [rsi + 0x1e0], xmm0
movups xmmword [rsi + 0x1f0], xmm0
movups xmmword [rsi + 0x200], xmm0
mov qword [rcx], 0xffffffffffffffff
mov dword [rcx + 8], r13d
mov dword [rcx + 0xc], r13d
mov dword [rcx + 0x10], r13d
xchg dword [rcx + 0x14], eax
lea rdx, [r15 + 0x50]
lea rcx, [rbp - 0x40]
call fcn.1400075a0
mov eax, dword [rbp - 0x38]
lea rbx, [rsi + 0xc0]
mov dword [rsp + 0x68], r13d
cmp eax, 1
je 0x14000a720
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x14000a720
mov rax, qword [rbp - 0x40]
mov ecx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000a720
lock inc dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x40]
lea r8, [rsp + 0x68]
lea rdx, [rbp + 8]
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14000a710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
je 0x14000a71c
movups xmm0, xmmword [rbp + 8]
movups xmmword [rbx], xmm0
lock dec dword [rbp - 0x2c]
lea rdx, [rsi + 0x11c]
mov rcx, rbx
call sym.Launcher.exe_addr2ipport
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x6c], r13d
cmp eax, 1
je 0x14000a787
mov eax, dword [rbp - 0x34]
cmp eax, 1
je 0x14000a787
mov rax, qword [rbp - 0x40]
mov ecx, r13d
dec rax
cmp rax, 0xfffffffffffffffd
setbe cl
cmp ecx, 1
jne 0x14000a787
lock inc dword [rbp - 0x2c]
mov rcx, qword [rbp - 0x40]
lea r8, [rsp + 0x6c]
lea rdx, [rbp - 8]
mov dword [rsp + 0x6c], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14000a783
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lock dec dword [rbp - 0x2c]
lea r14, [rsi + 0x4a]
test r14, r14
je 0x14000a808
mov r8d, dword [rbp - 4]
xor eax, eax
mov r10d, r8d
movzx r9d, r8b
xorps xmm0, xmm0
shr r10d, 0x18
movups xmmword [r14], xmm0
mov dword [rsp + 0x30], r10d
xorps xmm1, xmm1
movups xmmword [r14 + 0x24], xmm1
mov dword [r14 + 0x34], eax
mov word [r14 + 0x38], ax
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r8d
mov dword [rsp + 0x28], edx
lea r8, str._d._d._d._d
shr eax, 8
mov edx, reloc.WS2_32.dll_recv
movzx ecx, al
mov dword [rsp + 0x20], ecx
mov rcx, r14
mov word [r14 + 0x22], r13w
call fcn.1400017b0
movzx ecx, word [rbp - 6]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, r14
mov word [r14 + 0x22], ax
call sym.Launcher.exe_store_ipport_fullname
lea rdi, [rsi + 0x6e]
mov edx, 0x30
lea rbx, [rsi + 0x140]
mov r9, rdi
lea rcx, [rsi + 0x156]
mov qword [rsp + 0x20], rbx
lea r8, [0x14003c7c0]
call fcn.1400017b0
lea rcx, [rsi + 0x186]
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea r8, str._s_____s
mov edx, 0x30
call fcn.1400017b0
movzx eax, byte [r15 + 0x84]
lea r9, str.E:02_Sourcelm.signal.soft.git01_ProjectPE0000workcomplat_srcmod_net_netinterface.c
xchg dword [rsi + 0x228], eax
movaps xmm0, xmmword [rbp - 0x40]
lea r8, [0x140045370]
movaps xmm1, xmmword [rbp - 0x30]
xor edx, edx
movups xmmword [rsi + 0x1b8], xmm0
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi + 0x1c8], xmm1
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x1d8], xmm0
movaps xmm0, xmmword [rbp]
movups xmmword [rsi + 0x1e8], xmm1
movsd xmm1, qword [rbp + 0x10]
movups xmmword [rsi + 0x1f8], xmm0
movsd qword [rsi + 0x208], xmm1
mov dword [0x14004537c], r13d
mov dword [0x140045380], 1
movzx ecx, byte [rsi + 0xe0]
movzx eax, byte [r15 + 0x78]
inc ecx
mov dword [rsp + 0x58], eax
lea rax, str.____
mov dword [rsp + 0x50], ecx
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
lea rax, str._TCP___s__s__s___d__d__n
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
lea rax, str.accept_tcp_connect
mov dword [rsp + 0x28], 0x720
mov qword [rsp + 0x20], rax
call sym.Launcher.exe_elog_fmt
cmp qword [r15 + 0x248], r13
je 0x14000a996
movzx eax, byte [rsi + 0xe0]
lea r8, [0x14003b754]
mov dword [rbp - 0x70], eax
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x80], r15
mov r9, r14
mov dword [rbp - 0x78], 0xabcd3211
mov edx, reloc.WS2_32.dll_recv
movzx eax, byte [r15 + 0x78]
mov dword [rbp - 0x6c], eax
call fcn.1400017b0
movzx eax, word [rsi + 0x6c]
lea r9, [rsi + 0x11c]
lea r8, [0x14003b754]
mov dword [rbp - 0x58], eax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x54]
call fcn.1400017b0
movzx eax, word [rsi + 0x13e]
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x44], eax
mov rdx, qword [r15 + 0x250]
call qword [r15 + 0x248]
mov r12, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1b8]
mov rdi, qword [rsp + 0x1a8]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140012f80
add rsp, 0x170
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000a9ae