Function at 0x140034e6f
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
mov r12, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
movzx edi, word [rdx]
test di, di
push 2
pop rax
push 0x17
pop r15
cmove r15d, eax
mov rax, qword [0x140b18c30]
cmp rax, 3
jne 0x14003501e
and dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x81
push 1
pop rdx
push 6
pop r8
mov ecx, r15d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140034f26
mov qword [rbp + 0x98], r12
lea r15, [rbp + 0xb0]
mov dword [r15], 1
mov byte [rbp + 0xdf], 1
mov qword [rbp + 0xd0], rax
mov rcx, rax
mov edx, 0x8004667e
mov r8, r15
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140034f6d
xor edx, edx
jmp 0x140034f75
call fcn.140041979
lea rdx, [0x140a91d20]
lea r15, [rbp - 0x38]
push 0xe
pop r8
mov rcx, r15
mov r9, rax
call fcn.140034b23
mov rcx, qword [r15]
mov rax, qword [r15 + 8]
test rcx, rcx
je 0x140034ee9
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rax
mov dword [rsi + 8], 0x3b9aca01
jmp 0x1400352a5
call fcn.140041979
mov rdx, rax
mov byte [rbp + 0xdf], 1
lea r8, [0x140a91d2e]
lea rcx, [rbp - 0x38]
push 0x19
pop r9
call fcn.140035440
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140034faa
mov rcx, qword [rbp - 0x20]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rbp - 0x30]
jmp 0x140035289
mov r13d, dword [r14 + 0x48]
mov r12d, dword [r14 + 0x58]
cmp r13d, 0x3b9aca00
jne 0x140034fc8
cmp r12d, 0x3b9aca00
je 0x14003514c
cmp r12d, 0x3b9aca01
je 0x14003514c
mov rax, qword [r14 + 0x40]
mov qword [rbp + 0xa8], rax
mov rax, qword [r14 + 0x50]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0xdf], 1
push 8
pop rdx
push 1
pop r8
mov rcx, qword [rbp + 0xd0]
call fcn.1400c778c
test rax, rax
je 0x140035055
mov byte [rbp + 0xdf], 1
mov rcx, rax
call fcn.140034beb
jmp 0x14003514c
lea rax, [rbp + 0x78]
mov byte [rax], 1
lea r8, [rbp + 0xb0]
mov qword [r8], rax
lea rax, [0x140aae248]
mov qword [rsp + 0x20], rax
lea rcx, [0x140b18c30]
lea r9, [0x140aae150]
xor edx, edx
call fcn.1400fa5c0
jmp 0x140034ec3
xor r9d, r9d
mov r10d, 0
cmp r13d, 0x3b9aca00
je 0x1400350a9
mov ecx, 0x3e8
mov rax, qword [rbp + 0xa8]
mul rcx
mov rcx, rax
mov r8, rdx
xor r10d, r10d
mov r11d, 0xf4240
mov eax, r13d
xor edx, edx
div r11d
add rax, rcx
adc r8, 0
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
neg r8
sbb r10d, r10d
or r10d, eax
cmp r12d, 0x3b9aca00
je 0x1400350f4
mov ecx, 0x3e8
mov rax, qword [rbp + 0xa0]
mul rcx
mov rcx, rax
mov r8, rdx
xor r9d, r9d
mov r11d, 0xf4240
mov eax, r12d
xor edx, edx
div r11d
add rax, rcx
adc r8, 0
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
neg r8
sbb r9d, r9d
or r9d, eax
lea r8, [rbp - 0x38]
mov dword [r8], 1
mov dword [r8 + 4], r10d
mov dword [r8 + 8], r9d
and dword [rbp + 0xb0], 0
mov byte [rbp + 0xdf], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x30], r15
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
push 0xc
pop r9
mov rcx, qword [rbp + 0xd0]
mov edx, 0x98000004
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1400353b1
test di, di
je 0x1400351bb
cmp byte [r14 + 0x86], 0
je 0x140035203
mov eax, dword [r14 + 0x87]
mov ecx, dword [r14 + 0x93]
lea rdx, [rbp + 0xb0]
mov dword [rdx + 0x10], ecx
mov rcx, qword [r14 + 0x8b]
mov qword [rdx + 8], rcx
mov dword [rdx + 4], eax
and qword [rdx + 0x14], 0
and word [rdx + 0x1c], 0
mov word [rdx], 1
lea r15, [rbp - 0x38]
mov rcx, r15
call fcn.1400c78cc
mov byte [rbp + 0xdf], 1
mov rcx, qword [rbp + 0xd0]
mov rdx, r15
call fcn.1400c7882
jmp 0x140035250
cmp byte [r14 + 0x81], 0
je 0x14003521f
mov eax, dword [r14 + 0x82]
lea rdx, [rbp + 0xb0]
mov dword [rdx + 2], eax
and word [rdx + 6], 0
and word [rdx], 0
lea r15, [rbp - 0x38]
mov rcx, r15
call fcn.1400c78cc
mov byte [rbp + 0xdf], 1
mov rcx, qword [rbp + 0xd0]
mov rdx, r15
call fcn.1400c7882
jmp 0x140035250
xorps xmm0, xmm0
movups xmmword [rbp + 0xbe], xmm0
movups xmmword [rbp + 0xb4], xmm0
mov word [rbp + 0xb0], 1
jmp 0x140035227
and qword [rbp + 0xb0], 0
lea r15, [rbp - 0x38]
lea rdx, [rbp + 0xb0]
mov rcx, r15
call fcn.1400c78cc
mov byte [rbp + 0xdf], 1
mov rcx, qword [rbp + 0xd0]
mov rdx, r15
call fcn.1400c7882
mov byte [rbp + 0xdf], 1
lea r8, [0x140a91d47]
lea rcx, [rbp + 0x78]
push 0x14
pop r9
mov rdx, rax
call fcn.140035440
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x1400352ba
mov rcx, qword [rbp + 0x90]
mov qword [rsi + 0x28], rcx
movups xmm0, xmmword [rbp + 0x80]
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 8], 0x3b9aca01
mov rcx, qword [rbp + 0xd0]
call qword [sym.imp.ws2_32.dll_closesocket]
nop
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp byte [r14 + 0x98], 0
je 0x1400352e4
push 4
pop rdx
push 1
pop r8
mov rcx, qword [rbp + 0xd0]
call fcn.1400c778c
test rax, rax
je 0x1400352e4
mov rcx, rax
call fcn.140034beb
cmp qword [r14], 0
je 0x14003531f
mov rax, qword [r14 + 8]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, qword [rbp + 0xd0]
mov edx, 0x1001
call fcn.1400c778c
test rax, rax
je 0x14003531f
mov rcx, rax
call fcn.140034beb
cmp qword [r14 + 0x10], 0
je 0x14003535b
mov rax, qword [r14 + 0x18]
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
neg rcx
sbb r8d, r8d
or r8d, eax
mov rcx, qword [rbp + 0xd0]
mov edx, 0x1002
call fcn.1400c778c
test rax, rax
je 0x14003535b
mov rcx, rax
call fcn.140034beb
mov eax, dword [rbp + 0x150]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x68], xmm1
movups xmmword [rbp + 0x58], xmm0
mov rcx, qword [rbp + 0x98]
mov qword [rsi], rcx
mov dword [rsi + 8], eax
movups xmm0, xmmword [rbp + 0x54]
movups xmm1, xmmword [rbp + 0x64]
movups xmmword [rsi + 0xc], xmm0
movups xmmword [rsi + 0x1c], xmm1
mov eax, dword [rbp + 0x74]
mov dword [rsi + 0x2c], eax
mov rax, qword [rbp + 0xd0]
mov qword [rsi + 0x30], rax
xor eax, eax
mov byte [rsi + 0x80], al
mov byte [rsi + 0x88], al
jmp 0x1400352a5
call fcn.140041979
jmp 0x14003500a