Function at 0x14002be00
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x768
mov rax, qword [0x14049b9c0]
xor rax, rsp
mov qword [rsp + 0x750], rax
mov r12, qword [rsp + 0x7c0]
mov r14, rcx
lea rcx, str.MARIADB_PLUGIN_DIR
mov r15d, r9d
mov esi, r8d
mov rbp, rdx
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov dword [r14 + 0x78], 0
mov rbx, rax
mov ecx, dword [str.00000]
mov dword [r14 + 0x27f], ecx
movzx ecx, word [0x14009b2ac]
mov word [r14 + 0x283], cx
mov byte [r14 + 0x7f], 0
mov rcx, qword [r14 + 0x288]
test rcx, rcx
je 0x14002be82
mov dword [rcx + 4], 0
cmp byte [0x14049cb6b], 0
je 0x14002c13b
lea rcx, [0x14049cba8]
mov qword [rsp + 0x760], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
js 0x14002bec3
mov edx, esi
mov rcx, rbp
call fcn.14002b940
test rax, rax
je 0x14002bec3
lea rbx, str.it_is_already_loaded
jmp 0x14002c0b3
mov rcx, qword [r14 + 0x440]
test rcx, rcx
je 0x14002bed7
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14002beda
mov rcx, rbx
test rcx, rcx
lea r9, [0x140096c7a]
mov rax, r9
lea rdx, [0x1400a5968]
cmovne r9, rcx
lea r8, str._s_s_s_s
cmovne rax, rdx
lea rcx, str..dll
mov qword [rsp + 0x30], rcx
mov edx, 0x201
mov qword [rsp + 0x28], rbp
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x20], rax
call fcn.140022700
lea rdx, str.__________.___
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x14002bf45
lea rbx, str.invalid_plugin_name
jmp 0x14002c0b3
xor r8d, r8d
lea rcx, [rsp + 0x140]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
jne 0x14002c024
mov byte [rsp + 0x40], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], 0xff
lea rax, [rsp + 0x40]
mov ecx, 0x1000
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14002bfa7
test rax, rax
je 0x14002bfec
lea rcx, [rsp + rax + 0x3f]
nop word [rax + rax]
movzx edx, byte [rcx]
cmp dl, 0xa
je 0x14002bfcd
cmp dl, 0xd
jne 0x14002bfd6
dec rcx
sub rax, 1
jne 0x14002bfc0
test rax, rax
je 0x14002bfec
cmp rax, 0xff
jae 0x14002c16b
mov byte [rsp + rax + 0x40], 0
lea rax, [rsp + 0x140]
mov edx, 0x400
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, str._s_Library_path_is__s
lea rcx, [rsp + 0x350]
call fcn.140022700
lea rbx, [rsp + 0x350]
jmp 0x14002c0b3
lea rdx, str._mysql_client_plugin_declaration_
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x14002c04e
mov rcx, rdi
lea rbx, str.not_a_plugin
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002c0aa
test esi, esi
js 0x14002c05f
cmp esi, dword [rax]
je 0x14002c05f
lea rbx, str.type_mismatch
jmp 0x14002c0aa
mov r8, qword [rbx + 8]
mov rax, rbp
sub r8, rbp
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14002c083
inc rax
test ecx, ecx
jne 0x14002c070
test edx, edx
je 0x14002c090
lea rbx, str.name_mismatch
jmp 0x14002c0aa
test esi, esi
jns 0x14002c110
mov edx, dword [rbx]
mov rcx, rbp
call fcn.14002b940
test rax, rax
je 0x14002c110
lea rbx, str.it_is_already_loaded
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [0x14049cba8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9, qword [str.Plugin__s_could_not_be_loaded:__s]
mov edx, 0x80b
mov r8, qword [str.pg_n_]
mov rcx, r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbp
call fcn.14001b490
xor eax, eax
mov rdi, qword [rsp + 0x760]
mov rcx, qword [rsp + 0x750]
xor rcx, rsp
call fcn.14008e500
add rsp, 0x768
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov r9d, r15d
mov qword [rsp + 0x20], r12
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14002b7b0
lea rcx, [0x14049cba8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
jmp 0x14002c0e7
mov r9, qword [str.Plugin__s_could_not_be_loaded:__s]
lea rax, str.not_initialized
mov r8, qword [str.pg_n_]
mov edx, 0x80b
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], rbp
call fcn.14001b490
xor eax, eax
jmp 0x14002c0ef
call fcn.14008e114
int3