Function at 0x140026050
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov rbp, rsp
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov eax, dword [0x1400c3fe8]
lea ecx, [rax + 1]
imul ecx, eax
test cl, 1
sete al
cmp dword [0x1400c3fec], 0xa
setl cl
or cl, al
nop word cs:[rax + rax]
mov eax, reloc.WS2_32.dll_recv
call fcn.14008c4b0
sub rsp, rax
mov rbx, rsp
mov eax, reloc.WS2_32.dll_recv
call fcn.14008c4b0
sub rsp, rax
mov r14, rsp
test cl, cl
je 0x140026090
mov r12, qword [sym.imp.WS2_32.dll_connect]
nop dword [rax + rax]
sub rsp, 0x20
mov rcx, rdi
mov dl, 1
call fcn.1400265a0
add rsp, 0x20
mov r8d, dword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
sub rsp, 0x20
mov rcx, rdi
call r12
add rsp, 0x20
cmp dword [0x1400c3fec], 0xa
jl 0x14002617d
mov ecx, dword [0x1400c3fe8]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x14002617d
nop word cs:[rax + rax]
sub rsp, 0x20
mov rcx, rdi
mov dl, 1
call fcn.1400265a0
add rsp, 0x20
mov r8d, dword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
sub rsp, 0x20
mov rcx, rdi
call r12
mov rcx, rdi
mov dl, 1
call fcn.1400265a0
add rsp, 0x20
mov r8d, dword [r15 + 0x10]
mov rdx, qword [r15 + 0x20]
sub rsp, 0x20
mov rcx, rdi
call r12
add rsp, 0x20
mov ecx, dword [0x1400c3fe8]
lea eax, [rcx + 1]
imul eax, ecx
and eax, 1
cmp dword [0x1400c3fec], 0xa
jl 0x1400260c0
test eax, eax
jne 0x140026110
jmp 0x1400260c0
test eax, eax
js 0x14002632f
movabs r15, 0x20c49ba5e353f7cf
mov r12, qword [sym.imp.WS2_32.dll_setsockopt]
nop word cs:[rax + rax]
sub rsp, 0x20
mov rcx, rdi
xor edx, edx
call fcn.1400265a0
add rsp, 0x20
mov rax, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x28]
imul r8d, dword [rax], 0x3e8
mov rax, r15
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rbx], edx
sub rsp, 0x30
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1006
mov r9, rbx
call r12
add rsp, 0x30
mov rax, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x38]
imul r8d, dword [rax], 0x3e8
mov rax, r15
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [r14], edx
sub rsp, 0x30
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1005
mov r9, r14
call r12
add rsp, 0x30
mov rax, qword [rsi + 8]
mov dword [rax], 0
cmp dword [0x1400c3fec], 0xa
mov al, 1
jl 0x140026585
mov ecx, dword [0x1400c3fe8]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140026585
sub rsp, 0x20
mov rcx, rdi
xor edx, edx
call fcn.1400265a0
add rsp, 0x20
mov rax, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x28]
imul r8d, dword [rax], 0x3e8
mov rax, r15
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rbx], edx
sub rsp, 0x30
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1006
mov r9, rbx
call r12
add rsp, 0x30
mov rax, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x38]
imul r8d, dword [rax], 0x3e8
mov rax, r15
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [r14], edx
sub rsp, 0x30
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1005
mov r9, r14
call r12
add rsp, 0x30
mov rax, qword [rsi + 8]
mov dword [rax], 0
jmp 0x1400261a0
mov eax, dword [0x1400c3ff0]
mov ecx, dword [0x1400c3ff4]
mov r15, qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop word cs:[rax + rax]
cmp ecx, 0xa
jl 0x140026390
nop word cs:[rax + rax]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x140026390
sub rsp, 0x20
call r15
call r15
add rsp, 0x20
cmp dword [0x1400c3ff4], 0xa
jl 0x140026390
mov eax, dword [0x1400c3ff0]
jmp 0x140026360
sub rsp, 0x20
nop word cs:[rax + rax]
call r15
add rsp, 0x20
cmp dword [0x1400c3ff4], 0xa
jl 0x1400263d0
mov ecx, dword [0x1400c3ff0]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x1400263d0
sub rsp, 0x20
call r15
jmp 0x1400263a0
cmp dword [0x1400c3fec], 0xa
jl 0x140026455
mov ecx, dword [0x1400c3fe8]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140026455
sub rsp, 0x20
call r15
add rsp, 0x20
mov eax, dword [0x1400c3ff0]
mov ecx, dword [0x1400c3ff4]
cmp ecx, 0xa
jl 0x140026350
lea edx, [rax + 1]
imul edx, eax
and edx, 1
je 0x140026350
nop dword [rax]
sub rsp, 0x20
call r15
call r15
add rsp, 0x20
mov eax, dword [0x1400c3ff0]
mov ecx, dword [0x1400c3ff4]
lea edx, [rax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x140026350
test edx, edx
jne 0x140026420
jmp 0x140026350
cmp eax, 0x2733
jne 0x140026520
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
sub rsp, 0x20
mov rcx, rdi
call fcn.140026650
add rsp, 0x20
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
cmp dword [0x1400c3fec], 0xa
jl 0x140026576
mov eax, dword [0x1400c3fe8]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x140026576
nop word cs:[rax + rax]
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
sub rsp, 0x20
mov rcx, rdi
call fcn.140026650
add rsp, 0x20
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
sub rsp, 0x20
mov rcx, rdi
call fcn.140026650
add rsp, 0x20
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
mov ecx, dword [0x1400c3fe8]
lea eax, [rcx + 1]
imul eax, ecx
and eax, 1
cmp dword [0x1400c3fec], 0xa
jl 0x140026460
test eax, eax
jne 0x1400264b0
jmp 0x140026460
mov rax, qword [rsi + 8]
mov dword [rax], 2
xor eax, eax
cmp dword [0x1400c3fec], 0xa
jl 0x140026585
mov ecx, dword [0x1400c3fe8]
lea edx, [rcx + 1]
imul edx, ecx
and edx, 1
je 0x140026585
mov rax, qword [rsi + 8]
mov dword [rax], 2
mov rax, qword [rsi + 8]
mov dword [rax], 2
cmp dword [0x1400c3fec], 0xa
jl 0x140026520
mov eax, dword [0x1400c3fe8]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x140026546
jmp 0x140026520
mov rax, qword [rsi + 8]
cmp dword [rax], 0
je 0x140026185
xor eax, eax
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret