Function at 0x14005d790
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
movzx ebx, byte [rcx + 0x11fb]
mov rdx, qword [rcx + 0x20]
mov eax, dword [rcx + 0x140]
mov r15, rcx
test bl, bl
je 0x14005d910
test bl, 1
jne 0x14005d7f0
test bl, 2
je 0x14005d7cd
test al, 0x20
je 0x14005d7f4
test al, 0x30
je 0x14005d7f4
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test al, 0x10
jne 0x14005d7c4
mov byte [r15 + 0x11fb], 0
cmp ebx, 4
je 0x14005dc80
mov eax, dword [r15 + 0x140]
mov esi, eax
and esi, 1
je 0x14005d81e
mov esi, ebx
and esi, 1
jne 0x14005da10
test al, 2
je 0x14005d827
and ebx, 2
jne 0x14005d82b
test al, 0x40
je 0x14005d83f
test al, 0x20
jne 0x14005d83f
mov rcx, r15
call fcn.140056b00
test al, al
je 0x14005d970
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.14005c650
movdqu xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x90], xmm0
test esi, esi
jne 0x14005d86e
mov rcx, r15
call fcn.14006bc70
test eax, eax
jne 0x14005d7d3
mov rcx, r15
call fcn.1400558a0
test eax, eax
jne 0x14005d960
movdqu xmm1, xmmword [rsp + 0x90]
mov rdx, rbx
mov rcx, r15
movups xmmword [rsp + 0x70], xmm1
call fcn.14005b920
test eax, eax
jne 0x14005d7d3
mov eax, dword [r15 + 0x140]
test eax, eax
jne 0x14005dd10
cmp byte [r15 + 0x1d5], 0
js 0x14005d9e0
mov r8, qword [r15 + 0xf0]
cmp r8, 0xffffffffffffffff
je 0x14005d9e0
mov rax, qword [r15 + 0x100]
cmp r8, rax
je 0x14005d9e0
cmp qword [r15 + 0x1b8], 0
jne 0x14005d9e0
sub r8, rax
lea rdx, str.transfer_closed_with__lld_bytes_remaining_to_read
mov rcx, r15
call fcn.140072600
mov eax, 0x12
jmp 0x14005d7d3
mov r8d, eax
mov rcx, 0xffffffffffffffff
and r8d, 0x15
cmp r8d, 1
jne 0x14005d92b
mov rcx, qword [rdx + 0x368]
and eax, 0x2a
mov r8, 0xffffffffffffffff
cmp eax, 2
jne 0x14005d941
mov r8, qword [rdx + 0x370]
xor r9d, r9d
mov rdx, 0xffffffffffffffff
call fcn.140057150
mov ebx, eax
jmp 0x14005d7fc
mov eax, 0x2a
jmp 0x14005d7d3
mov rcx, r15
call fcn.140056b10
test eax, eax
jne 0x14005d7d3
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.14005c650
mov rax, qword [r15 + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
movdqu xmm2, xmmword [rax + 0x400]
movups xmmword [rsp + 0x60], xmm2
call fcn.14005c6e0
cmp rax, 0x3e8
jg 0x14005ddf0
mov rcx, rbx
call fcn.14005c650
movdqu xmm3, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x90], xmm3
jmp 0x14005d86e
mov rcx, r15
call fcn.1400558a0
test eax, eax
jne 0x14005d960
test byte [r15 + 0x140], 0x3f
jne 0x14005d7d1
or byte [r15 + 0x1d4], 2
xor eax, eax
jmp 0x14005d7d3
lea rdx, [rsp + 0x80]
lea r8, [rsp + 0x88]
mov rcx, r15
mov r14, qword [r15 + 0x20]
call fcn.140054660
test eax, eax
jne 0x14005dca0
lea rax, [rsp + 0x90]
xor ebp, ebp
xor r13d, r13d
xor r12d, r12d
mov qword [rsp + 0x58], rax
mov edi, 0xa
test bpl, bpl
je 0x14005db55
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
test r8, r8
je 0x14005dbe0
mov rax, qword [r15 + 0x320]
test rax, rax
je 0x14005da8c
test r12, r12
jne 0x14005ddb0
cmp r8, rax
cmova r8, rax
mov r9, qword [rsp + 0x58]
mov rcx, r15
mov qword [rsp + 0x50], rdx
call fcn.14005d720
mov rdx, qword [rsp + 0x50]
test eax, eax
jne 0x14005dee1
mov rax, qword [rsp + 0x90]
test rax, rax
js 0x14005de5e
mov r13, rax
mov r9d, 0
je 0x14005dbe0
mov r8, r13
mov rcx, r15
call fcn.14005d620
test eax, eax
jne 0x14005dca0
movzx eax, byte [r15 + 0x1d4]
test al, 2
jne 0x14005de68
test bpl, bpl
jne 0x14005dbd0
test al, 8
je 0x14005dbd0
and dword [r15 + 0x140], 0xfffffffe
mov eax, dword [r15 + 0x140]
mov edx, eax
and edx, 0x11
cmp edx, 1
jne 0x14005dc12
sub edi, 1
jb 0x14005ddc0
mov rax, qword [r15 + 0x20]
mov rax, qword [rax + 0x348]
mov eax, dword [rax + 0x84]
test al, 0xc
jne 0x14005dc60
test al, 0x30
je 0x14005dc00
add r12, r13
mov r13d, esi
test bpl, bpl
jne 0x14005da57
xor edx, edx
mov rcx, r14
call fcn.14006b880
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
test r8, r8
je 0x14005dd98
mov rcx, qword [r15 + 0x320]
test rcx, rcx
jne 0x14005dcc0
test al, al
jne 0x14005dcd8
movzx ecx, byte [r15 + 0x1d4]
test cl, 1
jne 0x14005da8c
mov rax, qword [r15 + 0xf0]
cmp rax, 0xffffffffffffffff
je 0x14005da8c
sub rax, qword [r15 + 0x100]
cmp r8, rax
cmovg r8, rax
test rax, rax
jg 0x14005da8c
jmp 0x14005dbe8
test r13, r13
jne 0x14005db07
jmp 0x14005daff
movzx ecx, byte [r15 + 0x1d4]
and ecx, 0x10
jne 0x14005de7d
mov r9d, esi
xor r13d, r13d
jmp 0x14005dacb
xor edx, edx
mov rcx, r15
call fcn.14006b8d0
test al, al
jne 0x14005db46
mov rdx, qword [rsp + 0x80]
mov eax, dword [r15 + 0x140]
mov ecx, eax
and ecx, 3
test edi, edi
je 0x14005ddcd
cmp ecx, 2
je 0x14005dce0
mov rcx, r15
call fcn.1400547b0
test byte [r15 + 0x1d4], 2
jne 0x14005d7d1
mov eax, dword [r15 + 0x140]
jmp 0x14005d81e
mov edx, 1
mov rcx, r15
call fcn.14006b8d0
test al, al
jne 0x14005db46
jmp 0x14005dc12
lea rdx, str.select_poll_returned_error
mov rcx, r15
call fcn.140072600
mov eax, 0x37
jmp 0x14005d7d3
mov rdx, qword [rsp + 0x80]
mov rcx, r15
mov dword [rsp + 0x50], eax
call fcn.1400547b0
mov eax, dword [rsp + 0x50]
jmp 0x14005d7d3
test r12, r12
jne 0x14005def2
cmp r8, rcx
cmova r8, rcx
test al, al
je 0x14005db90
mov ebp, eax
jmp 0x14005da8c
test byte [r14 + 0x340], 0x40
jne 0x14005dcf3
test bpl, bpl
je 0x14005dc37
and eax, 0xffffffdd
mov rcx, r15
mov dword [r15 + 0x140], eax
call fcn.1400547b0
jmp 0x14005dc3f
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, r15
call fcn.14006d700
test rax, rax
jns 0x14005d9f0
mov rsi, qword [r15 + 0xf0]
mov rdi, qword [r15 + 0x100]
lea rdx, [rsp + 0x60]
mov rcx, rbx
movdqu xmm4, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x70], xmm4
movdqu xmm5, xmmword [r15 + 0xac0]
movups xmmword [rsp + 0x60], xmm5
cmp rsi, 0xffffffffffffffff
je 0x14005dec2
call fcn.14005c6e0
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov rcx, r15
mov r8, rax
lea rdx, str.Operation_timed_out_after__lld_milliseconds_with__lld_out_of__lld_bytes_received
call fcn.140072600
mov eax, 0x1c
jmp 0x14005d7d3
test al, al
movzx ecx, byte [r15 + 0x1d4]
cmovne ebp, eax
jmp 0x14005dbe8
mov esi, r13d
jmp 0x14005dc1a
mov ecx, eax
mov rdx, qword [rsp + 0x80]
and ecx, 3
mov r8d, eax
and r8d, 0x2a
cmp r8d, 2
sete r8b
lea r8d, [r8 + r8 + 1]
mov byte [r15 + 0x11fb], r8b
jmp 0x14005dc2e
mov rax, qword [r15 + 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
lea r12, [rsp + 0x88]
mov rbp, qword [rax + 0x370]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14005dea1
mov rax, qword [r15 + 0x20]
mov qword [rax + 0x400], rsi
mov qword [rax + 0x408], rdi
jmp 0x14005d9c1
mov esi, r13d
nop dword [rax]
mov rdx, qword [rsp + 0x80]
mov rcx, r15
call fcn.1400547b0
jmp 0x14005dc3f
mov dword [r15 + 0x140], 0
test edi, edi
jne 0x14005de94
mov byte [r15 + 0x11fb], 1
mov rdx, qword [rsp + 0x80]
jmp 0x14005dc37
mov dword [rsp + 0x20], 4
mov r9, r12
mov edx, 0xffff
mov rcx, rbp
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x14005de47
call fcn.14005c6e0
mov r9, rdi
lea rdx, str.Operation_timed_out_after__lld_milliseconds_with__lld_bytes_received
mov rcx, r15
mov r8, rax
call fcn.140072600
jmp 0x14005dd87
cmp eax, 0x51
jne 0x14005dca0
mov esi, r13d
jmp 0x14005dc12
mov ebp, eax
mov esi, r13d
jmp 0x14005dc1a