Function at 0x14006c160
Capabilities:
Reference sql statements

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 - 0x50]
sub rsp, 0x150
mov rax, qword [0x14025e2c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov edi, ecx
xor r13d, r13d
mov dword [rbp - 0x80], r13d
call fcn.14000e160
mov rsi, rax
lea rax, str.SELECT__name__FROM__guilds__WHERE__id___:d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x2d
mov dword [rsp + 0x40], edi
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rbp + 0x30], xmm0
mov qword [rsp + 0x40], 2
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x40], xmm0
vmovups xmm1, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call qword [sym.imp.fmt.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_fmt::v11::vformat_class_fmt::v11::basic_string_view_char___class_fmt::v11::basic_format_args_class_fmt::v11::context__]
nop
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003e8a0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14006c256
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c251
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c251
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d177c
mov qword [rbp - 0x40], r13
mov r12d, 0xf
mov qword [rbp - 0x38], r12
mov byte [rbp - 0x50], 0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14006c8dc
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.1401d19cc
mov r14, rax
mov qword [rbp + 0x30], rax
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp + 0x10], xmm0
mov eax, 4
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], r12
mov edx, dword [str.name]
mov dword [rbp + 0x10], edx
mov byte [rbp + 0x14], 0
mov dword [rbp - 0x80], 5
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14003ef90
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [r14], r13
mov qword [r14 + 8], r13
mov ecx, 0x18
call fcn.1401d19cc
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [r14], rax
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], r13
mov qword [r14 + 0x20], r13
vpxor xmm0, xmm0, xmm0
vmovups xmmword [r14 + 0x28], xmm0
mov qword [r14 + 0x38], r13
mov qword [r14 + 0x40], r13
vmovups ymm0, ymmword [rbx]
vmovups ymmword [r14 + 0x28], ymm0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r12
mov byte [rbx], 0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [r14 + 0x48], xmm0
mov qword [r14 + 0x58], r13
mov qword [r14 + 0x60], r12
mov byte [r14 + 0x48], 0
mov dword [r14 + 0x68], edi
mov dword [r14 + 0x6c], r13d
mov rdx, qword [rbx + 0x18]
cmp rdx, r12
jbe 0x14006c36f
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14006c367
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006c3b6
mov rcx, r8
vzeroupper
call fcn.1401d177c
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r12
mov byte [rbx], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14006c3c8
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c3c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c3c0
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
vzeroupper
call fcn.1401d177c
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], r12
mov byte [rbp + 0x10], 0
lea rax, str.SELECT__id____name____level__FROM__guild_ranks__WHERE__guild_id___:d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x47
mov dword [rsp + 0x30], edi
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x30], 2
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
vmovups xmm0, xmmword [rsp + 0x30]
vmovdqa xmmword [rsp + 0x30], xmm0
vmovups xmm1, xmmword [rsp + 0x50]
vmovdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x10]
vzeroupper
call qword [sym.imp.fmt.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_fmt::v11::vformat_class_fmt::v11::basic_string_view_char___class_fmt::v11::basic_format_args_class_fmt::v11::context__]
mov r15d, listen
mov dword [rbp - 0x80], r15d
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14003e8a0
mov rsi, qword [rax]
mov qword [rsp + 0x50], rsi
mov rdi, qword [rax + 8]
mov qword [rsp + 0x30], rdi
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rsp + 0x40], rsi
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdi
mov r13, 0xffffffffffffffff
test rbx, rbx
je 0x14006c4b5
mov eax, r13d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006c4b1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14006c4b1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov r15d, dword [rbp - 0x80]
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x14006c4ed
mov eax, r13d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14006c4e9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r13d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14006c4e9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov r15d, dword [rbp - 0x80]
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14006c52b
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c526
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c526
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d177c
test rsi, rsi
je 0x14006c814
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 5
mov qword [rbp - 0x38], r12
mov eax, dword [str.level]
mov dword [rbp - 0x50], eax
movzx eax, byte [0x1401fbfec]
mov byte [rbp - 0x4c], al
mov byte [rbp - 0x4b], 0
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14006cb90
mov word [rsp + 0x20], ax
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x70], xmm0
mov r9d, 4
mov qword [rbp - 0x60], r9
mov qword [rbp - 0x58], r12
mov ecx, dword [str.name]
mov dword [rbp - 0x70], ecx
mov byte [rbp - 0x6c], 0
mov rbx, qword [rsi + 0x10]
mov rdi, qword [rbx + 8]
mov r14, rbx
cmp byte [rdi + 0x19], 0
jne 0x14006c601
mov r13d, r9d
nop dword [rax]
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x70]
mov rsi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x14006c5c6
mov rcx, qword [rcx]
mov r8, rsi
cmp r13, rsi
cmovb r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006c84b
js 0x14006c854
mov r14, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x14006c5b0
mov r13, 0xffffffffffffffff
mov rsi, qword [rsp + 0x50]
mov r9d, 4
cmp byte [r14 + 0x19], 0
jne 0x14006c63b
lea rdx, [r14 + 0x20]
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14006c61a
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
mov r8, r9
cmp rdi, r9
cmovb r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006c85d
jns 0x14006c86b
lea rdx, str._Error___DBResult::getString__Column_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000d520
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
mov rcx, rax
call fcn.14000f490
lea rdx, str._does_not_exist_in_result_set.
mov rcx, rax
call fcn.14000d520
lea rdx, [0x14000b3f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x30], xmm0
xor ebx, ebx
mov qword [rbp - 0x20], rbx
or r15d, 2
mov r12d, 0xf
mov byte [rbp - 0x30], bl
mov qword [rbp - 0x18], r12
mov dword [rbp - 0x80], r15d
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x10], xmm0
mov qword [rbp], 2
mov qword [rbp + 8], r12
movzx eax, word [0x1401f59cc]
mov word [rbp - 0x10], ax
mov byte [rbp - 0xe], 0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14000f2d0
movzx r9d, byte [rsp + 0x20]
lea r8, [rbp - 0x30]
mov edx, eax
mov r14, qword [rbp + 0x30]
mov rcx, r14
call fcn.14006c040
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14006c72f
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c72a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006c8c0
call fcn.1401d177c
mov qword [rbp], rbx
mov qword [rbp + 8], r12
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14006c777
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c771
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006c8c7
call fcn.1401d177c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14006c7b2
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c7ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006c8ce
call fcn.1401d177c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], r12
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14006c7f9
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006c7f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006c8d5
call fcn.1401d177c
mov rcx, qword [rsi]
call qword [sym.imp.libmariadb.dll_mysql_fetch_row]
mov qword [rsi + 8], rax
test rax, rax
jne 0x14006c534
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14006c843
mov eax, r13d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14006c843
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r13d
cmp r13d, 1
jne 0x14006c843
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
jmp 0x14006c920
cmp rsi, r13
jae 0x14006c5e3
mov rdi, qword [rdi + 0x10]
jmp 0x14006c5e9
mov eax, 4
cmp rax, rdi
jb 0x14006c63b
cmp r14, rbx
je 0x14006c63b
mov rcx, qword [rsi + 8]
mov rax, qword [r14 + 0x40]
mov rdx, qword [rcx + rax*8]
or r15d, 2
vpxor xmm0, xmm0, xmm0
xor ebx, ebx
vmovups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rbx
test rdx, rdx
je 0x14006c69a
mov qword [rbp - 0x18], rbx
mov r8, r13
inc r8
cmp byte [rdx + r8], bl
jne 0x14006c8a3
lea rcx, [rbp - 0x30]
call fcn.14000dd80
mov r12d, 0xf
jmp 0x14006c6a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006c91e
mov r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14006c91e
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r13d
cmp r13d, 1
jne 0x14006c91e
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401d1730
lea r11, [rsp + 0x150]
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