Function at 0x140092f30
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140131088]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, r8
mov rdi, rcx
mov qword [rbp - 0x70], rcx
mov rbx, qword [rbp + 0x270]
mov r12, qword [rbp + 0x280]
mov r15, qword [rbp + 0x298]
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, dword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov dword [rbp - 0x60], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x60]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14009300f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], 0x115
mov dword [rsp + 0x30], eax
lea rax, str._CSockConnector__setsockopt_nodelay_failed_with__d__line:_d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x115
lea r9, str.CSockConnector::do_connectsock_
lea r8, str...includesonetlibsphstreamSockConnector.cpp
mov edx, 2
lea rcx, [0x1401399a0]
call fcn.14007a380
cmp rsi, 0xffffffffffffffff
jne 0x140093073
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
lea rcx, str.CSockConnector::do_connectsock_
mov qword [rsp + 0x30], rcx
lea rax, str.__s__Error_at_socket__:__d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x122
mov r9, rcx
lea r8, str...includesonetlibsphstreamSockConnector.cpp
lea edx, [rsi + 9]
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14009306c
add rcx, 0x10
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
xor al, al
jmp 0x14009347f
mov rdx, rbx
mov rcx, rsi
call fcn.140092750
mov dword [rbp - 0x5c], 1
lea r8, [rbp - 0x5c]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1400930e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], 0x137
mov dword [rsp + 0x30], eax
lea rax, str._CSockConnector__setsockopt_failed_with__d__line:_d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x137
lea rax, str.CSockConnector::do_connectsock_
mov r9, rax
lea r8, str...includesonetlibsphstreamSockConnector.cpp
mov edx, 4
lea rcx, [0x1401399a0]
call fcn.14007a380
jmp 0x14009340a
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rcx
mov byte [rbp - 0x50], 0
xor edx, edx
mov qword [rbp - 0x40], rdx
lea rax, [rbp - 0x50]
cmp rcx, 0x10
cmovae rax, qword [rbp - 0x50]
mov byte [rax], dl
mov byte [rbp - 0x14], dl
mov dword [rsp + 0x70], edx
xor eax, eax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov dword [rbp - 0x30], edx
movups xmm0, xmmword [rsp + 0x74]
movups xmmword [rbp - 0x2c], xmm0
mov word [rbp - 0x1c], dx
mov dword [rbp - 0x18], edx
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.140023ba0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.140023a60
nop
cmp qword [rax + 0x18], 0x10
jb 0x140093155
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x290]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r15
lea rax, str._CSockConnector__attempt_to_connect_server__s:_d__s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x141
lea rbx, str.CSockConnector::do_connectsock_
mov r9, rbx
lea r8, str...includesonetlibsphstreamSockConnector.cpp
mov edx, 1
lea rcx, [0x1401399a0]
call fcn.14007a380
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x1400931f8
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x1400931f3
test cl, 0x1f
je 0x1400931c6
call fcn.1400a26d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400931d5
call fcn.1400a26d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400931e4
call fcn.1400a26d8
int3
cmp rcx, 0x27
jbe 0x1400931f0
call fcn.1400a26d8
int3
mov rcx, rax
call fcn.14009d844
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x50], r15b
lea rcx, [rbp - 0x50]
call fcn.140009040
mov r8d, dword [rbp + 0x288]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140093417
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400932c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], 0x14a
mov dword [rsp + 0x30], eax
lea rax, str._CSockConnector__connect_failed_with__d__line:_d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x14a
mov r9, rbx
lea r8, str...includesonetlibsphstreamSockConnector.cpp
lea edx, [r15 + 4]
lea rcx, [0x1401399a0]
call fcn.14007a380
cmp dword [rbp + 0x278], 0x17
jne 0x14009340a
lea rax, str._CSockConnector__only_resolve_ipv4_addr
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x14e
mov r9, rbx
lea r8, str...includesonetlibsphstreamSockConnector.cpp
lea edx, [r15 + 1]
lea rcx, [0x1401399a0]
call fcn.14007a380
jmp 0x14009340a
test r14, r14
je 0x1400933c3
mov rbx, qword [rdi]
mov rax, qword [0x140139bc0]
test rax, rax
jne 0x1400932e6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x1400932e8
call rax
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x7c], 0xffffffff
mov qword [rbx + 0x154], 0xffffffffffffffff
xor eax, eax
mov qword [rbp - 0x58], rax
lea ecx, [rax + 0x38]
call fcn.14009dbb8
mov rbx, rax
mov qword [rbp - 0x68], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov rcx, qword [rdi]
lea rax, vtable.CReference.0
mov qword [rbx], rax
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], 1
mov dword [rbx + 0x10], 1
mov qword [rbx + 0x18], rsi
mov dword [rbx + 0x20], 4
lea rax, vtable.CTCPStreamTask.0
mov qword [rbx], rax
mov qword [rbx + 0x28], rcx
test rcx, rcx
je 0x140093376
add rcx, 0x10
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbx + 0x30], 0
mov qword [rbp - 0x58], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rdi]
call fcn.140094110
mov rax, qword [rdi]
mov qword [rax + 0x1c0], r14
mov rax, qword [r14]
lea rdx, [rbp - 0x58]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400933be
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
jmp 0x140093467
mov qword [rbp - 8], rsi
mov dword [rbp - 0x10], 1
lea ecx, [rsi + 1]
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14009340a
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14009340a
mov r8b, 1
mov rdx, rsi
mov rcx, qword [rdi]
call fcn.140094110
jmp 0x140093433
xor bl, bl
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140093469
test eax, eax
jne 0x140093467
mov r8b, 1
mov rdx, rsi
mov rcx, qword [rdi]
call fcn.140094110
mov rax, qword [rdi]
mov qword [rax + 0x1c0], r14
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x90]
test rax, rax
je 0x140093467
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov dword [rsp + 0x20], r15d
mov r10, qword [rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rax
call qword [r10]
mov bl, 1
mov rcx, qword [rdi]
test rcx, rcx
je 0x14009347c
add rcx, 0x10
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
nop
movzx eax, bl
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14009d860
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret