Function at 0x18004eaa4
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r13, qword [rcx]
lea r9, [rsp + 0x40]
or qword [r8], 0xffffffffffffffff
mov r12, r8
mov qword [rsp + 0x38], r8
mov r15, rcx
lea r8, [rsp + 0x50]
xor esi, esi
call fcn.18004e214
mov ebx, eax
test eax, eax
jne 0x18004edb4
lea r8, [rsp + 0x34]
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.18004ea34
mov r14, qword [rsp + 0x40]
test al, al
jne 0x18004eb58
call fcn.180086590
mov rbx, rax
call fcn.180086590
mov ecx, dword [rbx]
lea rdx, [rbp + 0x10]
mov r8d, 0x80
mov rdi, rax
call fcn.18003b70c
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r13
call fcn.18004ce58
jmp 0x18004ec68
lea r8, [rbp - 0x20]
mov rcx, r13
lea rdx, str.__Trying__s..._n
call fcn.18004cf4c
cmp dword [rsp + 0x50], 2
mov eax, 1
jne 0x18004eb80
mov dil, al
cmp dword [rsp + 0x54], eax
je 0x18004eb83
mov dil, sil
test dil, dil
je 0x18004ebfd
test byte [r13 + 0xe74], 8
je 0x18004ebfd
mov r12, qword [r15]
lea r9, [rsp + 0x34]
mov r8d, eax
mov dword [rsp + 0x34], eax
mov edx, 6
mov dword [rsp + 0x20], 4
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18004ebe9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp + 0x90]
mov ecx, eax
call fcn.18003b70c
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, r12
call fcn.18004cf4c
jmp 0x18004ebf8
lea rdx, str.TCP_NODELAY_set_n
mov rcx, r12
call fcn.18004cf4c
mov r12, qword [rsp + 0x38]
mov rcx, r14
call fcn.18004e160
test dil, dil
je 0x18004ec22
test dword [r13 + 0xe74], 0x2000
je 0x18004ec22
mov rdx, r14
mov rcx, r13
call fcn.18004ede0
cmp qword [r13 + 0x738], rsi
je 0x18004ec7a
mov dl, 1
mov rcx, r13
call fcn.18003ef2c
mov rcx, qword [r13 + 0x740]
xor r8d, r8d
mov rdx, r14
call qword [r13 + 0x738]
xor edx, edx
mov rcx, r13
mov edi, eax
call fcn.18003ef2c
cmp edi, 2
jne 0x18004ec5f
mov dil, 1
jmp 0x18004ec7d
test edi, edi
je 0x18004ec7a
mov esi, 0x2a
mov rdx, r14
mov rcx, r15
call fcn.18004d91c
mov eax, esi
jmp 0x18004edb6
mov dil, sil
cmp dword [rsp + 0x50], 2
jne 0x18004ecc4
lea rcx, [rsp + 0x60]
call fcn.18004320c
mov r8d, dword [rsp + 0x50]
mov r9d, eax
mov rdx, r14
mov rcx, r15
call fcn.18004e5e8
mov ebx, eax
test eax, eax
je 0x18004ecc4
mov rdx, r14
mov rcx, r15
call fcn.18004d91c
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x18004edb6
mov edx, 1
mov rcx, r14
call fcn.180072130
lea rcx, [rsp + 0x40]
call fcn.180050f70
cmp dword [r15 + 0x3d8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r15 + 0x3c8], xmm0
jle 0x18004ed06
mov rdx, qword [r15 + 0x3e0]
mov r8d, 3
mov rcx, r13
call fcn.18003e784
test dil, dil
jne 0x18004edb0
cmp dword [r15 + 0xbc], 1
jne 0x18004edb0
test dword [r15 + 0x3c4], 0x8000000
jne 0x18004ed42
mov r8d, dword [rsp + 0x5c]
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18004ed9f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0xb
je 0x18004ed9d
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x18004ed9d
mov r8d, 0x80
lea rdx, [rbp + 0x10]
mov ecx, eax
call fcn.18003b70c
mov r9, rax
lea r8, [rbp - 0x20]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, r13
call fcn.18004cf4c
mov rdx, r14
mov dword [r13 + 0x10e8], ebx
mov rcx, r15
call fcn.18004d91c
mov ebx, 7
jmp 0x18004ecbd
mov ebx, esi
test ebx, ebx
jne 0x18004ecbd
mov qword [r12], r14
jmp 0x18004ecbd
mov qword [r12], r14
xor eax, eax
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.180081d90
mov rbx, qword [rsp + 0x278]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret