Function at 0x1400bf030
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 0x1400bf598
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 0x1400bf478
lea rdx, [0x1402511a0]
mov rcx, r14
call fcn.1400d3840
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.14005a160
mov edx, 0xc8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400bf605
mov qword [r13 + 0x2f0], 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.140100eb0
mov rcx, qword [rbp + 0x38]
mov qword [r12 + 0x88], rax
call fcn.140100eb0
mov rcx, qword [rbp + 0x30]
mov qword [r12 + 0x98], rax
call fcn.140100eb0
cmp qword [rbp + 0x40], 0
mov qword [r12 + 0x90], rax
je 0x1400bf1dc
cmp qword [rbp + 0x48], 0
je 0x1400bf1dc
mov rdx, qword [rbp + 0x48]
add rdx, 1
jne 0x1400bf1b0
mov qword [r12 + 0x18], 0
lea rax, [0x1402bcdc3]
mov r9d, 8
lea r8, str.dap_client_http
mov edx, 0x259
mov qword [rsp + 0x20], rax
lea rcx, str.dap_client_http_request_custom
call fcn.14005a160
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400bf2e6
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [r12 + 0x18], rax
mov rcx, rax
test rax, rax
je 0x1400bf172
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.140100eb0
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 0x1400bf634
mov rdx, rsi
mov byte [r12 + 0x30], dil
mov ecx, 2
movzx ebx, bx
lea r8, [r13 + 0x1e0]
mov qword [r12 + 0xb0], r15
mov qword [rsp + 0x48], r8
call qword [sym.imp.WS2_32.dll_inet_pton]
mov edx, dword [r13 + 0x1e0]
test edx, edx
je 0x1400bf300
lea rcx, [r13 + 0x1ec]
mov r8d, 0x16
mov rdx, rsi
call sub.msvcrt.dll_strncpy
mov eax, 2
mov ecx, ebx
mov word [r13 + 0x1dc], ax
call qword [sym.imp.WS2_32.dll_htons]
or dword [r13 + 0x50], 0xa
mov word [r13 + 0x1de], ax
mov dword [r13 + 0x34], 0
test dil, dil
jne 0x1400bf4b0
lea rdx, [r13 + 0x1dc]
mov r8d, 0x10
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400bf550
cmp eax, 0xffffffff
je 0x1400bf390
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.1400f98d0
test eax, eax
jns 0x1400bf274
lea rax, [0x1402bcddb]
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.14005a160
mov rcx, r12
call fcn.140199810
mov edx, 1
mov rcx, r13
mov qword [r13 + 0x2f0], 0
call fcn.1400d2920
cmp qword [rbp + 0x60], 0
je 0x1400bf2e3
call qword [sym.imp.msvcrt.dll__errno]
xor r12d, r12d
mov rdx, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [rbp + 0x60]
jmp 0x1400bf2e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x2733
jne 0x1400bf4e0
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.14005a160
test r15, r15
je 0x1400bf5f8
mov qword [r12 + 0xb0], r15
mov rdx, r13
mov rcx, r15
call fcn.1401091f0
mov edx, 8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rcx, qword [r12 + 0xb0]
mov rdx, qword [0x140251200]
lea r8, [0x1401f5160]
mov r14, rax
mov rax, qword [r13 + 0x38]
mov r9, r14
mov qword [r14], rax
call fcn.140107140
mov qword [r12 + 0xb8], rax
test rax, rax
jne 0x1400bf2e6
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.14005a160
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x1400bf2e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402bcd8d]
lea r8, str.dap_client_http
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x1400bf0af
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.14005a160
jmp 0x1400bf2bc
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.14005a160
mov rcx, r12
call fcn.140199810
mov edx, 1
mov rcx, r13
mov qword [r13 + 0x2f0], 0
call fcn.1400d2920
cmp qword [rbp + 0x60], 0
je 0x1400bf2e3
mov rdx, qword [rbp + 0x68]
mov ecx, r14d
call qword [rbp + 0x60]
jmp 0x1400bf2e3
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.14005a160
test r15, r15
je 0x1400bf5e8
mov qword [r12 + 0xb0], r15
mov qword [r12 + 0xc0], r13
jmp 0x1400bf2e6
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.14005a160
cmp qword [rbp + 0x60], 0
je 0x1400bf2e3
mov ecx, r12d
mov rdx, qword [rbp + 0x68]
xor r12d, r12d
call qword [rbp + 0x60]
jmp 0x1400bf2e6
call fcn.1400d4690
mov r15, rax
jmp 0x1400bf57d
call fcn.1400d4690
mov r15, rax
jmp 0x1400bf3d5
lea rax, [0x1402bcdc3]
mov r9d, 8
lea r8, str.dap_client_http
mov edx, 0x249
mov qword [rsp + 0x20], rax
lea rcx, str.dap_client_http_request_custom
call fcn.14005a160
jmp 0x1400bf2e6
lea rax, [0x1402bcdc3]
lea rcx, str.dap_client_http_request_custom
mov r9d, 8
mov edx, 0x269
mov qword [rsp + 0x20], rax
lea r8, str.dap_client_http
call fcn.14005a160
mov rcx, qword [r12 + 0x18]
test rcx, rcx
je 0x1400bf66d
call sub.msvcrt.dll_free
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400bf2e6