Function at 0x1800068d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18009e010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rcx
mov dword [rsp + 0x28], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r13 + 1]
mov esi, 2
lea r8d, [r13 + 6]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
mov r14, 0xffffffffffffffff
lea rcx, [0x18009ed88]
cmp rax, r14
je 0x180006950
mov eax, r13d
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rcx
mov rbx, rcx
jmp 0x180006974
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rdi, r14
mov eax, dword [rbp - 0x50]
mov qword [rbp - 0x28], rdi
cmp rdi, 0xffffffffffffffff
jne 0x180006986
test eax, eax
jne 0x180006eb4
mov dword [rbp - 0x3c], 1
cmp rdi, 0xffffffffffffffff
jne 0x1800069d8
call fcn.180003050
mov qword [rbp - 0x10], r13
mov word [rbp - 0x18], si
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
mov word [rbp - 0x16], r13w
call fcn.180003050
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r15d, [rdi + 0x11]
jmp 0x180006a74
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x3c]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180006a1a
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x10], r13
mov word [rbp - 0x18], si
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov r15d, setsockopt
mov word [rbp - 0x16], r13w
mov dword [rbp - 0x14], eax
mov r8d, r15d
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov esi, eax
test eax, eax
je 0x180006a9f
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp esi, 0xffffffff
jne 0x180006a9f
cmp dword [rbp - 0x50], 0
jne 0x180006eb4
cmp rdi, 0xffffffffffffffff
jne 0x180006a9f
call fcn.180003050
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x180006ae4
mov dword [rbp - 0x30], setsockopt
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
movsxd r15, dword [rbp - 0x30]
test eax, eax
je 0x180006af2
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp esi, 0xffffffff
jne 0x180006aee
cmp dword [rbp - 0x50], 0
jne 0x180006eb4
mov rbx, qword [rbp - 0x48]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x14], eax
jne 0x180006b0d
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
cmp rdi, 0xffffffffffffffff
jne 0x180006b31
call fcn.180003050
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x180006b68
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
mov esi, eax
test eax, eax
je 0x180006b72
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp esi, 0xffffffff
jne 0x180006b72
cmp dword [rbp - 0x50], 0
jne 0x180006eb4
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 1]
lea ecx, [rdx + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180006ba8
mov eax, r13d
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
jmp 0x180006bcc
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rsi, r14
mov eax, dword [rbp - 0x50]
mov qword [rbp - 0x30], rsi
cmp rsi, 0xffffffffffffffff
jne 0x180006bfc
test eax, eax
jne 0x180006e92
call fcn.180003050
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x180006c37
mov r8d, r15d
lea rdx, [rbp - 0x18]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov r15d, eax
test eax, eax
je 0x180006c41
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r15d, 0xffffffff
jne 0x180006c41
cmp dword [rbp - 0x50], 0
jne 0x180006e92
cmp rdi, 0xffffffffffffffff
jne 0x180006c65
call fcn.180003050
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x180006ca4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x180006c99
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x180006ca4
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], rbx
mov r14, rax
mov qword [rbp - 0x20], r14
cmp r14, 0xffffffffffffffff
jne 0x180006cb8
cmp dword [rbp - 0x50], 0
jne 0x180006ea3
mov dword [rbp - 0x38], 1
cmp rsi, 0xffffffffffffffff
jne 0x180006cda
call fcn.180003050
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
jmp 0x180006d11
lea r8, [rbp - 0x38]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x180006cfc
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], rbx
je 0x180006d24
jmp 0x180006d1a
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp dword [rbp - 0x50], 0
jne 0x180006ea3
mov dword [rbp - 0x3c], 1
cmp rsi, 0xffffffffffffffff
jne 0x180006d46
call fcn.180003050
mov rbx, rax
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
jmp 0x180006d7d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x3c]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180006d86
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x38], 1
cmp r14, 0xffffffffffffffff
jne 0x180006da5
call fcn.180003050
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
jmp 0x180006ddc
lea r8, [rbp - 0x38]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x180006dc7
mov dword [rbp - 0x50], r13d
mov qword [rbp - 0x48], rbx
je 0x180006def
jmp 0x180006de5
call fcn.180003050
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rbx
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp dword [rbp - 0x50], 0
jne 0x180006ea3
mov dword [rbp - 0x3c], 1
cmp r14, 0xffffffffffffffff
jne 0x180006e03
call fcn.180003050
jmp 0x180006e30
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x3c]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180006e30
call fcn.180003050
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [r12], r14
mov qword [r12 + 8], rsi
cmp rdi, 0xffffffffffffffff
je 0x180006e65
mov dword [rbp - 0x50], r13d
lea rax, [0x18009ed88]
mov qword [rbp - 0x48], rax
mov byte [rbp - 0x40], 0
lea r9, [rbp - 0x50]
mov r8b, 1
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.180006580
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180049ee0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.180002fc0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.180002fc0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.180002fc0
int3