Function at 0x140014860
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
cmp qword [0x141446b80], rdi
jne 0x1400152dd
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
mov rsi, rdx
sar rsi, 0xb
mov rax, rsi
shr rax, 0x3f
add rsi, rax
mov qword [rsp + 0x38], rsi
cmp qword [0x141446bb0], rdi
jne 0x140014a3d
mov ecx, 4
call fcn.1403f4d70
mov rbx, rax
mov qword [rsp + 0x40], rax
mov dword [rax], 0xffffffff
call fcn.1401709f0
mov rsi, qword [0x141446bb0]
mov qword [0x141446bb0], rbx
test rsi, rsi
je 0x14001493b
movsxd rax, dword [rsi]
cmp eax, 0xffffffff
je 0x140014927
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsi], 0xffffffff
mov edx, 4
mov rcx, rsi
call fcn.1403f4db4
mov rbx, qword [0x141446bb0]
movzx r15d, word [0x14143ee00]
xor r8d, r8d
mov r12d, 2
mov edx, r12d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp eax, 0xffffffff
je 0x1400149fd
mov dword [rsp + 0x30], 1
movsxd rsi, r14d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400149f4
mov word [rbp - 0x70], r12w
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x6e], ax
mov dword [rbp - 0x6c], edi
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400149f4
mov dword [rbx], r14d
jmp 0x1400152eb
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [0x141446bb0]
mov qword [0x141446bb0], rdi
test rbx, rbx
je 0x1400152eb
movsxd rax, dword [rbx]
cmp eax, 0xffffffff
je 0x140014a2b
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rbx], 0xffffffff
mov edx, 4
mov rcx, rbx
call fcn.1403f4db4
jmp 0x1400152eb
mov dword [rbp + 0x30], edi
mov byte [rbp + 0x34], dil
mov r14d, dword [rsp + 0x34]
movzx r15d, word [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov ecx, 0x300
mov r13d, 2
mov rbx, qword [0x141446bb0]
movsxd rax, dword [rbx]
mov qword [rbp + 0x48], rax
mov word [rbp + 0x50], cx
xor r8d, r8d
mov edx, 1
lea rcx, [rbp + 0x48]
call qword [sym.imp.WS2_32.dll_WSAPoll]
test eax, eax
jle 0x1400151c4
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
movsxd rcx, dword [rbx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x800
lea rdx, [0x14145b940]
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd rbx, eax
mov r9d, reloc.WS2_32.dll_recvfrom
lea r8, [rbp + 0x34]
lea rdx, [rbp + 0x5c]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov r13d, dword [rbp + 0x5c]
mov dword [rbp + 0x30], r13d
cmp rbx, 0x54
ja 0x140014a54
movzx eax, word [0x14145b940]
cmp eax, 3
ja 0x140014a54
mov ecx, eax
test eax, eax
je 0x140014bff
sub ecx, 1
je 0x140014bae
sub ecx, 1
je 0x140014b66
cmp ecx, 1
jne 0x140014c51
mov r8, rbx
lea rdx, [0x14145b940]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x30], eax
mov rcx, rdi
nop dword [rax]
movzx eax, byte [rbp + rcx - 0x3c]
mov byte [rbp + rcx + 0x100], al
lea rcx, [rcx + 1]
test al, al
jne 0x140014b40
mov r14d, dword [rbp - 0x40]
movzx r15d, word [rbp - 0x4e]
mov r12, qword [rbp - 0x48]
jmp 0x140014c51
cmp rbx, 0x4c
ja 0x140014a54
mov r8, rbx
lea rdx, [0x14145b940]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x30], eax
mov rcx, rdi
nop dword [rax]
movzx eax, byte [rbp + rcx - 0x44]
mov byte [rbp + rcx + 0x100], al
lea rcx, [rcx + 1]
test al, al
jne 0x140014b90
movzx r15d, word [rbp - 0x4e]
jmp 0x140014c4a
cmp rbx, 0x50
ja 0x140014a54
mov r8, rbx
lea rdx, [0x14145b940]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x30], eax
mov rcx, rdi
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x40]
mov byte [rbp + rcx + 0x100], al
lea rcx, [rcx + 1]
test al, al
jne 0x140014be0
mov r14d, dword [rbp - 0x44]
movzx r15d, word [rbp - 0x48]
jmp 0x140014c4e
cmp rbx, 0x4c
ja 0x140014a54
mov r8, rbx
lea rdx, [0x14145b940]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x30], eax
mov rcx, rdi
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x44]
mov byte [rbp + rcx + 0x100], al
lea rcx, [rcx + 1]
test al, al
jne 0x140014c30
mov r15d, 0x1f96
mov r14d, dword [rbp - 0x48]
mov r12, rdi
movzx r10d, r15w
shl r10, 0x20
or r10, r13
mov qword [rsp + 0x40], r10
mov rax, r10
shr rax, 0x21
xor rax, r10
movabs rcx, 0xff51afd7ed558ccd
imul rax, rcx
mov rdx, rax
shr rdx, 0x21
xor rdx, rax
imul rdx, qword [0x14143f408]
mov rax, rdx
shr rax, 0x21
xor rdx, rax
mov rcx, rdx
and ecx, 0x1f
mov eax, dword [0x14143f43c]
shrx r8, rcx, rax
mov r11d, dword [0x14143f438]
add r8d, r11d
shr rdx, 5
mov rsi, qword [0x14143f428]
and rdx, rsi
mov r9, qword [0x14143f418]
movzx eax, byte [rdx + r9]
imul rcx, rdx, 0x68
mov rbx, qword [0x14143f410]
add rcx, rbx
cmp r8d, eax
jne 0x140014ce2
cmp r10, qword [rcx]
je 0x140014d3a
inc rdx
add r8d, r11d
movzx eax, byte [rdx + r9]
cmp r8d, eax
jne 0x140014cf8
cmp r10, qword [rcx + 0x68]
je 0x140014d3a
inc rdx
add rcx, 0xd0
add r8d, r11d
movzx eax, byte [rdx + r9]
cmp r8d, eax
jbe 0x140014cdb
test rsi, rsi
jne 0x140014d19
mov rdx, rdi
jmp 0x140014d3a
mov rcx, r9
sub rcx, rbx
movabs rax, 0x4ec4ec4ec4ec4ec5
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rcx, [rdx + r9]
imul rdx, rdx, 0x68
add rdx, rbx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
test r14d, r14d
js 0x14001514e
cmp rdx, r9
jne 0x1400150c2
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rdi
lea rax, [rbp + 0x34]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140014d80
lea rdx, [rbp + 0x34]
lea rcx, [rbp + 0x10]
call fcn.140004000
nop
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x1400151b8
cmp dword [0x14143ef2c], 0x7fffffff
je 0x1400151a2
lea r8, [rbp + 0x10]
lea rdx, [rbp - 0x80]
call fcn.14001b530
mov rcx, qword [0x14143f4c8]
cmp qword [rax], rcx
jne 0x140015010
lea rax, [rbp - 0x50]
mov qword [rbp - 0x70], rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.14001bde0
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14001bde0
nop
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x60]
call fcn.14001cbb0
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x14001531b
sub ecx, 1
je 0x140014ebe
sub ecx, 1
je 0x140014e5a
cmp ecx, 1
jne 0x140014ebe
mov rbx, qword [rsp + 0x60]
shl rbx, 6
add rbx, qword [0x14143f4c0]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.14001bd50
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x30]
call fcn.14001bd50
jmp 0x140014ebe
mov rax, qword [rsp + 0x60]
shl rax, 6
add rax, qword [0x14143f4c0]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rax], xmm0
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rdi
vmovups ymm0, ymmword [rbp - 0x50]
vmovups ymmword [rax], ymm0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], send
mov byte [rbp - 0x50], 0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rdi
mov qword [rax + 0x38], rdi
vmovups ymm0, ymmword [rbp - 0x30]
vmovups ymmword [rax + 0x20], ymm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], send
mov byte [rbp - 0x30], 0
lea rcx, [rbp - 0x30]
vzeroupper
call fcn.1400035f0
lea rcx, [rbp - 0x50]
call fcn.1400035f0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call fcn.14001bde0
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__void___cdecl_UpdateBroadcastClients_void_::_43::_lambda_1___void__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64_.0
mov qword [rbp + 0x70], rax
vmovups ymm1, ymmword [rbp - 0x50]
vmovups ymmword [rbp + 0x78], ymm1
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], send
mov byte [rbp - 0x50], 0
lea rax, [rbp + 0x70]
mov qword [rbp + 0xa8], rax
lea rbx, reloc.WS2_32.dll_bind
mov qword [rbp - 0x70], rbx
mov rcx, rbx
vzeroupper
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140015196
cmp dword [0x14143ee64], 0x7fffffff
je 0x140015180
mov dword [rbp + 0xb0], r13d
mov qword [rbp + 0xf0], rdi
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140014f6d
mov rax, qword [rcx]
lea rdx, [rbp + 0xb8]
call qword [rax]
mov qword [rbp + 0xf0], rax
mov rax, qword [0x14143eeb8]
cmp rax, qword [0x14143eec0]
je 0x140014f96
lea rdx, [rbp + 0xb0]
mov rcx, rax
call fcn.14001f380
add qword [0x14143eeb8], 0x48
jmp 0x140014fad
lea r8, [rbp + 0xb0]
mov rdx, rax
lea rcx, [0x14143eeb0]
call fcn.14001f090
nop
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x140014fcc
mov rax, qword [rcx]
lea rdx, [rbp + 0xb8]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [0x14143ee68]
call qword [sym.imp.MSVCP140.dll__Cnd_signal]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
nop
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x140015007
mov rax, qword [rcx]
lea rdx, [rbp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xa8], rdi
lea rcx, [rbp - 0x50]
call fcn.1400035f0
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rsi, qword [rsp + 0x38]
mov qword [rbp - 0x50], rsi
mov eax, dword [rsp + 0x30]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], r14d
mov word [rbp - 0x40], r15w
mov qword [rbp - 0x38], r12
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140015060
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x30]
call fcn.140004000
vmovups ymm1, ymmword [rbp + 0x10]
vmovups ymmword [rbp - 0x10], ymm1
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], send
mov byte [rbp + 0x10], 0
lea r9, [rbp - 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x70]
vzeroupper
call fcn.14001c1b0
nop
lea rcx, [rbp - 0x10]
call fcn.1400035f0
lea rcx, [rbp - 0x30]
call fcn.1400035f0
nop
jmp 0x140014a54
mov rsi, qword [rsp + 0x38]
mov qword [rdx + 8], rsi
mov dword [rdx + 0x14], r14d
mov word [rdx + 0x18], r15w
mov qword [rdx + 0x20], r12
mov eax, dword [rsp + 0x30]
mov dword [rdx + 0x10], eax
lea r9, [rdx + 0x28]
mov rax, r9
cmp qword [r9 + 0x18], 0xf
jbe 0x1400150f0
mov rax, qword [r9]
lea r8, [rbp + 0x100]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140015113
inc rax
test ecx, ecx
jne 0x140015100
test edx, edx
je 0x140014a54
lea rax, [rbp + 0x100]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140015130
lea rdx, [rbp + 0x100]
mov rcx, r9
call fcn.14001bf00
jmp 0x140014a54
cmp rdx, r9
jne 0x14001515d
mov rsi, qword [rsp + 0x38]
jmp 0x140014a54
vmovups xmm0, xmmword [rsp + 0x50]
vmovdqa xmmword [rbp - 0x70], xmm0
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x70]
call fcn.14001b6a0
mov rsi, qword [rsp + 0x38]
jmp 0x140014a54
mov dword [0x14143ee64], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [0x14143ef2c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r9, qword [0x14143f418]
cmp qword [0x14143f420], 0
jne 0x1400151de
mov r8, r9
mov qword [rbp - 0x70], r9
jmp 0x140015229
mov r8, qword [0x14143f410]
mov rdi, r9
mov rax, qword [r9]
test rax, rax
jne 0x140015203
add rdi, 8
add r8, 0x340
mov rax, qword [rdi]
test rax, rax
je 0x1400151f0
bsf rcx, rax
mov eax, 0x40
cmovne eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
add rdi, rcx
imul rax, rcx, 0x68
add r8, rax
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x68], rdi
cmp r8, r9
je 0x1400152eb
vmovups xmm0, xmmword [rbp - 0x70]
nop dword [rax + rax]
mov rax, rsi
sub rax, qword [r8 + 8]
cmp rax, 0xfa0
jle 0x14001527f
vmovdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
call fcn.14001b6a0
vmovups xmm0, xmmword [rax]
vmovups xmmword [rbp - 0x70], xmm0
mov r9, qword [0x14143f418]
mov rdi, qword [rax + 8]
vmovq r8, xmm0
jmp 0x1400152d2
inc rdi
add r8, 0x68
mov rax, qword [rdi]
test rax, rax
jne 0x1400152a3
nop
add rdi, 8
add r8, 0x340
mov rax, qword [rdi]
test rax, rax
je 0x140015290
bsf rcx, rax
mov eax, 0x40
cmovne eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
movsxd rcx, eax
add rdi, rcx
mov qword [rbp - 0x68], rdi
imul rax, rcx, 0x68
add r8, rax
mov qword [rbp - 0x70], r8
vmovups xmm0, xmmword [rbp - 0x70]
cmp r8, r9
jne 0x140015240
jmp 0x1400152eb
cmp qword [0x14143f420], rdi
je 0x1400152eb
call fcn.14001b850
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1403f4b10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14001c8f0
nop
int3