Function at 0x140040780
Capabilities:
Query environment variable

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 - 0x2f]
sub rsp, 0xf0
mov r15, r9
mov dword [rsp + 0x20], 0
mov r14, r8
mov rsi, rdx
mov r13, rcx
lea rdx, [rbp - 0x11]
mov ecx, dword [0x140524368]
xor r9d, r9d
mov r8d, 0x200
call fcn.14003fe60
lea rcx, [rbp - 0x11]
call fcn.140040450
mov r12, rax
test rax, rax
je 0x140040b9d
mov rbx, qword [r15]
xor eax, eax
mov rdi, rbx
mov qword [0x1404accd8], rax
add rbx, 8
mov qword [0x1404acce0], rax
mov qword [0x1404acce8], rax
mov byte [0x1404accf2], al
mov byte [0x1404accf1], al
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400408d3
lea rdx, str.__no_defaults
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140040840
mov byte [0x1404accf1], 1
add rbx, 8
jmp 0x1400408d3
cmp qword [0x1404acce8], 0
jne 0x14004086d
mov rcx, qword [rbx]
lea rdx, str.__defaults_file
call fcn.1400588c0
test eax, eax
je 0x14004086d
mov rax, qword [rbx]
add rax, 0x10
mov qword [0x1404acce8], rax
jmp 0x1400408c5
cmp qword [0x1404accd8], 0
jne 0x14004089a
mov rcx, qword [rbx]
lea rdx, str.__defaults_extra_file
call fcn.1400588c0
test eax, eax
je 0x14004089a
mov rax, qword [rbx]
add rax, 0x16
mov qword [0x1404accd8], rax
jmp 0x1400408c5
cmp qword [0x1404acce0], 0
jne 0x1400408d3
mov rcx, qword [rbx]
lea rdx, str.__defaults_group_suffix
call fcn.1400588c0
test eax, eax
je 0x1400408d3
mov rax, qword [rbx]
add rax, 0x18
mov qword [0x1404acce0], rax
add rbx, 8
cmp qword [rbx], 0
jne 0x140040840
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400408fc
lea rdx, str.__print_defaults
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400408fc
mov byte [0x1404accf2], 1
add rbx, 8
mov byte [0x1404accf0], al
cmp qword [0x1404acce0], 0
jne 0x140040919
lea rcx, str.MYSQL_GROUP_SUFFIX
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [0x1404acce0], rax
mov rdx, qword [0x1404accd8]
test rdx, rdx
je 0x14004094a
lea rax, [0x1404acf00]
cmp rdx, rax
je 0x14004094a
xor r8d, r8d
mov rcx, rax
call fcn.1400474d0
lea rax, [0x1404acf00]
mov qword [0x1404accd8], rax
mov rdx, qword [0x1404acce8]
test rdx, rdx
je 0x14004097b
lea rax, [0x1404acd00]
cmp rdx, rax
je 0x14004097b
xor r8d, r8d
mov rcx, rax
call fcn.1400474d0
lea rax, [0x1404acd00]
mov qword [0x1404acce8], rax
mov ecx, dword [0x140524368]
lea rdx, [rsp + 0x40]
sub rbx, rdi
mov dword [rsp + 0x30], 0
mov edi, 8
mov qword [rsp + 0x28], 0x40
mov r8d, edi
sar rbx, 3
xor r9d, r9d
mov qword [rsp + 0x20], 0x80
call fcn.14003f9b0
test al, al
jne 0x140040b9d
mov rdx, qword [r15]
lea rcx, [rsp + 0x40]
call fcn.14003fa50
sub dword [r14], ebx
movsxd rax, ebx
shl rax, 3
add qword [r15], rax
cmp byte [0x1404accf1], 0
jne 0x140040a59
xor eax, eax
mov qword [rbp - 0x29], rsi
lea rcx, str.defaults
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], rcx
cmp qword [rsi], rax
je 0x140040a0f
nop dword [rax + rax]
inc eax
lea rsi, [rsi + 8]
cmp qword [rsi], 0
jne 0x140040a00
mov dword [rbp - 0x39], eax
lea rax, [rbp - 0x11]
mov r8, r12
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x51]
lea rax, [rsp + 0x40]
mov rcx, r13
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x41], rax
call fcn.140040be0
mov ebx, eax
test eax, eax
je 0x140040a59
lea rcx, [rsp + 0x40]
call fcn.14003f8e0
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.14003fd50
mov eax, ebx
jmp 0x140040bbb
movsxd rdx, dword [r14]
lea rcx, [rbp - 0x11]
add rdx, qword [rbp - 0x79]
lea rdx, [rdx*8 + 0x58]
call fcn.14003fc00
mov rsi, rax
test rax, rax
je 0x140040b9d
mov r8, qword [rbp - 0x79]
lea rbx, [rax + 0x40]
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
lea r8, [r8*8]
call fcn.140092830
cmp byte [0x1404accf0], 0
lea r13, [0x140096c7a]
je 0x140040ad5
mov rcx, qword [rbp - 0x79]
mov rax, qword [str.____file_marker____]
mov qword [rbx + rcx*8], rax
mov rax, qword [rbp - 0x79]
inc rax
mov qword [rbp - 0x79], rax
mov qword [rbx + rax*8], r13
mov rax, qword [rbp - 0x79]
inc rax
mov qword [rbp - 0x79], rax
jmp 0x140040ad9
mov rax, qword [rbp - 0x79]
movsxd rcx, dword [r14]
test ecx, ecx
je 0x140040af7
mov rdx, qword [r15]
mov r8, rcx
shl r8, 3
lea rcx, [rbx + rax*8]
call fcn.140092830
mov rax, qword [rbp - 0x79]
add dword [r14], eax
lea rcx, [rsp + 0x40]
mov qword [r15], rbx
movsxd rax, dword [r14]
mov qword [rbx + rax*8], 0
movaps xmm0, xmmword [rbp - 0x11]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [rbp - 1]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [rbp + 0xf]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [rbp + 0x1f]
movups xmmword [rsi + 0x30], xmm1
call fcn.14003f8e0
cmp byte [0x1404accf2], 0
je 0x140040b8d
mov rdx, qword [r15]
lea rcx, str._s_would_have_been_started_with_the_following_arguments:_n
mov rdx, qword [rdx]
call fcn.140019950
mov ebx, 1
cmp dword [r14], ebx
jle 0x140040b7e
nop word [rax + rax]
mov rdx, qword [r15]
lea rcx, [0x140099500]
mov rdx, qword [rdi + rdx]
call fcn.140019950
inc ebx
lea rdi, [rdi + 8]
cmp ebx, dword [r14]
jl 0x140040b60
mov rcx, r13
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov eax, 4
jmp 0x140040bbb
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x140040b99
mov qword [rax], r12
xor eax, eax
jmp 0x140040bbb
mov ecx, 2
call sub.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.140018470
mov eax, 2
lea r11, [rsp + 0xf0]
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