Function at 0x1401a0e98
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x14042b840]
xor rax, rsp
mov qword [rbp + 0x210], rax
movsxd r12, r9d
mov rax, r8
mov r13, rdx
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov r14, rcx
xor esi, esi
or qword [rdx + r12*8 + 0x200], 0xffffffffffffffff
mov rdx, rax
call fcn.1401a04ec
mov ebx, eax
test eax, eax
jne 0x1401a11c2
mov edx, dword [rsp + 0x5c]
lea r9, [rsp + 0x34]
lea r8, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.14019f80c
mov r15, qword [rsp + 0x38]
test al, al
jne 0x1401a0f54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rbp + 0x10]
mov ecx, ebx
mov rdi, rax
call fcn.1401840d8
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.1401a225c
jmp 0x1401a104f
mov r9d, dword [rsp + 0x34]
lea r8, [rbp - 0x20]
lea rdx, str.__Trying__s:_d...
mov rcx, r14
call fcn.1401a2328
cmp dword [rsp + 0x50], 2
mov eax, 1
je 0x1401a0f7f
cmp dword [rsp + 0x50], 0x17
jne 0x1401a0fe5
cmp dword [rsp + 0x54], eax
jne 0x1401a0fe5
mov dil, al
cmp byte [r14 + 0xb16], sil
je 0x1401a0fe8
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], eax
mov r8d, eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov rcx, r15
call qword [sym.imp.ws2_32.dll_setsockopt]
test eax, eax
jns 0x1401a0fe8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.1401840d8
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, r14
call fcn.1401a2328
jmp 0x1401a0fe8
mov dil, sil
mov rcx, r15
call fcn.1401a0430
test dil, dil
je 0x1401a1009
cmp byte [r14 + 0xb1f], sil
je 0x1401a1009
mov rdx, r15
mov rcx, r14
call fcn.1401a11e8
cmp qword [r14 + 0x288], rsi
je 0x1401a1064
mov dl, 1
mov rcx, r14
call fcn.140185414
mov rcx, qword [r14 + 0x290]
xor r8d, r8d
mov rdx, r15
call qword [r14 + 0x288]
xor edx, edx
mov rcx, r14
mov edi, eax
call fcn.140185414
cmp edi, 2
jne 0x1401a1046
mov dil, 1
jmp 0x1401a1067
test edi, edi
je 0x1401a1064
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14019f8b8
mov eax, esi
jmp 0x1401a11c2
mov dil, sil
cmp dword [rsp + 0x50], 2
je 0x1401a1075
cmp dword [rsp + 0x50], 0x17
jne 0x1401a10b6
lea rcx, [rsp + 0x60]
call fcn.1401b7eb0
mov r8d, dword [rsp + 0x50]
mov r9d, eax
mov rdx, r15
mov rcx, r14
call fcn.1401a0820
mov ebx, eax
test eax, eax
je 0x1401a10b6
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14019f8b8
cmp ebx, 1
mov eax, 7
cmove ebx, eax
jmp 0x1401a11b4
mov edx, 1
mov rcx, r15
call fcn.1401b7f34
lea rcx, [rsp + 0x38]
call fcn.1401934dc
cmp dword [r13 + 0x404], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x408], xmm0
jle 0x1401a110d
mov rdx, qword [r13 + 0x418]
mov r8d, 3
mov rcx, r14
call fcn.140184e90
mov rdx, qword [r13 + 0x420]
mov r8d, 4
mov rcx, r14
call fcn.140184e90
test dil, dil
jne 0x1401a11b8
cmp dword [r13 + 0x8c], 4
je 0x1401a11b8
cmp byte [r13 + 0x3f9], sil
jne 0x1401a114b
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401a114b
test ebx, ebx
jne 0x1401a11b4
jmp 0x1401a11ac
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0xb
je 0x1401a11aa
sub edx, 0x2728
je 0x1401a11aa
cmp edx, 1
je 0x1401a11aa
mov r8d, 0x100
lea rdx, [rbp + 0x10]
mov ecx, eax
call fcn.1401840d8
mov r9, rax
lea r8, [rbp - 0x20]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, r14
call fcn.1401a2328
mov r8, r15
mov dword [r14 + 0xdd4], ebx
mov rdx, r13
mov rcx, r14
call fcn.14019f8b8
mov ebx, 7
jmp 0x1401a11b4
mov ebx, esi
mov qword [r13 + r12*8 + 0x200], r15
mov eax, ebx
jmp 0x1401a11c2
mov qword [r13 + r12*8 + 0x200], r15
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1402e63c0
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret