Function at 0x14007c4d0
Capabilities:
Act as tcp client
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
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14048a080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp + 7], rcx
mov dword [rsp + 0x28], 1
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea edx, [rsi + 1]
lea ecx, [rsi + 2]
lea r8d, [rsi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r12, rax
mov r13, 0xffffffffffffffff
cmp rax, r13
je 0x14007c592
mov dword [rbp - 0x25], esi
mov rcx, qword [0x14048a968]
movabs r15, 0x8fafd21e25c5e09b
lea rbx, [0x14048a960]
movabs r14, 0xb2ab117a257edf0d
cmp rcx, r15
je 0x14007c57d
cmp rcx, r14
je 0x14007c57d
mov rax, qword [0x14048a960]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [0x14048a968]
jmp 0x14007c57f
xor al, al
movzx edx, al
add edx, 2
mov dword [rbp - 0x19], edx
mov dword [rbp - 0x29], esi
mov edi, esi
movzx eax, dl
jmp 0x14007c5f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rbp - 0x25], esi
mov rcx, qword [0x14048a968]
movabs r15, 0x8fafd21e25c5e09b
lea rbx, [0x14048a960]
movabs r14, 0xb2ab117a257edf0d
cmp rcx, r15
je 0x14007c5e1
cmp rcx, r14
je 0x14007c5e1
mov rax, qword [0x14048a960]
mov edx, edi
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [0x14048a968]
jmp 0x14007c5e6
test edi, edi
setne al
movzx eax, al
add eax, 2
mov dword [rbp - 0x19], eax
mov dword [rbp - 0x29], edi
mov edx, eax
mov r12, r13
mov qword [rbp - 0x21], rbx
movsd xmm1, qword [rbp - 0x19]
movups xmm0, xmmword [rbp - 0x29]
movsd qword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp + 0xf], r12
cmp r12, 0xffffffffffffffff
jne 0x14007c62d
cmp edx, 1
jne 0x14007c623
test edi, edi
setne al
jmp 0x14007c625
and al, 1
test al, al
jne 0x14007cfd3
mov dword [rbp - 0x31], 1
cmp r12, 0xffffffffffffffff
jne 0x14007c685
mov dword [rbp - 0x25], esi
cmp rcx, r15
je 0x14007c65b
cmp rcx, r14
je 0x14007c65b
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007c65d
mov al, 1
movzx eax, al
add eax, 2
mov dword [rbp - 0x19], eax
mov dword [rbp - 0x29], 0x2719
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rbp - 0x49], xmm0
movsd xmm1, qword [rbp - 0x19]
movsd qword [rbp - 0x39], xmm1
jmp 0x14007c6b3
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x31]
mov edx, 0xffff
mov r8d, 4
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x49]
call fcn.14007aad0
mov edi, select
mov qword [rbp - 9], rdi
mov qword [rbp + 0x1f], rsi
mov eax, 2
mov word [rbp + 0x17], ax
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], si
cmp r12, 0xffffffffffffffff
jne 0x14007c749
mov dword [rbp - 0x5d], esi
mov rcx, qword [0x14048a968]
cmp rcx, r15
je 0x14007c710
cmp rcx, r14
je 0x14007c710
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [0x14048a968]
jmp 0x14007c712
mov al, 1
movzx edx, al
add edx, 2
mov dword [rbp - 0x51], edx
mov dword [rbp - 0x61], 0x2719
mov qword [rbp - 0x59], rbx
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
mov edi, 0x2719
movzx eax, dl
jmp 0x14007c834
mov r8d, edi
lea rdx, [rbp + 0x17]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_bind]
mov esi, eax
test eax, eax
jne 0x14007c7c6
mov ecx, dword [rbp - 0x39]
test ecx, ecx
jne 0x14007c76b
mov rdi, rbx
jmp 0x14007c77a
lea rdi, [0x14048a978]
cmp ecx, 1
cmovne rdi, qword [rbp - 0x41]
mov dword [rbp - 0x5d], 0
mov rax, qword [rdi + 8]
cmp rax, r15
je 0x14007c79c
cmp rax, r14
je 0x14007c79c
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x14007c79e
xor al, al
movzx eax, al
add eax, 2
mov dword [rbp - 0x61], 0
mov qword [rbp - 0x59], rdi
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
xor edi, edi
mov rcx, qword [0x14048a968]
jmp 0x14007c820
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rbp - 0x5d], 0
mov rcx, qword [0x14048a968]
cmp rcx, r15
je 0x14007c802
cmp rcx, r14
je 0x14007c802
mov rcx, qword [0x14048a960]
mov r8, qword [rcx + 0x30]
mov edx, eax
mov rcx, rbx
call r8
mov rcx, qword [0x14048a968]
jmp 0x14007c807
test edi, edi
setne al
movzx eax, al
add eax, 2
mov dword [rbp - 0x61], edi
mov qword [rbp - 0x59], rbx
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x49], xmm0
mov dword [rbp - 0x51], eax
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
mov edx, eax
cmp esi, 0xffffffff
jne 0x14007c84a
cmp edx, 1
jne 0x14007c840
test edi, edi
setne al
jmp 0x14007c842
and al, 1
test al, al
jne 0x14007cfd3
cmp r12, 0xffffffffffffffff
jne 0x14007c8ae
mov dword [rbp - 0x5d], 0
cmp rcx, r15
je 0x14007c875
cmp rcx, r14
je 0x14007c875
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007c877
mov al, 1
movzx ecx, al
add ecx, 2
mov dword [rbp - 0x51], ecx
mov dword [rbp - 0x61], 0x2719
mov qword [rbp - 0x59], rbx
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
mov edi, 0x2719
movzx eax, cl
jmp 0x14007c9b1
mov edx, select
mov dword [rbp - 1], edx
lea r8, [rbp - 1]
lea rdx, [rbp + 0x17]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
movsxd rax, dword [rbp - 1]
mov qword [rbp - 9], rax
test esi, esi
jne 0x14007c942
mov ecx, dword [rbp - 0x39]
test ecx, ecx
jne 0x14007c8e1
mov rdi, rbx
jmp 0x14007c8fd
lea rdi, [0x14048a978]
movups xmm0, xmmword [rbp - 0x29]
psrldq xmm0, 8
movq rax, xmm0
cmp ecx, 1
cmovne rdi, rax
mov dword [rbp - 0x5d], 0
mov rax, qword [rdi + 8]
cmp rax, r15
je 0x14007c91f
cmp rax, r14
je 0x14007c91f
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x14007c921
xor al, al
movzx eax, al
add eax, 2
mov dword [rbp - 0x61], 0
mov qword [rbp - 0x59], rdi
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
xor edi, edi
jmp 0x14007c995
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rbp - 0x5d], 0
mov rax, qword [0x14048a968]
cmp rax, r15
je 0x14007c977
cmp rax, r14
je 0x14007c977
mov rcx, qword [0x14048a960]
mov r8, qword [rcx + 0x30]
mov edx, edi
mov rcx, rbx
call r8
jmp 0x14007c97c
test edi, edi
setne al
movzx eax, al
add eax, 2
mov dword [rbp - 0x61], edi
mov qword [rbp - 0x59], rbx
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x49], xmm0
mov dword [rbp - 0x51], eax
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
mov ecx, eax
mov rdx, qword [rbp - 9]
mov qword [rbp - 1], rdx
cmp esi, 0xffffffff
jne 0x14007c9c7
cmp ecx, 1
jne 0x14007c9bd
test edi, edi
setne al
jmp 0x14007c9bf
and al, 1
test al, al
jne 0x14007cfd3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x14007c9e2
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
cmp r12, 0xffffffffffffffff
jne 0x14007ca4d
mov dword [rbp - 0x5d], 0
mov rax, qword [0x14048a968]
cmp rax, r15
je 0x14007ca14
cmp rax, r14
je 0x14007ca14
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007ca16
mov al, 1
movzx ecx, al
add ecx, 2
mov dword [rbp - 0x51], ecx
mov dword [rbp - 0x61], 0x2719
mov qword [rbp - 0x59], rbx
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
mov edi, 0x2719
movzx eax, cl
jmp 0x14007cb35
mov edx, 0x7fffffff
mov rcx, r12
call qword [sym.imp.WS2_32.dll_listen]
mov esi, eax
test eax, eax
jne 0x14007cace
mov ecx, dword [rbp - 0x39]
test ecx, ecx
jne 0x14007ca6d
mov rdi, rbx
jmp 0x14007ca89
lea rdi, [0x14048a978]
movups xmm0, xmmword [rbp - 0x29]
psrldq xmm0, 8
movq rax, xmm0
cmp ecx, 1
cmovne rdi, rax
mov dword [rbp - 0x5d], 0
mov rax, qword [rdi + 8]
cmp rax, r15
je 0x14007caab
cmp rax, r14
je 0x14007caab
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x14007caad
xor al, al
movzx eax, al
add eax, 2
mov dword [rbp - 0x61], 0
mov qword [rbp - 0x59], rdi
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
xor edi, edi
jmp 0x14007cb21
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rbp - 0x5d], 0
mov rax, qword [0x14048a968]
cmp rax, r15
je 0x14007cb03
cmp rax, r14
je 0x14007cb03
mov rcx, qword [0x14048a960]
mov r8, qword [rcx + 0x30]
mov edx, edi
mov rcx, rbx
call r8
jmp 0x14007cb08
test edi, edi
setne al
movzx eax, al
add eax, 2
mov dword [rbp - 0x61], edi
mov qword [rbp - 0x59], rbx
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x49], xmm0
mov dword [rbp - 0x51], eax
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
mov ecx, eax
cmp esi, 0xffffffff
jne 0x14007cb4b
cmp ecx, 1
jne 0x14007cb41
test edi, edi
setne al
jmp 0x14007cb43
and al, 1
test al, al
jne 0x14007cfd3
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
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 0x14007cbf2
mov ecx, dword [rbp - 0x39]
test ecx, ecx
jne 0x14007cb84
mov rdi, rbx
jmp 0x14007cba0
lea rdi, [0x14048a978]
movups xmm0, xmmword [rbp - 0x29]
psrldq xmm0, 8
movq rax, xmm0
cmp ecx, 1
cmovne rdi, rax
mov dword [rbp - 0x5d], 0
mov rax, qword [rdi + 8]
cmp rax, r15
je 0x14007cbc2
cmp rax, r14
je 0x14007cbc2
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x14007cbc4
xor al, al
movzx edx, al
add edx, 2
mov dword [rbp - 0x51], edx
mov dword [rbp - 0x61], 0
mov qword [rbp - 0x59], rdi
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x49], xmm1
xor edi, edi
movzx eax, dl
mov rcx, qword [0x14048a968]
jmp 0x14007cc54
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rbp - 0x5d], 0
mov rcx, qword [0x14048a968]
cmp rcx, r15
je 0x14007cc2e
cmp rcx, r14
je 0x14007cc2e
mov rcx, qword [0x14048a960]
mov r8, qword [rcx + 0x30]
mov edx, eax
mov rcx, rbx
call r8
mov rcx, qword [0x14048a968]
jmp 0x14007cc33
test edi, edi
setne al
movzx eax, al
add eax, 2
mov dword [rbp - 0x51], eax
mov dword [rbp - 0x61], edi
mov qword [rbp - 0x59], rbx
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x49], xmm0
mov edx, eax
mov rsi, r13
movsd xmm0, qword [rbp - 0x51]
mov r8, qword [rbp - 9]
movsd qword [rbp - 0x39], xmm0
mov qword [rbp - 9], rsi
cmp rsi, 0xffffffffffffffff
jne 0x14007ccda
cmp edx, 1
jne 0x14007cc78
test edi, edi
setne al
jmp 0x14007cc7a
and al, 1
test al, al
jne 0x14007cfc2
cmp rsi, 0xffffffffffffffff
jne 0x14007ccda
mov dword [rbp - 0x5d], 0
cmp rcx, r15
je 0x14007ccad
cmp rcx, r14
je 0x14007ccad
mov rax, qword [0x14048a960]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14007ccaf
mov al, 1
movzx eax, al
add eax, 2
mov dword [rbp - 0x51], eax
mov dword [rbp - 0x61], 0x2719
mov qword [rbp - 0x59], rbx
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x49], xmm1
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm0
jmp 0x14007cda6
lea rdx, [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test eax, eax
jne 0x14007cd7c
mov ecx, dword [rbp - 0x39]
test ecx, ecx
jne 0x14007ccfd
mov rdi, rbx
jmp 0x14007cd19
lea rdi, [0x14048a978]
movups xmm0, xmmword [rbp - 0x29]
psrldq xmm0, 8
movq rax, xmm0
cmp ecx, 1
cmovne rdi, rax
mov dword [rbp - 0x5d], 0
mov rax, qword [rdi + 8]
cmp rax, r15
je 0x14007cd3b
cmp rax, r14
je 0x14007cd3b
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x30]
jmp 0x14007cd3d
xor al, al
movzx eax, al
add eax, 2
mov dword [rbp - 0x51], eax
mov dword [rbp - 0x61], 0
mov qword [rbp - 0x59], rdi
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x49], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rbp - 0x39], xmm1
cmp r12, 0xffffffffffffffff
jne 0x14007cdc5
mov edx, 0x2719
lea rcx, [rbp - 0x49]
call fcn.1400d6f40
jmp 0x14007ce11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x61]
call fcn.140077e40
movups xmm1, xmmword [rax]
movups xmmword [rbp - 0x49], xmm1
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x39], xmm0
cmp edi, 0xffffffff
jne 0x14007cd63
mov eax, dword [rbp - 0x39]
cmp eax, 1
jne 0x14007cdb9
movd eax, xmm1
test eax, eax
setne al
jmp 0x14007cdbb
and al, 1
test al, al
jne 0x14007cfc2
jmp 0x14007cd63
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
sete dl
lea rcx, [rbp - 0x49]
call fcn.14007aad0
cmp rdi, 0xffffffffffffffff
je 0x14007ce11
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x14007ce02
lea rbx, [0x14048a978]
cmp eax, 1
cmovne rbx, qword [rbp - 0x41]
mov r8, rbx
lea rcx, [rbp - 0x49]
call fcn.140077ec0
mov r13, rdi
mov qword [rbp - 1], r13
cmp r13, 0xffffffffffffffff
jne 0x14007ce36
mov eax, dword [rbp - 0x39]
cmp eax, 1
jne 0x14007ce2c
cmp dword [rbp - 0x49], 0
setne al
jmp 0x14007ce2e
and al, 1
test al, al
jne 0x14007cfb1
mov dword [rbp - 0x11], 1
mov byte [rbp - 0x69], 0
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x11]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.14007bf60
test eax, eax
je 0x14007ce79
mov eax, dword [rbp - 0x39]
cmp eax, 1
jne 0x14007ce6f
cmp dword [rbp - 0x49], 0
setne al
jmp 0x14007ce71
and al, 1
test al, al
jne 0x14007cfb1
mov dword [rbp - 0x31], 1
cmp rsi, 0xffffffffffffffff
jne 0x14007ce96
mov edx, 0x2719
lea rcx, [rbp - 0x49]
call fcn.1400d6f40
jmp 0x14007cec2
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x31]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x49]
call fcn.14007aad0
mov dword [rbp - 0x11], 1
mov byte [rbp - 0x69], 0
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x11]
lea rdx, [rbp - 0x69]
mov rcx, r13
call fcn.14007bf60
test eax, eax
je 0x14007cf05
mov eax, dword [rbp - 0x39]
cmp eax, 1
jne 0x14007cefb
cmp dword [rbp - 0x49], 0
setne al
jmp 0x14007cefd
and al, 1
test al, al
jne 0x14007cfb1
mov dword [rbp - 0x31], 1
cmp r13, 0xffffffffffffffff
jne 0x14007cf22
mov edx, 0x2719
lea rcx, [rbp - 0x49]
call fcn.1400d6f40
jmp 0x14007cf4e
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x31]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
setne dl
lea rcx, [rbp - 0x49]
call fcn.14007aad0
mov rax, qword [rbp + 7]
mov qword [rax], r13
mov qword [rax + 8], rsi
cmp r12, 0xffffffffffffffff
je 0x14007cf84
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov dword [rbp - 0x51], 0
mov byte [rbp - 0x69], 0
lea r9, [rbp - 0x61]
mov r8b, 1
lea rdx, [rbp - 0x69]
mov rcx, r12
call fcn.14007abc0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14028bc60
lea r11, [rsp + 0xd0]
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 - 0x49]
call fcn.1400786b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x49]
call fcn.1400786b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x49]
call fcn.1400786b0
int3