Function at 0x140044300
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 [0x1400992c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
call fcn.140066430
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r13 + 1]
lea r8d, [r13 + 6]
mov r14d, 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
call fcn.140066430
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, 0xffffffffffffffff
cmp rsi, rdi
jne 0x14004439c
mov rsi, rdi
jmp 0x1400443b5
mov dword [rbp - 0x50], r13d
call fcn.140066430
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, r13d
mov qword [rbp - 0x30], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400443f4
test eax, eax
jne 0x1400448a2
mov dword [rbp - 0x40], 1
call fcn.140066430
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r13w
jmp 0x140044888
mov dword [rbp - 0x40], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140066430
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14004449d
call fcn.140066430
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r13w
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, SafeArrayGetElemsize
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov r14d, eax
call fcn.140066430
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
test r14d, r14d
jne 0x1400444c5
call fcn.140066430
jmp 0x1400444d3
mov qword [rbp - 0x18], r13
mov word [rbp - 0x20], r14w
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r13w
cmp rsi, 0xffffffffffffffff
je 0x140044888
jmp 0x140044455
cmp r14d, 0xffffffff
jne 0x1400444d3
test eax, eax
jne 0x1400448a2
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp - 0x38], SafeArrayGetElemsize
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov r14d, eax
movsxd r15, dword [rbp - 0x38]
call fcn.140066430
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
test r14d, r14d
jne 0x140044524
call fcn.140066430
jmp 0x140044532
cmp r14d, 0xffffffff
jne 0x140044532
test eax, eax
jne 0x1400448a2
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x14004454d
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, 0x7fffffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
mov r14d, eax
call fcn.140066430
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
test r14d, r14d
jne 0x1400445e3
call fcn.140066430
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
call fcn.140066430
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 r14, 0xffffffffffffffff
jne 0x1400445f3
mov r14, rdi
jmp 0x14004460c
cmp r14d, 0xffffffff
jne 0x14004458e
test eax, eax
jne 0x1400448a2
jmp 0x14004458e
mov dword [rbp - 0x50], r13d
call fcn.140066430
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, r13d
mov qword [rbp - 0x38], r14
cmp r14, 0xffffffffffffffff
je 0x1400448b3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov r15d, eax
call fcn.140066430
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
test r15d, r15d
jne 0x14004478c
call fcn.140066430
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
call fcn.140066430
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 rsi, 0xffffffffffffffff
je 0x1400446ba
mov dword [rbp - 0x50], r13d
call fcn.140066430
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rdi, rsi
mov eax, r13d
mov qword [rbp - 0x28], rdi
cmp rdi, 0xffffffffffffffff
jne 0x1400446cc
test eax, eax
jne 0x1400448fa
mov dword [rbp - 0x3c], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
call fcn.140066430
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
test esi, esi
js 0x14004472c
mov dword [rbp - 0x50], r13d
call fcn.140066430
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, r13d
test esi, esi
je 0x140044736
test eax, eax
jne 0x1400448fa
mov dword [rbp - 0x40], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140066430
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140044779
call fcn.140066430
mov dword [rbp - 0x3c], 1
cmp rdi, 0xffffffffffffffff
je 0x1400448e1
jmp 0x1400447a3
cmp r15d, 0xffffffff
jne 0x140044661
test eax, eax
jne 0x1400448d0
jmp 0x140044661
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x3c]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
call fcn.140066430
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
test esi, esi
js 0x1400447fc
mov dword [rbp - 0x50], r13d
call fcn.140066430
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov eax, r13d
test esi, esi
je 0x140044806
test eax, eax
jne 0x1400448fa
mov dword [rbp - 0x40], 1
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x40]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140066430
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140044849
call fcn.140066430
mov qword [r12], rdi
mov qword [r12 + 8], r14
lea rcx, [rbp - 0x30]
call fcn.14003ebd0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400664b0
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
call fcn.140066430
nop
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.140004350
nop
test eax, eax
jne 0x1400448d0
call fcn.140066430
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.140004350
nop
call fcn.140066430
mov dword [rbp - 0x50], 0x2719
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.140004350
int3