Function at 0x18000cde0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov rax, qword [0x180055228]
xor rax, rsp
mov qword [rbp + 0x158], rax
mov rsi, r9
mov r12d, r8d
mov rbx, rdx
mov r13, rcx
mov qword [rbp - 0x78], rcx
mov r15, qword [rbp + 0x1f0]
xor edi, edi
xor eax, eax
lock cmpxchg dword [section..HKT], edi
jne 0x18000d561
cmp qword [rbp + 0x1d8], rdi
je 0x18000d561
mov r14d, dword [rbp + 0x1e8]
xorps xmm0, xmm0
cmp r14d, 0xffffffff
jne 0x18000d1a1
or rdi, 0xffffffffffffffff
mov dword [rbp - 0x80], edi
movdqu xmmword [rbp + 0xf8], xmm0
xor r15d, r15d
mov qword [rbp + 0x108], r15
mov qword [rbp + 0x130], 0xf
mov qword [rbp + 0x128], r15
mov byte [rbp + 0x118], r15b
mov qword [rbp + 0x30], 0xf
mov qword [rbp + 0x28], r15
mov byte [rbp + 0x18], r15b
lea rdx, [0x18005e830]
cmp byte [0x18005e830], r15b
jne 0x18000ceb9
mov r8d, r15d
jmp 0x18000ceca
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000cec0
lea rcx, [rbp + 0x18]
call fcn.180018b30
nop
mov qword [rbp + 0x10], 0xf
mov qword [rbp + 8], r15
mov byte [rbp - 8], 0
lea rdx, [0x18005e430]
cmp byte [0x18005e430], 0
jne 0x18000cef9
mov r8, r15
jmp 0x18000cf0a
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000cf00
lea rcx, [rbp - 8]
call fcn.180018b30
nop
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x28], 0
lea rdx, [0x18005d830]
cmp byte [0x18005d830], 0
jne 0x18000cf39
mov r8, r15
jmp 0x18000cf4a
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000cf40
lea rcx, [rbp - 0x28]
call fcn.180018b30
nop
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x48], 0
lea rdx, [0x18005d430]
cmp byte [0x18005d430], 0
jne 0x18000cf79
mov r8, r15
jmp 0x18000cf8a
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000cf80
lea rcx, [rbp - 0x48]
call fcn.180018b30
nop
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], 0
lea rdx, [0x18005d030]
cmp byte [0x18005d030], 0
jne 0x18000cfc0
mov rdi, r15
jmp 0x18000cfc9
inc rdi
cmp byte [rdx + rdi], 0
jne 0x18000cfc0
mov r8, rdi
lea rcx, [rbp - 0x68]
call fcn.180018b30
nop
lea rax, [rbp + 0x18]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x118]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi]
mov r8d, r12d
mov rdx, rbx
mov rcx, r13
call fcn.18000b940
nop
lea rcx, [rbp - 0x68]
call fcn.180018d80
nop
lea rcx, [rbp - 0x48]
call fcn.180018d80
nop
lea rcx, [rbp - 0x28]
call fcn.180018d80
nop
lea rcx, [rbp - 8]
call fcn.180018d80
nop
lea rcx, [rbp + 0x18]
call fcn.180018d80
mov r14d, dword [rbp - 0x80]
cmp r14d, 0xffffffff
je 0x18000d128
mov rax, qword [rbp + 0x100]
cmp qword [rbp + 0xf8], rax
sete al
test al, al
jne 0x18000d128
mov dword [rbp + 0x110], 1
lea r8, [rbp + 0x110]
mov edx, 0x8004667e
mov rcx, r13
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsi], r15d
test r12d, r12d
je 0x18000d128
mov rdi, r12
mov r8, qword [rbp + 0xf8]
nop dword [rax + rax]
mov r9, qword [rbp + 0x100]
sub r9, r8
mov ecx, dword [rbx]
movsxd rax, ecx
mov edx, ecx
cmp rax, r9
jb 0x18000d104
mov rcx, qword [rbx + 8]
call fcn.1800182e0
mov rax, qword [rbp + 0x100]
mov r8, qword [rbp + 0xf8]
sub rax, r8
add dword [rsi], eax
jmp 0x18000d11e
mov r9, rcx
mov rcx, qword [rbx + 8]
call fcn.1800182e0
mov eax, dword [rbx]
add dword [rsi], eax
sub r14d, dword [rbx]
mov r8, qword [rbp + 0xf8]
add rbx, 0x10
sub rdi, 1
jne 0x18000d0d0
mov rax, qword [rbp + 0x130]
cmp rax, 0x10
jb 0x18000d195
inc rax
mov rcx, qword [rbp + 0x118]
cmp rax, 0xffffffffffffffff
jbe 0x18000d14b
call fcn.180022c44
int3
cmp rax, 0x1000
jb 0x18000d18f
test byte [rbp + 0x118], 0x1f
je 0x18000d162
call fcn.180022c44
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000d171
call fcn.180022c44
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000d180
call fcn.180022c44
int3
cmp rcx, 0x27
jbe 0x18000d18c
call fcn.180022c44
int3
mov rcx, rax
call fcn.18001e2c4
nop
lea rcx, [rbp + 0xf8]
jmp 0x18000d55c
movdqu xmmword [rbp + 0xe0], xmm0
mov qword [rbp + 0xf0], rdi
mov dword [rbp - 0x7c], r14d
mov qword [rbp + 0x150], 0xf
mov qword [rbp + 0x148], rdi
mov byte [rbp + 0x138], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
mov qword [rbp + 0xd0], 0xf
mov qword [rbp + 0xc8], rdi
mov byte [rbp + 0xb8], 0
or rdi, 0xffffffffffffffff
lea rdx, [0x18005e830]
cmp byte [0x18005e830], 0
jne 0x18000d208
xor r8d, r8d
jmp 0x18000d21a
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000d210
lea rcx, [rbp + 0xb8]
call fcn.180018b30
nop
mov qword [rbp + 0xb0], 0xf
mov qword [rbp + 0xa8], 0
mov byte [rbp + 0x98], 0
lea rdx, [0x18005e430]
cmp byte [0x18005e430], 0
jne 0x18000d259
xor r8d, r8d
jmp 0x18000d26a
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000d260
lea rcx, [rbp + 0x98]
call fcn.180018b30
nop
mov qword [rbp + 0x90], 0xf
mov qword [rbp + 0x88], 0
mov byte [rbp + 0x78], 0
lea rdx, [0x18005d830]
cmp byte [0x18005d830], 0
jne 0x18000d2a6
xor r8d, r8d
jmp 0x18000d2ba
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18000d2b0
lea rcx, [rbp + 0x78]
call fcn.180018b30
nop
mov qword [rbp + 0x70], 0xf
mov qword [rbp + 0x68], 0
mov byte [rbp + 0x58], 0
lea rdx, [0x18005d430]
cmp byte [0x18005d430], 0
jne 0x18000d2ed
xor r8d, r8d
jmp 0x18000d2fa
mov r8, rdi
inc r8
cmp byte [rdx + r8], 0
jne 0x18000d2f0
lea rcx, [rbp + 0x58]
call fcn.180018b30
nop
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x48], 0
mov byte [rbp + 0x38], 0
lea rdx, [0x18005d030]
cmp byte [0x18005d030], 0
jne 0x18000d330
xor edi, edi
jmp 0x18000d339
inc rdi
cmp byte [rdx + rdi], 0
jne 0x18000d330
mov r8, rdi
lea rcx, [rbp + 0x38]
call fcn.180018b30
nop
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x68], rax
lea rax, [rbp + 0x98]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x138]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi]
mov r8d, r12d
mov rdx, rbx
mov rcx, qword [rbp - 0x78]
call fcn.18000b940
nop
lea rcx, [rbp + 0x38]
call fcn.180018d80
nop
lea rcx, [rbp + 0x58]
call fcn.180018d80
nop
lea rcx, [rbp + 0x78]
call fcn.180018d80
nop
lea rcx, [rbp + 0x98]
call fcn.180018d80
nop
lea rcx, [rbp + 0xb8]
call fcn.180018d80
mov edi, dword [rbp - 0x70]
cmp edi, 1
jne 0x18000d40f
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r13, qword [rbp - 0x78]
test r15, r15
je 0x18000d417
mov rcx, r13
call r15
jmp 0x18000d417
mov r14d, dword [rbp - 0x7c]
mov r13, qword [rbp - 0x78]
cmp r14d, 0xffffffff
jne 0x18000d433
mov dword [rsi], 0xffffffff
mov ecx, 0x3e5
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000d4e8
mov r8, qword [rbp + 0xe0]
cmp edi, 2
jne 0x18000d473
cmp r8, qword [rbp + 0xe8]
sete al
test al, al
jne 0x18000d473
mov dword [rbp + 0x114], 1
lea r8, [rbp + 0x114]
mov edx, 0x8004667e
mov rcx, r13
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8, qword [rbp + 0xe0]
cmp r8, qword [rbp + 0xe8]
sete al
test al, al
jne 0x18000d4e8
mov dword [rsi], 0
test r12d, r12d
je 0x18000d4e8
mov rdi, r12
nop
mov r9, qword [rbp + 0xe8]
sub r9, r8
mov ecx, dword [rbx]
movsxd rax, ecx
mov edx, ecx
cmp rax, r9
jb 0x18000d4c4
mov rcx, qword [rbx + 8]
call fcn.1800182e0
mov rax, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xe0]
sub rax, r8
add dword [rsi], eax
jmp 0x18000d4de
mov r9, rcx
mov rcx, qword [rbx + 8]
call fcn.1800182e0
mov eax, dword [rbx]
add dword [rsi], eax
sub r14d, dword [rbx]
mov r8, qword [rbp + 0xe0]
add rbx, 0x10
sub rdi, 1
jne 0x18000d490
mov rax, qword [rbp + 0x150]
cmp rax, 0x10
jb 0x18000d555
inc rax
mov rcx, qword [rbp + 0x138]
cmp rax, 0xffffffffffffffff
jbe 0x18000d50b
call fcn.180022c44
int3
cmp rax, 0x1000
jb 0x18000d54f
test byte [rbp + 0x138], 0x1f
je 0x18000d522
call fcn.180022c44
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18000d531
call fcn.180022c44
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000d540
call fcn.180022c44
int3
cmp rcx, 0x27
jbe 0x18000d54c
call fcn.180022c44
int3
mov rcx, rax
call fcn.18001e2c4
nop
lea rcx, [rbp + 0xe0]
call fcn.180010ec0
mov rcx, qword [rbp + 0x158]
xor rcx, rsp
call fcn.18001e280
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret