Function at 0x140082d30
Capabilities:
Query environment variable
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x548]
sub rsp, 0x648
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rbp + 0x530], rax
mov rax, qword [rbp + 0x5b0]
mov rbx, rdx
xor edx, edx
mov qword [rsp + 0x60], rax
lea rax, [rbp]
mov qword [rbp - 0x10], rdx
mov qword [rbp + 0x320], rax
mov rdi, r9
mov eax, edx
mov byte [rsp + 0x50], dl
mov r14, r8
mov dword [rsp + 0x54], edx
mov r13, rcx
mov qword [rbp - 8], 0x64
mov ecx, dword [0x1404bc38c]
lea rdx, [rbp - 0x50]
xor r12b, r12b
mov dword [rbp + 0x328], ecx
cmp byte [0x1404bc388], al
mov r8d, 0x200
setne al
xor r9d, r9d
mov dword [rsp + 0x58], eax
call fcn.14007fc50
lea rcx, [rbp - 0x50]
call fcn.140081bc0
mov qword [rsp + 0x68], rax
mov r15, rax
mov esi, 1
test rax, rax
je 0x140083174
cmp dword [r14], 2
jl 0x140082e08
mov rcx, qword [rdi]
lea rdx, str.__no_defaults
mov rcx, qword [rcx + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
movzx r12d, r12b
cmove r12d, esi
xor eax, eax
mov qword [rbp - 0x68], rbx
lea rcx, str.defaults
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rcx
cmp qword [rbx], rax
je 0x140082e30
inc eax
lea rbx, [rbx + 8]
cmp qword [rbx], 0
jne 0x140082e21
mov dword [rbp - 0x78], eax
mov byte [rsp + 0x40], r12b
lea rax, [rbp - 0x50]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x54]
mov byte [rsp + 0x38], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x78], rax
mov r8, rdi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], r15
mov qword [rbp - 0x80], rax
mov rdx, r14
lea rax, [rsp + 0x70]
mov rcx, r13
mov qword [rsp + 0x28], rax
lea rax, [0x140082c50]
mov qword [rsp + 0x20], rax
call fcn.140083190
mov ebx, eax
test eax, eax
jne 0x140082f3d
lea rcx, str.MYSQL_TEST_LOGIN_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140082eb4
lea rcx, str.MYSQL_TEST_LOGIN_FILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, [0x140138250]
jmp 0x140082ede
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140082f82
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, str._sMySQL.mylogin.cnf
mov r9, rax
lea rcx, [rbp + 0x330]
mov edx, 0x200
call fcn.140083700
test rax, rax
je 0x140082f96
mov byte [rsp + 0x40], r12b
lea rax, [rsp + 0x70]
mov byte [rsp + 0x38], sil
lea r9, [rsp + 0x54]
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x330]
mov qword [rsp + 0x28], rax
mov r8, rdi
lea rax, [0x140082c50]
mov rdx, r14
mov qword [rsp + 0x20], rax
call fcn.140083190
mov ebx, eax
test eax, eax
je 0x140082f96
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14007fb50
mov rcx, qword [rbp + 0x320]
lea rax, [rbp]
cmp rcx, rax
je 0x140082f5d
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.14012e750
add rsp, 0x648
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edx, edx
lea rcx, [rbp + 0x330]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rsp + 0x58]
lea rcx, [rbp - 0x50]
movsxd rdx, dword [r14]
add rdx, rax
add rdx, qword [rbp - 0x10]
lea rdx, [rdx*8 + 0x48]
call fcn.14007fa30
mov r13, rax
test rax, rax
je 0x140083174
mov rcx, qword [rdi]
lea r15, [rax + 0x40]
mov rdx, qword [rcx]
mov qword [r15], rdx
mov rbx, qword [rbp - 0x10]
test rbx, rbx
je 0x140082ff3
mov rdx, qword [rbp + 0x320]
lea r8, [rbx*8]
lea rcx, [r15 + 8]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp - 0x10]
mov eax, dword [rsp + 0x54]
sub dword [r14], eax
mov ecx, eax
shl rcx, 3
add qword [rdi], rcx
cmp dword [r14], 2
mov rcx, qword [rdi]
jl 0x14008302c
mov rcx, qword [rcx + 8]
lea rdx, str.__print_defaults
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14008302c
dec dword [r14]
add qword [rdi], 8
mov byte [rsp + 0x50], sil
cmp byte [0x1404bc388], 0
je 0x140083045
mov rax, qword [str.____args_separator____]
mov qword [r15 + rbx*8 + 8], rax
mov rbx, qword [rbp - 0x10]
mov eax, dword [r14]
test eax, eax
je 0x140083073
mov rdx, qword [rdi]
dec eax
movsxd r8, eax
add rdx, 8
mov eax, dword [rsp + 0x58]
inc rax
shl r8, 3
add rax, rbx
lea rcx, [r15 + rax*8]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp - 0x10]
movsxd rax, dword [r14]
mov edx, dword [rsp + 0x58]
add rax, rdx
add rax, rbx
mov qword [r15 + rax*8], 0
mov ecx, dword [rbp - 0x10]
movaps xmm0, xmmword [rbp - 0x50]
add ecx, edx
add dword [r14], ecx
mov rcx, qword [rsp + 0x60]
mov qword [rdi], r15
movups xmmword [r13], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [r13 + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [r13 + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [r13 + 0x30], xmm1
test rcx, rcx
je 0x1400830c9
mov rax, qword [rsp + 0x68]
mov qword [rcx], rax
test r12b, r12b
je 0x1400830ea
mov rcx, qword [rbp + 0x320]
lea rax, [rbp]
cmp rcx, rax
je 0x1400830e3
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor eax, eax
jmp 0x140082f5f
cmp byte [rsp + 0x50], 0
je 0x1400830ce
mov rdx, qword [rdi]
lea rcx, str._s_would_have_been_started_with_the_following_arguments:_n
mov rdx, qword [rdx]
call fcn.14000a940
cmp dword [r14], esi
jle 0x14008315e
mov ebx, 8
nop dword [rax]
mov rax, qword [rdi]
mov rcx, qword [rbx + rax]
cmp rcx, qword [str.____args_separator____]
je 0x140083153
mov r8d, 0xa
lea rdx, [0x140138088]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
lea rcx, [0x1401380ac]
test eax, eax
jne 0x140083147
lea rdx, str.__password
jmp 0x14008314e
mov rdx, qword [rdi]
mov rdx, qword [rbx + rdx]
call fcn.14000a940
inc esi
add rbx, 8
cmp esi, dword [r14]
jl 0x140083110
lea rcx, [0x140135a5a]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.Fatal_error_in_defaults_handling._Program_aborted_
xor ecx, ecx
call fcn.14007eab0
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3