Function at 0x6a5e00
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x650
mov dword [0x00a5c6a4], 0
mov dword [0x00a5c6a0], 0
mov r13, rcx
mov r14, rdx
mov ecx, 0x16
mov ebx, r8d
lea rdx, [sym.recsig]
mov esi, r9d
call sym.signal
lea rdx, [sym.recsig]
mov ecx, 8
mov qword [0x00a5c790], rax
call sym.signal
lea rdx, [sym.recsig]
mov ecx, 4
mov qword [0x00a5c720], rax
call sym.signal
lea rdx, [sym.recsig]
mov ecx, 2
mov qword [0x00a5c700], rax
call sym.signal
lea rdx, [sym.recsig]
mov ecx, 0xb
mov qword [0x00a5c6f0], rax
call sym.signal
lea rdx, [sym.recsig]
mov ecx, 0xf
mov qword [0x00a5c738], rax
call sym.signal
mov dword [0x00a5c6a0], 1
mov qword [0x00a5c758], rax
test ebx, ebx
je 0x6a6090
mov eax, dword [0x00a5c6a8]
mov byte [rsp + 0x50], 0
mov dword [0x00a5c6a0], 2
test eax, eax
je 0x6a60af
lea rcx, str.OPENSSL_WIN32_UTF8
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0xfffffff6
test eax, eax
je 0x6a5fd0
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x4c]
mov r8d, 0x1ff
lea rdi, [rsp + 0x250]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
lea r15, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov r12d, eax
test eax, eax
je 0x6a603b
mov eax, dword [rsp + 0x4c]
cmp eax, 1
jbe 0x6a5f69
lea edx, [rax - 2]
cmp word [rsp + rdx*2 + 0x250], 0xd
je 0x6a6240
xor edx, edx
lea r15, [rsp + 0x50]
mov ecx, 0xfde9
mov r8, rdi
mov word [rsp + rax*2 + 0x250], dx
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, 0x400
mov rcx, rdi
test eax, eax
jle 0x6a6230
call sym.OPENSSL_cleanse
jmp 0x6a60d1
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r15, [rsp + 0x50]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, 0x1ff
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov r12d, eax
test eax, eax
je 0x6a603b
mov eax, dword [rsp + 0x4c]
cmp eax, 1
jbe 0x6a6019
lea edx, [rax - 2]
cmp byte [rsp + rdx + 0x50], 0xd
je 0x6a6278
mov rcx, qword [0x00a5c6b8]
mov byte [rsp + rax + 0x50], 0
call sym.feof
test eax, eax
je 0x6a60e5
nop word [rax + rax]
xor r12d, r12d
mov eax, dword [0x00a5c6a4]
cmp eax, 2
mov eax, 0xffffffff
cmove r12d, eax
test ebx, ebx
je 0x6a61a8
mov eax, dword [0x00a5c6a0]
test eax, eax
jg 0x6a6138
mov edx, 0x200
mov rcx, r15
call sym.OPENSSL_cleanse
mov eax, r12d
add rsp, 0x650
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [0x00a5c6a8]
test r9d, r9d
jne 0x6a6200
mov dword [0x00a5c6a0], 2
mov byte [rsp + 0x50], 0
lea r15, [rsp + 0x50]
mov r8, qword [0x00a5c6b8]
mov edx, 0x1ff
mov rcx, r15
call sym.fgets
test rax, rax
je 0x6a6038
mov rcx, qword [0x00a5c6b8]
call sym.feof
test eax, eax
jne 0x6a6038
mov rcx, qword [0x00a5c6b8]
call sym.ferror
mov r12d, eax
test eax, eax
jne 0x6a6038
mov edx, 0xa
mov rcx, r15
call sym.strchr
test rax, rax
je 0x6a6298
test esi, esi
je 0x6a6119
mov byte [rax], 0
mov r8, r15
mov rdx, r14
mov rcx, r13
call sym.UI_set_result
not eax
shr eax, 0x1f
mov r12d, eax
jmp 0x6a603b
mov rdx, qword [0x00a5c790]
mov ecx, 0x16
call sym.signal
mov rdx, qword [0x00a5c720]
mov ecx, 8
call sym.signal
mov rdx, qword [0x00a5c700]
mov ecx, 4
call sym.signal
mov rdx, qword [0x00a5c6f0]
mov ecx, 2
call sym.signal
mov rdx, qword [0x00a5c738]
mov ecx, 0xb
call sym.signal
mov rdx, qword [0x00a5c758]
mov ecx, 0xf
call sym.signal
jmp 0x6a6063
mov rdx, qword [0x00a5c6b0]
mov ecx, 0xa
call sym.fputc
mov eax, dword [0x00a5c6a0]
cmp eax, 1
jle 0x6a605b
mov eax, dword [0x00a5c6a8]
test eax, eax
je 0x6a6138
mov r13d, dword [0x00a5c6c0]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x6a6055
mov r12d, dword [0x00a5c6c0]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and r12d, 0xfffffffb
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x6a5ed4
call sym.OPENSSL_cleanse
xor r12d, r12d
jmp 0x6a603b
lea r8d, [rax - 1]
cmp word [rsp + r8*2 + 0x250], 0xa
mov rcx, r8
jne 0x6a5f69
mov r8d, 0xa
mov dword [rsp + 0x4c], ecx
mov eax, ecx
mov word [rsp + rdx*2 + 0x250], r8w
jmp 0x6a5f69
lea r8d, [rax - 1]
cmp byte [rsp + r8 + 0x50], 0xa
jne 0x6a6019
mov byte [rsp + rdx + 0x50], 0xa
mov eax, r8d
jmp 0x6a6019
mov rsi, qword [0x00a5c6b8]
lea rdi, [rsp + 0x250]
jmp 0x6a62c6
mov edx, 0xa
mov rcx, rdi
call sym.strchr
test rax, rax
jne 0x6a6119
mov r8, rsi
mov edx, 4
mov rcx, rdi
call sym.fgets
test rax, rax
jne 0x6a62b0
jmp 0x6a603b