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

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 [0x140304470]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea edx, [r14 + 1]
lea r8d, [r14 + 6]
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
lea r13, [0x1402b2c88]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov rdi, 0xffffffffffffffff
cmp rsi, rdi
jne 0x14006a4da
mov rsi, rdi
jmp 0x14006a4ef
mov dword [rbp - 0x50], r14d
mov byte [rbp - 0x4c], r14b
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x30], rsi
cmp rsi, 0xffffffffffffffff
jne 0x14006a503
cmp dword [rbp - 0x50], 0
jne 0x14006a9cf
mov dword [rbp - 0x40], 1
cmp rsi, 0xffffffffffffffff
jne 0x14006a54c
mov qword [rbp - 0x18], r14
mov word [rbp - 0x20], bx
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r14w
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r15d, [rsi + 0x11]
jmp 0x14006a5d8
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]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x18], r14
mov word [rbp - 0x20], bx
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
mov word [rbp - 0x1e], r14w
xor ecx, ecx
lea r15d, [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
je 0x14006a602
cmp ebx, 0xffffffff
jne 0x14006a602
cmp dword [rbp - 0x50], 0
jne 0x14006a9cf
cmp rsi, 0xffffffffffffffff
jne 0x14006a602
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006a663
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
jne 0x14006a65e
mov dword [rbp - 0x50], r14d
mov byte [rbp - 0x4c], bl
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006a66d
cmp ebx, 0xffffffff
jne 0x14006a66d
cmp dword [rbp - 0x50], 0
jne 0x14006a9cf
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp - 0x1c], eax
jne 0x14006a688
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x1c], eax
lea r8, [rbp - 0x50]
mov edx, 0x7fffffff
mov rcx, rsi
call fcn.1400699c0
cmp eax, 0xffffffff
jne 0x14006a6a8
cmp dword [rbp - 0x50], 0
jne 0x14006a9cf
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
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 qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp r14, 0xffffffffffffffff
jne 0x14006a6fb
mov r14, rdi
jmp 0x14006a713
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x38], r14
cmp r14, 0xffffffffffffffff
jne 0x14006a741
cmp dword [rbp - 0x50], 0
jne 0x14006a9e0
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006a77c
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 ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp ebx, 0xffffffff
jne 0x14006a786
cmp dword [rbp - 0x50], 0
jne 0x14006a9e0
cmp rsi, 0xffffffffffffffff
jne 0x14006a799
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
jmp 0x14006a7e2
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 rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
cmp rbx, 0xffffffffffffffff
je 0x14006a7ef
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov rdi, rbx
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x28], rdi
cmp rdi, 0xffffffffffffffff
jne 0x14006a803
cmp dword [rbp - 0x50], 0
jne 0x14006a9be
mov dword [rbp - 0x3c], 1
cmp r14, 0xffffffffffffffff
jne 0x14006a82a
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006a880
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 ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
js 0x14006a87e
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
je 0x14006a88a
cmp dword [rbp - 0x50], 0
jne 0x14006a9be
mov dword [rbp - 0x40], 1
cmp r14, 0xffffffffffffffff
je 0x14006a8c3
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]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x3c], 1
cmp rdi, 0xffffffffffffffff
jne 0x14006a8ea
mov dword [rbp - 0x50], 0x2719
mov byte [rbp - 0x4c], 1
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
jmp 0x14006a940
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 ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x50], eax
test eax, eax
setne byte [rbp - 0x4c]
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ebx, ebx
js 0x14006a93e
mov dword [rbp - 0x50], 0
mov byte [rbp - 0x4c], 0
mov qword [rbp - 0x48], r13
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
je 0x14006a946
cmp dword [rbp - 0x50], 0
jne 0x14006a9be
mov dword [rbp - 0x40], 1
cmp rdi, 0xffffffffffffffff
je 0x14006a97f
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]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [r12], rdi
mov qword [r12 + 8], r14
lea rcx, [rbp - 0x30]
call fcn.14006a3c0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140218dc0
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.1400226b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.1400226b0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x50]
call fcn.1400226b0
int3