Function at 0x140081e90
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14025e2c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
call fcn.14000e160
mov rdi, rax
lea rax, [0x1401f8840]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], r15
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x38], r14
mov qword [rbp - 0x60], rsi
mov dword [rbp - 0x58], 4
lea rdx, str.SELECT__id__FROM__players__WHERE__name__
lea rcx, [rsp + 0x30]
call fcn.14000d520
mov rsi, rax
mov r9d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140081f71
mov rbx, qword [rbx]
mov r8, rbx
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.14003eb40
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0xf
cmova rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
mov rcx, rsi
call fcn.14000f490
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x140081fdb
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081fd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140081fd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d177c
nop
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x40], xmm0
vmovdqu xmm1, xmmword [0x140217f50]
vmovdqu xmmword [rbp + 0x50], xmm1
mov byte [rbp + 0x40], 0
mov dword [rsp + 0x20], listen
xor eax, eax
vmovups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
mov ecx, dword [rbp - 0x58]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14008203e
mov rax, qword [rsp + 0x78]
mov r8, qword [rax]
test r8, r8
je 0x14008203e
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
mov qword [rbp + 0x20], rdx
cmp r8, qword [rbp - 0x60]
cmovb r8, qword [rbp - 0x60]
sub r8, rdx
mov qword [rbp + 0x28], r8
jmp 0x140082077
test cl, 4
jne 0x14008206f
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008206f
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov qword [rbp + 0x20], rdx
mov rax, qword [rbp - 0x78]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
mov qword [rbp + 0x28], r8
jmp 0x140082077
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
test rdx, rdx
je 0x140082086
lea rcx, [rbp + 0x40]
call fcn.14000da10
nop
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x20]
mov rcx, rdi
call fcn.14003e8a0
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0xf
jbe 0x1400820d5
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400820d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400820d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d177c
cmp qword [rbp + 0x20], 0
setne sil
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140082119
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140082119
mov rbx, qword [rbp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140082119
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r15
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x88]
mov dword [rsp + rdx + 0x2c], r8d
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
call fcn.140037370
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, sil
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401d1730
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret