Function at 0x140197e34
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 [0x14041f880]
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.140197488
mov ebx, eax
test eax, eax
jne 0x14019815e
mov edx, dword [rsp + 0x5c]
lea r9, [rsp + 0x34]
lea r8, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.1401967a8
mov r15, qword [rsp + 0x38]
test al, al
jne 0x140197ef0
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.14017b068
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.1401991f8
jmp 0x140197feb
mov r9d, dword [rsp + 0x34]
lea r8, [rbp - 0x20]
lea rdx, str.__Trying__s:_d...
mov rcx, r14
call fcn.1401992c4
cmp dword [rsp + 0x50], 2
mov eax, 1
je 0x140197f1b
cmp dword [rsp + 0x50], 0x17
jne 0x140197f81
cmp dword [rsp + 0x54], eax
jne 0x140197f81
mov dil, al
cmp byte [r14 + 0xb16], sil
je 0x140197f84
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 0x140197f84
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0x110]
mov ecx, eax
call fcn.14017b068
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, r14
call fcn.1401992c4
jmp 0x140197f84
mov dil, sil
mov rcx, r15
call fcn.1401973cc
test dil, dil
je 0x140197fa5
cmp byte [r14 + 0xb1f], sil
je 0x140197fa5
mov rdx, r15
mov rcx, r14
call fcn.140198184
cmp qword [r14 + 0x288], rsi
je 0x140198000
mov dl, 1
mov rcx, r14
call fcn.14017c3a4
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.14017c3a4
cmp edi, 2
jne 0x140197fe2
mov dil, 1
jmp 0x140198003
test edi, edi
je 0x140198000
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140196854
mov eax, esi
jmp 0x14019815e
mov dil, sil
cmp dword [rsp + 0x50], 2
je 0x140198011
cmp dword [rsp + 0x50], 0x17
jne 0x140198052
lea rcx, [rsp + 0x60]
call fcn.1401aee80
mov r8d, dword [rsp + 0x50]
mov r9d, eax
mov rdx, r15
mov rcx, r14
call fcn.1401977bc
mov ebx, eax
test eax, eax
je 0x140198052
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140196854
cmp ebx, 1
mov eax, 7
cmove ebx, eax
jmp 0x140198150
mov edx, 1
mov rcx, r15
call fcn.1401aef04
lea rcx, [rsp + 0x38]
call fcn.14018a478
cmp dword [r13 + 0x404], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x408], xmm0
jle 0x1401980a9
mov rdx, qword [r13 + 0x418]
mov r8d, 3
mov rcx, r14
call fcn.14017be20
mov rdx, qword [r13 + 0x420]
mov r8d, 4
mov rcx, r14
call fcn.14017be20
test dil, dil
jne 0x140198154
cmp dword [r13 + 0x8c], 4
je 0x140198154
cmp byte [r13 + 0x3f9], sil
jne 0x1401980e7
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401980e7
test ebx, ebx
jne 0x140198150
jmp 0x140198148
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0xb
je 0x140198146
sub edx, 0x2728
je 0x140198146
cmp edx, 1
je 0x140198146
mov r8d, 0x100
lea rdx, [rbp + 0x10]
mov ecx, eax
call fcn.14017b068
mov r9, rax
lea r8, [rbp - 0x20]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, r14
call fcn.1401992c4
mov r8, r15
mov dword [r14 + 0xdd4], ebx
mov rdx, r13
mov rcx, r14
call fcn.140196854
mov ebx, 7
jmp 0x140198150
mov ebx, esi
mov qword [r13 + r12*8 + 0x200], r15
mov eax, ebx
jmp 0x14019815e
mov qword [r13 + r12*8 + 0x200], r15
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1402dd7d0
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret