Function at 0x1400bfdf0
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, r9
push r14
push r13
push r12
push rdi
mov rdi, rcx
mov ecx, 2
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 eax, dword [rbp + 0x78]
movaps xmmword [rsp + 0x60], xmm6
movq xmm6, qword [rbp + 0x58]
mov dword [rsp + 0x4c], eax
movhps xmm6, qword [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400c0330
mov r13, 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 0x1400c0050
lea rdx, [0x1402531a0]
mov rcx, r13
call fcn.1400d4750
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov r12, 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.14005a0c0
mov edx, 0xc8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r14, rax
test rax, rax
je 0x1400c040d
mov qword [r12 + 0x2f0], rax
mov rcx, r15
mov qword [rax + 0xc0], r12
movups xmmword [rax], xmm6
mov rax, qword [rbp + 0x68]
mov qword [r14 + 0x10], rax
call fcn.140101e30
mov rcx, qword [rbp + 0x38]
mov qword [r14 + 0x88], rax
call fcn.140101e30
mov rcx, qword [rbp + 0x30]
mov qword [r14 + 0x98], rax
call fcn.140101e30
cmp qword [rbp + 0x40], 0
mov qword [r14 + 0x90], rax
je 0x1400bffb2
cmp qword [rbp + 0x48], 0
je 0x1400bffb2
mov rdx, qword [rbp + 0x48]
add rdx, 1
jne 0x1400bff88
mov qword [r14 + 0x18], 0
lea rax, [0x1402bf413]
mov r9d, 8
lea r8, str.dap_client_http
mov edx, 0x26d
mov qword [rsp + 0x20], rax
lea rcx, str.dap_client_http_request_custom
call fcn.14005a0c0
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
movaps xmm6, xmmword [rsp + 0x60]
lea rsp, [rbp - 0x38]
mov rax, r14
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [r14 + 0x18], rax
mov rcx, rax
test rax, rax
je 0x1400bff34
mov rax, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
mov qword [r14 + 0x20], rax
mov r8, rax
call sub.msvcrt.dll_memcpy
mov rdx, rsi
lea rcx, [r14 + 0x70]
mov r8d, 0x15
call sub.msvcrt.dll_strncpy
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x70]
mov word [r14 + 0x86], bx
mov qword [r14 + 0xa0], rax
call fcn.140101e30
mov rdx, qword [0x140253200]
mov qword [r14 + 0xa8], rax
mov qword [r14 + 0x68], rdx
test rdx, rdx
jne 0x1400c0088
mov qword [r14 + 0x58], 0
lea rax, [0x1402bf413]
lea rcx, str.dap_client_http_request_custom
mov r9d, 8
mov edx, 0x27d
mov qword [rsp + 0x20], rax
lea r8, str.dap_client_http
call fcn.14005a0c0
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x1400c003b
call sub.msvcrt.dll_free
mov rcx, r14
xor r14d, r14d
call sub.msvcrt.dll_free
jmp 0x1400bff69
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402bf3df]
lea r8, str.dap_client_http
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
jmp 0x1400bfe72
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [r14 + 0x58], rax
test rax, rax
je 0x1400c0003
movzx eax, byte [rsp + 0x4c]
mov rdx, rsi
mov ecx, 2
movzx ebx, bx
lea r15, [r12 + 0x1e0]
mov qword [r14 + 0xb0], rdi
mov byte [r14 + 0x30], al
mov r8, r15
call qword [sym.imp.WS2_32.dll_inet_pton]
mov edx, dword [r12 + 0x1e0]
test edx, edx
jne 0x1400c00ef
mov r8, r15
mov edx, 2
mov rcx, rsi
call fcn.1400fa960
test eax, eax
js 0x1400c0390
lea rcx, [r12 + 0x1ec]
mov r8d, 0x16
mov rdx, rsi
call sub.msvcrt.dll_strncpy
mov eax, 2
mov ecx, ebx
mov word [r12 + 0x1dc], ax
call qword [sym.imp.WS2_32.dll_htons]
or dword [r12 + 0x50], 0xa
cmp byte [rsp + 0x4c], 0
mov word [r12 + 0x1de], ax
mov dword [r12 + 0x34], 0
jne 0x1400c0170
lea rdx, [r12 + 0x1dc]
mov r8d, 0x10
mov rcx, r13
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1400c02f0
cmp eax, 0xffffffff
je 0x1400c0198
xor r14d, r14d
jmp 0x1400bff69
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.14005a0c0
jmp 0x1400c013a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0x2733
jne 0x1400c0280
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.14005a0c0
test rdi, rdi
je 0x1400c0400
mov qword [r14 + 0xb0], rdi
mov rdx, r12
mov rcx, rdi
call fcn.14010a170
mov edx, 8
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rcx, qword [r14 + 0xb0]
mov rdx, qword [0x140253208]
lea r8, [0x1401f6d80]
mov r13, rax
mov rax, qword [r12 + 0x38]
mov r9, r13
mov qword [r13], rax
call fcn.1401080c0
mov qword [r14 + 0xb8], rax
test rax, rax
jne 0x1400bff69
mov rax, qword [r13]
xor ecx, ecx
mov r9d, 7
xor edx, edx
lea r8, str.dap_client_http
mov qword [rsp + 0x30], rax
mov rax, qword [r14 + 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.14005a0c0
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x1400bff69
mov dword [rsp + 0x30], eax
mov rax, qword [r12]
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.14005a0c0
mov rcx, r14
call fcn.14019ae80
mov edx, 1
mov rcx, r12
mov qword [r12 + 0x2f0], 0
call fcn.1400d37f0
cmp qword [rbp + 0x60], 0
je 0x1400c015e
mov rdx, qword [rbp + 0x68]
mov ecx, r13d
call qword [rbp + 0x60]
jmp 0x1400c015e
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.14005a0c0
test rdi, rdi
je 0x1400c0380
mov qword [r14 + 0xb0], rdi
mov qword [r14 + 0xc0], r12
jmp 0x1400bff69
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.14005a0c0
cmp qword [rbp + 0x60], 0
je 0x1400c015e
mov rdx, qword [rbp + 0x68]
mov ecx, r12d
xor r14d, r14d
call qword [rbp + 0x60]
jmp 0x1400bff69
call fcn.1400d55a0
mov rdi, rax
jmp 0x1400c031d
lea rax, [0x1402bf42b]
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.14005a0c0
mov rcx, r14
call fcn.14019ae80
mov edx, 1
mov rcx, r12
mov qword [r12 + 0x2f0], 0
call fcn.1400d37f0
cmp qword [rbp + 0x60], 0
je 0x1400c015e
call qword [sym.imp.msvcrt.dll__errno]
xor r14d, r14d
mov rdx, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [rbp + 0x60]
jmp 0x1400bff69
call fcn.1400d55a0
mov rdi, rax
jmp 0x1400c01dd
lea rax, [0x1402bf413]
mov r9d, 8
lea r8, str.dap_client_http
mov edx, 0x25d
mov qword [rsp + 0x20], rax
lea rcx, str.dap_client_http_request_custom
call fcn.14005a0c0
jmp 0x1400bff69