Function at 0x1400bb710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
push r15
mov r15, rcx
mov ecx, 2
push r14
push r13
push r12
push rdi
push rsi
mov rsi, rdx
mov edx, 1
push rbx
mov ebx, r8d
mov r8d, 6
sub rsp, 0x10
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
mov qword [rbp + 0x28], r9
mov edi, dword [rbp + 0x78]
movaps xmmword [rsp + 0x60], xmm6
movq xmm6, qword [rbp + 0x58]
movhps xmm6, qword [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400bbc78
mov r14, rax
lea r8, [rsp + 0x5c]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x5c], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400bbb58
lea rdx, str._:e_
mov rcx, r14
call fcn.1400cfa20
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov r13, rax
lea rax, str.Created_client_request_socket__llu
lea r8, str.dap_client_http
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov edx, 0xc8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400bbce5
mov qword [r13 + 0x2e8], rax
mov rcx, qword [rbp + 0x28]
mov qword [rax + 0xc0], r13
movups xmmword [rax], xmm6
mov rax, qword [rbp + 0x68]
mov qword [r12 + 0x10], rax
call fcn.1400fb5e0
mov rcx, qword [rbp + 0x38]
mov qword [r12 + 0x88], rax
call fcn.1400fb5e0
mov rcx, qword [rbp + 0x30]
mov qword [r12 + 0x98], rax
call fcn.1400fb5e0
cmp qword [rbp + 0x40], 0
mov qword [r12 + 0x90], rax
je 0x1400bb8bc
cmp qword [rbp + 0x48], 0
je 0x1400bb8bc
mov rdx, qword [rbp + 0x48]
add rdx, 1
jne 0x1400bb890
mov qword [r12 + 0x18], 0
lea rax, [0x1402b7ccb]
mov r9d, 8
lea r8, str.dap_client_http
mov edx, 0x261
mov qword [rsp + 0x20], rax
lea rcx, str.dap_client_http_request_custom
call fcn.14005aec0
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400bb9c6
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [r12 + 0x18], rax
mov rcx, rax
test rax, rax
je 0x1400bb852
mov rax, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
mov qword [r12 + 0x20], rax
mov r8, rax
call sub.msvcrt.dll_memcpy
mov r8d, 0x15
mov rdx, rsi
lea rcx, [r12 + 0x70]
call sub.msvcrt.dll_strncpy
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x70]
mov word [r12 + 0x86], bx
mov qword [r12 + 0xa0], rax
call fcn.1400fb5e0
mov edx, 0x10000
mov ecx, 1
mov qword [r12 + 0x68], 0x10000
mov qword [r12 + 0xa8], rax
call sub.msvcrt.dll_calloc
mov qword [r12 + 0x58], rax
test rax, rax
je 0x1400bbd14
mov rdx, rsi
mov byte [r12 + 0x30], dil
mov ecx, 2
movzx ebx, bx
lea r8, [r13 + 0x1d8]
mov qword [r12 + 0xb0], r15
mov qword [rsp + 0x48], r8
call qword [sym.imp.WS2_32.dll_inet_pton]
mov edx, dword [r13 + 0x1d8]
test edx, edx
je 0x1400bb9e0
lea rcx, [r13 + 0x1e4]
mov r8d, 0x16
mov rdx, rsi
call sub.msvcrt.dll_strncpy
mov eax, 2
mov ecx, ebx
mov word [r13 + 0x1d4], ax
call qword [sym.imp.WS2_32.dll_htons]
or dword [r13 + 0x50], 0xa
mov word [r13 + 0x1d6], ax
mov dword [r13 + 0x34], 0
test dil, dil
jne 0x1400bbb90
lea rdx, [r13 + 0x1d4]
mov r8d, 0x10
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400bbc30
cmp eax, 0xffffffff
je 0x1400bba70
xor r12d, r12d
movaps xmm6, xmmword [rsp + 0x60]
lea rsp, [rbp - 0x38]
mov rax, r12
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8, qword [rsp + 0x48]
mov edx, 2
mov rcx, rsi
call fcn.1400f4020
test eax, eax
jns 0x1400bb954
lea rax, [0x1402b7e3b]
mov dword [rsp + 0x30], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_client_http
mov qword [rsp + 0x28], rsi
call fcn.14005aec0
mov rcx, r12
call fcn.1401935b0
mov edx, 1
mov rcx, r13
mov qword [r13 + 0x2e8], 0
call fcn.1400ceb20
cmp qword [rbp + 0x60], 0
je 0x1400bb9c3
call qword [sym.imp.msvcrt.dll__errno]
xor r12d, r12d
mov rdx, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [rbp + 0x60]
jmp 0x1400bb9c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x2733
jne 0x1400bbbc0
lea rax, str.Connecting_to__s:_u
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
lea r8, str.dap_client_http
mov qword [rsp + 0x20], rax
call fcn.14005aec0
test r15, r15
je 0x1400bbcd8
mov qword [r12 + 0xb0], r15
mov rdx, r13
mov rcx, r15
call fcn.140103900
mov edx, 8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rcx, qword [r12 + 0xb0]
mov rdx, qword [0x14024c200]
lea r8, [0x1401f06d0]
mov r14, rax
mov rax, qword [r13 + 0x38]
mov r9, r14
mov qword [r14], rax
call fcn.140101850
mov qword [r12 + 0xb8], rax
test rax, rax
jne 0x1400bb9c6
mov rax, qword [r14]
xor ecx, ecx
mov r9d, 7
xor edx, edx
lea r8, str.dap_client_http
mov qword [rsp + 0x30], rax
mov rax, qword [r12 + 0xb0]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
lea rax, str.Cant_run_timer_on_worker__u_for_esocket_uuid__llu_for_timeout_check_during_connection_attempt
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x1400bb9c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402b7e05]
lea r8, str.dap_client_http
mov qword [rsp + 0x20], rax
call fcn.14005aec0
jmp 0x1400bb78f
lea rax, str.We_have_no_SSL_implementation_but_trying_to_create_SSL_connection_
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_client_http
call fcn.14005aec0
jmp 0x1400bb99c
mov dword [rsp + 0x30], eax
mov rax, qword [r13]
xor edx, edx
mov r9d, 7
lea r8, str.dap_client_http
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea rax, str.Socket__zu_connecting_error:__d
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov rcx, r12
call fcn.1401935b0
mov edx, 1
mov rcx, r13
mov qword [r13 + 0x2e8], 0
call fcn.1400ceb20
cmp qword [rbp + 0x60], 0
je 0x1400bb9c3
mov rdx, qword [rbp + 0x68]
mov ecx, r14d
call qword [rbp + 0x60]
jmp 0x1400bb9c3
lea rax, str.Connected_momentaly_with__s:_u_
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rsi
xor ecx, ecx
lea r8, str.dap_client_http
mov qword [rsp + 0x20], rax
call fcn.14005aec0
test r15, r15
je 0x1400bbcc8
mov qword [r12 + 0xb0], r15
mov qword [r12 + 0xc0], r13
jmp 0x1400bb9c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
xor ecx, ecx
mov r9d, 7
mov dword [rsp + 0x28], eax
mov r12d, eax
lea rax, str.Socket_create_error:__d
lea r8, str.dap_client_http
mov qword [rsp + 0x20], rax
call fcn.14005aec0
cmp qword [rbp + 0x60], 0
je 0x1400bb9c3
mov ecx, r12d
mov rdx, qword [rbp + 0x68]
xor r12d, r12d
call qword [rbp + 0x60]
jmp 0x1400bb9c6
call fcn.1400d0920
mov r15, rax
jmp 0x1400bbc5d
call fcn.1400d0920
mov r15, rax
jmp 0x1400bbab5
lea rax, [0x1402b7ccb]
mov r9d, 8
lea r8, str.dap_client_http
mov edx, 0x251
mov qword [rsp + 0x20], rax
lea rcx, str.dap_client_http_request_custom
call fcn.14005aec0
jmp 0x1400bb9c6
lea rax, [0x1402b7ccb]
lea rcx, str.dap_client_http_request_custom
mov r9d, 8
mov edx, 0x271
mov qword [rsp + 0x20], rax
lea r8, str.dap_client_http
call fcn.14005aec0
mov rcx, qword [r12 + 0x18]
test rcx, rcx
je 0x1400bbd4d
call sub.msvcrt.dll_free
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400bb9c6