Function at 0x1800120c0
Capabilities:
Set socket configuration

Disassembly:
cmp byte [rdi + 0x34], 0xff
jmp 0x180012134
cmp rcx, r8
je 0x180009c5e
test dword [rcx + 0x1c], 0x100
jne 0x18004f9a9
mov dword [rdi + 0x20c], ebp
jmp 0x18001220e
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
xor r13d, r13d
xor ebp, ebp
xor edx, edx
mov rdi, rcx
mov rcx, qword [0x18008a130]
lea r8, [0x18008a130]
cmp rcx, r8
je 0x180012106
test byte [rcx + 0x1c], 8
jne 0x18004f97c
movzx eax, word [rdi + 0x2c]
xor r15d, r15d
lea esi, [r15 + 0x17]
cmp word [rdi + 0x2c], si
sete r15b
xor r12d, r12d
lea r10d, [rsi - 0x15]
cmp eax, esi
je 0x180009b6a
cmp eax, r10d
jne 0x180012138
mov al, byte [rdi + 0x30]
and al, 0xf0
cmp al, 0xe0
sete r12b
mov eax, 1
cmp qword [rdi + 0x118], rbp
je 0x180012156
mov r13d, eax
cmp byte [rdi + 0x254], bpl
jne 0x180012156
mov ebp, eax
mov edx, eax
test r15d, r15d
jne 0x180012163
test ebp, ebp
je 0x1800268ea
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x180009c4c
xor r9d, r9d
xor r8d, r8d
mov ecx, esi
cmp byte [rdi + 0x254], r14b
jne 0x18004f9c8
mov dword [rsp + 0x28], edx
mov edx, r10d
mov dword [rsp + 0x20], r13d
call fcn.1800153fc
mov rbx, rax
test rax, rax
je 0x1800121c7
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov rcx, rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test rbx, rbx
je 0x18004f9e1
mov r9d, dword [rdi + 0xac]
mov dword [rdi + 0x20c], ebp
test r9d, r9d
jne 0x180034e3e
cmp qword [rdi + 0xb0], 0
jne 0x18004fa28
test r15d, r15d
jne 0x180012201
test ebp, ebp
je 0x180027bda
mov qword [rdi + 0x18], rbx
test r14d, r14d
jne 0x18003d1df
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov qword [rdi + 0xb8], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rbx, qword [rdi + 0x10]
mov esi, r10d
jmp 0x180012167
mov qword [rdi + 0x10], rbx
jmp 0x180012205
mov r8d, ebp
mov edx, esi
mov rcx, rbx
test r12d, r12d
jne 0x18003d1ea
call fcn.180024394
mov r14d, eax
test eax, eax
je 0x1800121e6
jmp 0x18003d1e5
jmp 0x18004fab2
jmp 0x18004fab2
call sym.DNSAPI.dll_Socket_SetMulticastInterface
jmp 0x180034e54
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, 0x3a
mov r9, rdi
call fcn.18005b42c
mov rcx, qword [0x18008a130]
mov edx, ebp
lea r8, [0x18008a130]
jmp 0x180012106
mov rcx, qword [rcx + 0x10]
neg r15d
mov dword [rsp + 0x20], ebx
sbb eax, eax
and eax, r10d
lea r9d, [rax + 0x34]
call fcn.1800627ac
nop
jmp 0x180009c5e
and dword [rsp + 0x28], r9d
mov edx, eax
mov dword [rsp + 0x20], r13d
call fcn.1800153fc
mov rbx, rax
jmp 0x1800121c7
test ebp, ebp
je 0x18001220e
xor ebp, ebp
mov eax, r15d
neg eax
sbb esi, esi
and esi, 0x15
add esi, 2
test r15d, r15d
jne 0x18004fa0a
mov rbx, qword [rdi + 0x10]
test rbx, rbx
jne 0x18001220e
xor r8d, r8d
mov edx, r13d
mov ecx, esi
call fcn.180062544
mov rbx, rax
test rax, rax
je 0x18001220e
jmp 0x1800121d0
mov rcx, qword [0x18008a130]
lea r12, [0x18008a130]
mov esi, 0x400
cmp rcx, r12
je 0x18004fa61
test dword [rcx + 0x1c], esi
je 0x18004fa61
mov r9d, dword [rdi + 0xb8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, 0x3c
call fcn.180058fb0
mov rdx, qword [rdi + 0xb0]
mov rcx, rbx
call fcn.180066d58
mov r14d, eax
test eax, eax
je 0x1800121f4
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x180012205
test dword [rcx + 0x1c], esi
je 0x180012205
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, 0x3d
mov r9d, eax
call fcn.180058fb0
nop
jmp 0x180012205
test rbx, rbx
je 0x18004fac2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
jmp 0x18001220e