Function at 0x140002fc0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x220
mov rax, qword [0x14010d0c0]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rbx, rdx
mov rdi, rcx
call fcn.140069070
mov rax, qword [0x1401107f8]
mov ecx, 4
test rax, rax
je 0x14000300b
call rax
jmp 0x140003010
call fcn.1400bc3d0
mov rcx, rax
test rax, rax
je 0x14000302d
mov word [rsp + 0x50], 0x403
movzx eax, word [rsp + 0x50]
mov word [rcx], ax
mov word [rcx + 2], 0x101
call fcn.1400685a0
mov qword [rdi + 0x10], rax
lea rdx, [0x140110800]
cmp qword [0x140110818], 0xf
cmova rdx, qword [0x140110800]
xor esi, esi
lea r14d, [rsi + 1]
test rax, rax
je 0x140003063
test byte [rax + 0xa1], 2
mov ecx, esi
jne 0x140003066
mov ecx, r14d
mov dword [rsp + 0x30], ecx
mov r8d, dword [0x140110810]
mov rcx, rax
call fcn.140069290
cmp eax, r14d
je 0x1400030ad
lea rax, str.failed_to_load_ca.
mov qword [rsp + 0x48], socket
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140004490
jmp 0x1400032f0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400030cf
movzx eax, byte [rcx + 0xa1]
or al, r14b
and al, 0xfd
mov byte [rcx + 0xa1], al
mov qword [rcx + 0xc0], rsi
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400030f5
lea rax, str.failed_to_initialize_WSA.
mov qword [rsp + 0x48], 0x19
jmp 0x14000308e
mov r15d, 6
mov r8d, r15d
mov edx, r14d
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rdi], eax
cmp eax, 0xffffffff
jne 0x14000312c
lea rax, str.failed_to_create_socket.
mov qword [rsp + 0x48], 0x18
jmp 0x14000308e
mov word [rsp + 0x58], r12w
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x5c], eax
mov ecx, 0x1a0a
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
movsxd rcx, dword [rdi]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000317c
lea rax, str.failed_to_connect_to_server.
mov qword [rsp + 0x48], 0x1c
jmp 0x14000308e
mov rbp, qword [rdi + 0x10]
test rbp, rbp
jne 0x14000318e
mov qword [rdi + 8], rsi
jmp 0x14000321a
mov rax, qword [0x1401107f8]
mov ecx, 0x4f0
test rax, rax
je 0x1400031a3
call rax
jmp 0x1400031a8
call fcn.1400bc3d0
mov rbx, rax
test rax, rax
je 0x1400031ef
mov rdx, rbp
mov rcx, rax
call fcn.14006f680
test eax, eax
jns 0x1400031ef
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400031cc
call fcn.14006e3f0
mov rcx, rbx
call fcn.14006fc50
mov rax, qword [0x1401107f0]
mov rcx, rbx
test rax, rax
je 0x1400031e7
call rax
jmp 0x1400031ec
call fcn.1400b2d30
mov rbx, rsi
mov qword [rdi + 8], rbx
mov ecx, dword [rdi]
test rbx, rbx
je 0x14000321a
lea rax, [rbx + 0x2f4]
mov dword [rax], ecx
mov qword [rbx + 0x80], rax
lea rax, [rbx + 0x2f8]
mov dword [rax], ecx
mov qword [rbx + 0x88], rax
mov rcx, qword [rdi + 8]
call fcn.140069550
cmp eax, r14d
je 0x140003296
mov rcx, qword [rdi + 8]
test eax, eax
jg 0x140003268
test rcx, rcx
jne 0x14000323c
mov esi, 0xffffff53
jmp 0x140003268
mov esi, dword [rcx + 0x2f0]
cmp esi, 0xfffffebd
jne 0x14000324f
mov esi, r12d
jmp 0x140003268
cmp esi, 0xfffffeb9
jne 0x14000325e
mov esi, 3
jmp 0x140003268
cmp esi, 0xfffffea9
cmove esi, r15d
lea rax, str.secure_connection_failed__code_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x21
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.1400045c0
jmp 0x1400032f0
xchg byte [rdi + 4], r14b
add rdi, 0x158
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call fcn.1400a7ac8
test eax, eax
jne 0x14000332a
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
je 0x14000331c
mov rbx, qword [rdi + 0x50]
mov rsi, qword [rdi + 0x58]
cmp rbx, rsi
je 0x1400032e8
nop dword [rax]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400032df
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 0x40
cmp rbx, rsi
jne 0x1400032d0
mov rcx, rdi
call fcn.1400a7ad0
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400a8a40
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, r15d
call fcn.1400a7344
int3
mov ecx, 5
call fcn.1400a7344
int3