Function at 0x140137cc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140491ab8]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov r10d, r9d
mov r9d, r8d
mov dword [rbp + 0x44], r8d
mov r15, rdx
mov rdi, rcx
mov r14, qword [rbp + 0x110]
mov qword [rsp + 0x50], r14
mov r12, qword [rbp + 0x120]
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x60], rax
xor ebx, ebx
cmp r8d, 2
je 0x140137d30
cmp r8d, 0x17
jne 0x140137f92
lea eax, [r10 - 1]
test eax, 0xfffffffb
jne 0x140137f92
xor eax, eax
lea edx, [rax + 0x10]
lock cmpxchg qword [rcx + 0x18], rbx
mov rsi, rax
mov qword [rbp + 0x38], rax
jne 0x140137dca
mov dword [rbp + 0x48], 0x25a207b9
mov dword [rbp + 0x4c], 0x4660ddf3
mov dword [rbp + 0x50], 0xe576e98e
mov dword [rbp + 0x54], 0x3e06748c
mov dword [rbp + 0x58], ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, edx
lea r8, [rbp + 0x48]
mov edx, 0xc8000006
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0x38]
test eax, eax
cmovne rcx, rdi
mov qword [rbp + 0x38], rcx
xchg qword [rdi + 0x18], rcx
mov rsi, qword [rbp + 0x38]
mov r9d, dword [rbp + 0x44]
mov edx, reloc.WS2_32.dll_recv
cmp rsi, rdi
cmove rsi, rbx
test rsi, rsi
je 0x140137f92
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], eax
mov word [rbp + 0x70], r9w
mov rcx, qword [r15]
movabs r14, 0x4d54ee85da812030
lea rbx, [0x1404926e8]
cmp rcx, 0xffffffffffffffff
jne 0x140137e6c
mov dword [rsp + 0x64], eax
mov rcx, qword [0x1404926f0]
add rcx, r14
cmp rcx, 1
jbe 0x140137e37
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140137e39
mov al, 1
movzx eax, al
add rax, 2
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x2719
mov qword [rsp + 0x68], rbx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r12 + 0x38], xmm0
movsd xmm1, qword [rsp + 0x70]
movsd qword [r12 + 0x48], xmm1
jmp 0x140137e93
mov r8d, 0x1c
cmp r9d, 2
cmove r8d, edx
lea rdx, [rbp + 0x70]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
setne dl
lea rcx, [r12 + 0x38]
call fcn.140131be0
mov rax, qword [r12 + 0x48]
test al, 1
je 0x140137f21
cmp rax, 1
jne 0x140137eae
cmp dword [r12 + 0x38], 0
je 0x140137f21
mov dword [rsp + 0x7c], 0
mov rcx, qword [0x1404926f0]
add rcx, r14
cmp rcx, 1
jbe 0x140137eda
mov rax, qword [0x1404926e8]
mov edx, 0x2726
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140137edc
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x78], 0x2726
mov qword [rbp - 0x80], rbx
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp - 0x28], xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rbp - 0x18], xmm1
lea rdx, [rbp - 0x28]
lea rcx, [r12 + 0x38]
call fcn.140130900
test al, al
jne 0x140137f21
mov rcx, qword [rdi + 8]
jmp 0x140138033
mov byte [r12 + 0x70], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r14, qword [rbp + 0x60]
mov qword [rsp + 0x30], r14
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rbp + 0x118]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r15]
call rsi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140137f81
cmp eax, 0x3e5
je 0x140137f81
xor r9d, r9d
mov r8d, eax
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.140134a60
jmp 0x14013803f
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.1401349d0
jmp 0x14013803f
xor eax, eax
lock cmpxchg qword [rdi + 0x10], rbx
mov rsi, rax
jne 0x140137fb1
mov rcx, qword [rdi]
mov rcx, qword [rcx]
call fcn.140159190
mov rsi, rax
xchg qword [rdi + 0x10], rax
test byte [r15 + 8], 3
jne 0x1401380a0
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x14013806e
mov dword [rbp - 0x6c], ebx
movabs r14, 0x4d54ee85da812030
mov rcx, qword [0x1404926f0]
add rcx, r14
lea rbx, [0x1404926e8]
cmp rcx, 1
jbe 0x140138001
mov rax, qword [0x1404926e8]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140138003
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x70], 0x2719
mov qword [rbp - 0x68], rbx
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [r12 + 0x38], xmm0
movsd xmm1, qword [rbp - 0x60]
movsd qword [r12 + 0x48], xmm1
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r12
call fcn.140134860
mov eax, 0xffffffff
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.14035b0c0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0x44], 1
lea r8, [rbp + 0x44]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [r12 + 0x38]
call fcn.140131be0
test ebx, ebx
js 0x14013802f
or byte [r15 + 8], 2
xor ebx, ebx
lea r9, [r12 + 0x38]
mov r8, qword [rbp + 0x118]
mov rdx, r14
mov rcx, qword [r15]
call fcn.140131ea0
test eax, eax
je 0x14013802f
mov dword [rbp - 0x54], ebx
movabs r14, 0x4d54ee85da812030
mov r13, qword [0x1404926f0]
lea rax, [r14 + r13]
lea rbx, [0x1404926e8]
cmp rax, 1
jbe 0x1401380ff
mov rax, qword [0x1404926e8]
mov edx, 0x2734
mov rcx, rbx
call qword [rax + 0x30]
mov r13, qword [0x1404926f0]
jmp 0x140138101
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x58], 0x2734
mov qword [rbp - 0x50], rbx
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp - 0x10], xmm0
movsd xmm1, qword [rbp - 0x48]
movsd qword [rbp], xmm1
lea rdx, [rbp - 0x10]
lea rcx, [r12 + 0x38]
call fcn.140130900
test al, al
jne 0x14013819e
xor eax, eax
mov dword [rbp - 0x3c], eax
lea rax, [r14 + r13]
cmp rax, 1
jbe 0x14013815e
mov rax, qword [0x1404926e8]
mov edx, 0x2733
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140138160
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x40], 0x2733
mov qword [rbp - 0x38], rbx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp + 8], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rbp + 0x18], xmm1
lea rdx, [rbp + 8]
lea rcx, [r12 + 0x38]
call fcn.140130900
test al, al
je 0x14013802f
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xor r14d, r14d
mov qword [rbp + 0x30], r14
movups xmmword [r12 + 0x38], xmm0
movsd xmm0, qword [rbp + 0x30]
movsd qword [r12 + 0x48], xmm0
mov rbx, qword [r15]
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x58], 1
cmp byte [rsi + 0x1e8], r14b
je 0x1401381f0
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r12
call fcn.140134860
jmp 0x14013824c
lea rcx, [rsi + 0x110]
mov r8, r12
mov rdx, rbx
call fcn.14013eab0
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x14013824c
mov byte [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x60], 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r14
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x60]
mov rcx, qword [rsi + 0x60]
call fcn.140132760
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 3
jmp 0x140138044