Function at 0x1400264e0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r14, qword [sym.imp.WS2_32.dll_connect]
nop dword [rax]
mov rcx, rdi
mov dl, 1
call fcn.1400267d0
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call r14
cmp dword [0x1400cc0d8], 0xa
jl 0x140026595
mov ecx, dword [0x1400cc0dc]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140026595
nop word cs:[rax + rax]
mov rcx, rdi
mov dl, 1
call fcn.1400267d0
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call r14
mov rcx, rdi
mov dl, 1
call fcn.1400267d0
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call r14
mov ecx, dword [0x1400cc0dc]
lea eax, [rcx + 1]
imul eax, ecx
and eax, 1
cmp dword [0x1400cc0d8], 0xa
jl 0x140026500
test eax, eax
jne 0x140026540
jmp 0x140026500
test eax, eax
js 0x14002665c
mov rcx, rdi
xor edx, edx
call fcn.1400267d0
mov rax, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x28]
imul r8d, dword [rax], 0x3e8
movabs rbx, 0x20c49ba5e353f7cf
mov rax, rbx
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
mov r14, qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x34]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1006
call r14
mov rax, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x38]
imul r8d, dword [rax], 0x3e8
mov rax, rbx
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1005
call r14
mov rax, qword [rsi + 8]
mov dword [rax], 0
mov al, 1
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov eax, dword [0x1400cc0e0]
mov ecx, dword [0x1400cc0e4]
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
cmp ecx, 0xa
jl 0x140026680
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x14002669c
call rbx
cmp dword [0x1400cc0e4], 0xa
jl 0x1400266a0
mov ecx, dword [0x1400cc0e0]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x1400266a0
call rbx
jmp 0x140026680
cmp dword [0x1400cc0d8], 0xa
jl 0x14002670b
mov ecx, dword [0x1400cc0dc]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14002670b
call rbx
mov eax, dword [0x1400cc0e0]
mov ecx, dword [0x1400cc0e4]
cmp ecx, 0xa
jl 0x140026670
lea edx, [rax + 1]
imul edx, eax
and edx, 1
je 0x140026670
nop dword [rax + rax]
call rbx
call rbx
mov eax, dword [0x1400cc0e0]
mov ecx, dword [0x1400cc0e4]
lea edx, [rax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x140026670
test edx, edx
jne 0x1400266e0
jmp 0x140026670
cmp eax, 0x2733
jne 0x140026780
nop word cs:[rax + rax]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140026880
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
cmp dword [0x1400cc0d8], 0xa
jl 0x1400267ba
mov eax, dword [0x1400cc0dc]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x1400267ba
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140026880
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
jmp 0x140026720
mov rax, qword [rsi + 8]
mov dword [rax], 2
xor eax, eax
cmp dword [0x1400cc0d8], 0xa
jl 0x140026652
mov ecx, dword [0x1400cc0dc]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140026652
mov rax, qword [rsi + 8]
mov dword [rax], 2
jmp 0x140026780
mov rax, qword [rsi + 8]
cmp dword [rax], 0
je 0x14002659d
xor eax, eax
jmp 0x140026652