Function at 0x14005a390
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x58
mov r10d, dword [r9]
mov r11, rdx
mov rax, qword [r8]
mov rdi, rcx
mov rbx, r9
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x78]
mov ecx, dword [r11]
lea rdx, [rax + r10*8]
sub ecx, r10d
lea rax, [0x140c22ec8]
mov qword [rsp + 0x20], rax
call fcn.1400599f0
add dword [rbx], eax
mov rax, qword [0x140c22ec8]
test rax, rax
jne 0x14005a3f4
lea rcx, str.MYSQL_GROUP_SUFFIX
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x140c22ec8], rax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005a42c
cmp byte [0x140c22ed9], 0
jne 0x14005a42c
lea rbx, [0x140c230e0]
mov rdx, rbx
call fcn.140059840
test eax, eax
jne 0x14005a653
mov rax, qword [0x140c22ec8]
mov qword [0x140c22ec0], rbx
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14005a469
cmp byte [0x140c22ed9], 0
jne 0x14005a469
lea rbx, [0x140c22ee0]
mov rdx, rbx
call fcn.140059840
test eax, eax
jne 0x14005a653
mov rax, qword [0x140c22ec8]
mov qword [0x140c22ed0], rbx
jmp 0x14005a470
mov rbx, qword [0x140c22ed0]
mov qword [rsp + 0x88], rbp
mov rbp, qword [rsp + 0x90]
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov r14, qword [rsp + 0x98]
mov qword [rsp + 0x30], r15
mov byte [0x140c22ed9], 1
test rax, rax
je 0x14005a5b9
lea rcx, [0x140059ad0]
cmp rbp, rcx
jne 0x14005a5b9
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rax + rdi + 1], sil
lea rdi, [rdi + 1]
jne 0x14005a4d0
mov r15, qword [r14 + 0x10]
mov rcx, qword [r14]
mov eax, dword [r15]
lea edx, [rax*2 + 1]
shl rdx, 3
call fcn.14005ff20
mov r13, rax
test rax, rax
je 0x14005a601
mov eax, dword [r15]
mov r12d, esi
test eax, eax
je 0x14005a59f
nop
mov eax, r12d
mov rbx, 0xffffffffffffffff
lea rcx, [rax*8]
mov rax, qword [r15 + 0x10]
lea r8, [rcx + r13]
mov qword [rsp + 0x78], r8
mov rdx, qword [rcx + rax]
mov qword [r8], rdx
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14005a536
mov rcx, qword [r14]
lea rdx, [rdi + 1]
add rdx, rbx
mov edx, edx
call fcn.14005ff20
mov rsi, rax
test rax, rax
je 0x14005a601
mov ecx, dword [r15]
mov r8, rbx
mov rdx, qword [rsp + 0x78]
add ecx, r12d
mov qword [r13 + rcx*8], rax
mov rcx, rax
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [0x140c22ec8]
lea r8, [rdi + 1]
lea rcx, [rsi + rbx]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [r15]
inc r12d
cmp r12d, eax
jb 0x14005a510
xor esi, esi
mov rdi, qword [rsp + 0x70]
add eax, eax
mov dword [r15], eax
mov qword [r15 + 0x10], r13
mov qword [r13 + rax*8], rsi
mov rbx, qword [0x140c22ed0]
test rbx, rbx
je 0x14005a608
mov dword [rsp + 0x28], esi
lea r9, [0x1400f8bf6]
lea r8, [0x1400f8bf6]
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov rcx, rbp
call fcn.14005a920
test eax, eax
js 0x14005a6f3
jle 0x14005a630
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140c22ed0]
jmp 0x14005a6e4
mov eax, 2
jmp 0x14005a632
mov rcx, rdi
call fcn.1400620a0
test rax, rax
je 0x14005a65a
mov r9, rdi
xor r8d, r8d
mov rdx, r14
mov rcx, rbp
call fcn.14005a870
test eax, eax
js 0x14005a6f3
nop
xor eax, eax
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
mov r15, qword [rsp + 0x30]
add rsp, 0x58
pop rdi
pop rbx
ret
mov rbx, qword [rsp + 0xa0]
mov rax, qword [rbx]
test rax, rax
je 0x14005a630
nop word [rax + rax]
cmp byte [rax], 0
je 0x14005a68c
mov r9, rdi
mov r8, rax
mov rdx, r14
mov rcx, rbp
call fcn.14005a870
test eax, eax
js 0x14005a6f3
jmp 0x14005a6c0
mov rax, qword [0x140c22ec0]
test rax, rax
je 0x14005a6c0
mov dword [rsp + 0x28], esi
lea r9, [0x1400f8bf6]
lea r8, [0x1400f8bf6]
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rbp
call fcn.14005a920
test eax, eax
js 0x14005a6f3
jg 0x14005a6d2
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x14005a670
jmp 0x14005a630
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140c22ec0]
lea rdx, str.Could_not_open_required_defaults_file:__s_n
mov rcx, rax
call fcn.140001f20
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Fatal_error_in_defaults_handling._Program_aborted_n
call fcn.140001f20
mov eax, 1
jmp 0x14005a632