Function at 0x14000a6b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1406bd868]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x40], rdx
mov rax, qword [rdx]
mov qword [0x140713bc0], rax
call fcn.14002c4c0
xor edx, edx
lea r9, [0x1403eb0a0]
mov r8, qword [0x1403eb0b0]
test r8, r8
je 0x14000a721
xor ecx, ecx
cmp byte [rcx + r9 + 8], 0x43
je 0x14000a726
inc edx
lea rcx, [rdx + rdx*4]
lea rcx, [rcx*8]
cmp qword [rcx + r9 + 0x10], 0
jne 0x14000a703
mov edx, 0xffffffff
mov dword [0x1403f2920], edx
xor edx, edx
test r8, r8
je 0x14000a753
xor ecx, ecx
cmp byte [rcx + r9 + 8], 0x64
je 0x14000a758
inc edx
lea rcx, [rdx + rdx*4]
lea rcx, [rcx*8]
cmp qword [rcx + r9 + 0x10], 0
jne 0x14000a735
mov edx, 0xffffffff
mov dword [0x1403f2904], edx
lea rax, [0x1403f2610]
mov qword [0x1406be3f0], rax
lea rcx, str.MYSQL_PS1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000a78d
lea rcx, str.MYSQL_PS1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
jmp 0x14000a794
lea rax, str.mysql_
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
xor ecx, ecx
call fcn.140010b80
mov qword [0x1406be408], rax
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
xor ecx, ecx
call fcn.140010b80
mov qword [0x1406be3e8], rax
mov dword [0x1406be43c], 0
mov byte [0x1406be460], 0
lea rcx, str.stdout
lea rdx, [0x1406beb30]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000a7e1
lea rcx, str.PAGER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
test rax, rax
je 0x14000a841
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14000a810
test rax, rax
je 0x14000a841
mov byte [0x1406be696], 1
lea rdx, [0x1406be930]
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000a830
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
mov edi, 1
test eax, eax
je 0x14000a867
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
test eax, eax
je 0x14000a867
mov byte [0x1406be429], dil
jmp 0x14000a87b
mov byte [0x1406be428], dil
mov dword [0x1406be6ec], edi
mov byte [0x1406bdf41], 0
mov dword [0x1406be410], edi
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
cmp eax, 0xffffffff
jne 0x14000a8b2
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14000a8ba
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [0x140406500]
call fcn.14002d6c0
mov byte [0x140713544], dil
lea rax, [0x1403f2700]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, str.mysql
lea rcx, [0x1400fc3b8]
call fcn.140033ba0
test eax, eax
jne 0x14000a968
mov byte [0x140713544], al
call fcn.140006410
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.140006520
test eax, eax
jne 0x14000a968
cmp byte [0x1406be428], al
je 0x14000a996
cmp qword [0x1406be420], 0
jne 0x14000a996
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0x40000000
call fcn.14000be30
mov qword [0x1406be420], rax
test rax, rax
jne 0x14000a996
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, str.Cant_initialize_batch_readline___may_be_the_input_source_is_a_directory_or_a_block_device.
call fcn.140008480
xor ecx, ecx
call fcn.14002c3b0
mov eax, edi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400f2410
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
cmp byte [0x1406be6e3], 0
jne 0x14000a9c5
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
test eax, eax
je 0x14000a9c5
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
movzx ecx, byte [0x1406be39d]
test eax, eax
cmovne ecx, edi
mov byte [0x1406be39d], cl
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140019310
test eax, eax
je 0x14000a9de
xor ecx, ecx
call fcn.1400083d0
jmp 0x14000a968
mov edx, 0x200
mov eax, 0x1000000
cmp byte [0x1406be428], 0
cmovne edx, eax
xor r8d, r8d
lea rcx, [0x1403f2758]
call fcn.1400f0730
mov edx, 0x80
lea rcx, [0x1403f2690]
call fcn.140001600
xor edx, edx
mov r8d, 0x448
lea rcx, [0x1406bdf50]
call fcn.1400f35da
mov ecx, 0xe08
call fcn.1400f1a64
mov rbx, rax
test rax, rax
je 0x14000aa4a
xor edx, edx
mov r8d, 0xe08
mov rcx, rax
call fcn.1400f35da
jmp 0x14000aa4c
xor ebx, ebx
mov qword [0x1406bf158], rbx
mov r9d, dword [0x1406be6ec]
mov r8, qword [0x1406be3e0]
mov rdx, qword [0x1406be3d8]
mov rcx, qword [0x1406be3c8]
call fcn.140009220
test eax, eax
je 0x14000aa90
mov byte [0x1406bdf42], dil
mov dword [0x1406be410], edi
mov ecx, 0xffffffff
call fcn.14000acb0
int3
movzx eax, byte [0x1406bdf41]
cmp byte [0x1406be428], 0
cmove eax, edi
mov byte [0x1406bdf41], al
mov edx, edi
lea rcx, [0x140009ea0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Welcome_to_the_MySQL_monitor.__Commands_end_with___or_g.
call fcn.140008480
lea rcx, [0x1406bdf50]
call fcn.140008c60
mov rsi, rax
lea rcx, [0x1406bdf50]
call fcn.14001a6d0
mov edi, eax
lea rcx, [0x1403f2758]
call fcn.140004a50
mov rbx, rax
lea rcx, [0x1403f2758]
call fcn.1400083c0
mov qword [rsp + 0x20], rsi
mov r9d, edi
lea r8, str.Your_MySQL_connection_id_is__lu_nServer_version:__s_n
mov rdx, rbx
mov rcx, rax
call fcn.14000ae80
lea rcx, [0x1403f2758]
call fcn.1400083c0
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.140008480
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Copyright__c__2000__2024__Oracle_and_or_its_affiliates._n_nOracle_is_a_registered_trademark_of_Oracle_Corporation_and_or_its_naffiliates._Other_names_may_be_trademarks_of_their_respective_nowners._n
call fcn.140008480
cmp byte [0x1406be428], 0
jne 0x14000abe9
mov r8b, 0x3a
lea rdx, [0x1403f2670]
lea rcx, [0x1406be6a0]
call fcn.14000ba30
mov rdx, qword [0x1406be400]
test rdx, rdx
je 0x14000ab9d
lea rcx, [rsp + 0x48]
call fcn.140003ac0
nop
mov r8b, 0x3a
lea rdx, [rsp + 0x48]
lea rcx, [0x1406be6a0]
call fcn.14000ba30
nop
jmp 0x14000abdf
lea rcx, str.MYSQL_HISTIGNORE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000abe9
lea rcx, str.MYSQL_HISTIGNORE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003ac0
nop
mov r8b, 0x3a
lea rdx, [rsp + 0x48]
lea rcx, [0x1406be6a0]
call fcn.14000ba30
nop
lea rcx, [rsp + 0x48]
call fcn.140003cc0
lea r8, str.Type_help__or_h_for_help._Type_c_to_clear_the_current_input_statement._n
lea rdx, [0x1400fc5d0]
lea rcx, [rsp + 0x70]
call fcn.14000aee0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140008480
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
lea r8, [rsp + 0x38]
mov edx, 9
lea rcx, [0x1406bdf50]
call fcn.140025510
test eax, eax
jne 0x14000ac77
lea r8, [rsp + 0x3c]
lea edx, [rax + 0x23]
lea rcx, [0x1406bdf50]
call fcn.140025510
test eax, eax
jne 0x14000ac77
cmp dword [rsp + 0x38], 2
jne 0x14000ac77
cmp dword [rsp + 0x3c], 3
jb 0x14000ac77
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.You_are_enforcing_ssl_connection_via_unix_socket._Please_consider_nswitching_ssl_off_as_it_does_not_make_connection_via_unix_socket_nany_more_secure.
call fcn.140008480
cmp byte [0x1406be428], 0
sete cl
call fcn.140008670
mov dword [0x1406be410], eax
cmp byte [0x1406bdf4e], 0
je 0x14000ac9a
call fcn.1400059c0
xor ecx, ecx
call fcn.14000acb0
int3