Function at 0x1400150c0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x768
mov rax, qword [0x14037ac60]
xor rax, rsp
mov qword [rsp + 0x750], rax
mov r12, qword [rsp + 0x7c0]
mov rbp, rcx
lea rcx, str.MARIADB_PLUGIN_DIR
mov r15d, r9d
mov esi, r8d
mov r14, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov dword [rbp + 0x78], 0
mov rbx, rax
mov ecx, dword [str.00000]
mov dword [rbp + 0x27f], ecx
movzx ecx, word [0x140066950]
mov word [rbp + 0x283], cx
mov byte [rbp + 0x7f], 0
mov rcx, qword [rbp + 0x288]
test rcx, rcx
je 0x14001513f
mov dword [rcx + 4], 0
mov rdx, r14
mov rcx, rbp
call fcn.140014cc0
test eax, eax
je 0x140015155
xor eax, eax
jmp 0x1400153da
lea rcx, [0x14037b0b0]
mov qword [rsp + 0x760], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
js 0x140015189
mov edx, esi
mov rcx, r14
call fcn.140014c00
test rax, rax
je 0x140015189
lea rbx, str.it_is_already_loaded
jmp 0x140015373
mov rcx, qword [rbp + 0x440]
test rcx, rcx
je 0x14001519d
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400151a0
mov rcx, rbx
test rcx, rcx
lea r9, [0x140065a45]
mov rax, r9
lea rdx, [0x140070d18]
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], r14
lea rcx, [rsp + 0x140]
mov qword [rsp + 0x20], rax
call fcn.14000b880
lea rdx, str.__________.___
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x14001520c
lea rbx, str.invalid_plugin_name
jmp 0x140015373
xor r8d, r8d
lea rcx, [rsp + 0x140]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
jne 0x1400152e7
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
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140015270
test rax, rax
je 0x1400152af
lea rcx, [rsp + rax + 0x3f]
movzx edx, byte [rcx]
cmp dl, 0xa
je 0x140015290
cmp dl, 0xd
jne 0x140015299
dec rcx
sub rax, 1
jne 0x140015283
test rax, rax
je 0x1400152af
cmp rax, 0xff
jae 0x1400153fb
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.14000b880
lea rbx, [rsp + 0x350]
jmp 0x140015373
lea rdx, str._mysql_client_plugin_declaration_
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140015311
mov rcx, rdi
lea rbx, str.not_a_plugin
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14001536a
test esi, esi
js 0x140015322
cmp esi, dword [rax]
je 0x140015322
lea rbx, str.type_mismatch
jmp 0x14001536a
mov r8, qword [rbx + 8]
mov rax, r14
sub r8, r14
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140015343
inc rax
test ecx, ecx
jne 0x140015330
test edx, edx
je 0x140015350
lea rbx, str.name_mismatch
jmp 0x14001536a
test esi, esi
jns 0x1400153a9
mov edx, dword [rbx]
mov rcx, r14
call fcn.140014c00
test rax, rax
je 0x1400153a9
lea rbx, str.it_is_already_loaded
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [0x14037b0b0]
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.HY000]
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
call fcn.1400056d0
xor eax, eax
jmp 0x1400153d2
mov r9d, r15d
mov qword [rsp + 0x20], r12
mov r8, rdi
mov rdx, rbx
mov rcx, rbp
call fcn.140014a70
lea rcx, [0x14037b0b0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
mov rdi, qword [rsp + 0x760]
mov rcx, qword [rsp + 0x750]
xor rcx, rsp
call fcn.1400623a0
add rsp, 0x768
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
call fcn.14006273c
int3