Function at 0x101765c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x614
call fcn.101aa6d0
mov eax, dword [0x102745f0]
xor eax, esp
mov dword [esp + 0x610], eax
mov eax, dword [esp + 0x61c]
push ebx
push ebp
mov ebp, dword [esp + 0x628]
mov dword [esp + 0xc], eax
xor eax, eax
test ebp, ebp
sete al
push esi
push edi
mov edi, dword [esp + 0x628]
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [0x10279264], 0
mov dword [esp + 0x18], eax
mov dword [0x10279268], esi
call fcn.10176530
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x10279268], 1
test ebp, ebp
jne 0x10176650
cmp dword [0x10279260], esi
je 0x10176650
mov eax, dword [0x10279250]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x10279254], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x10279268], 2
mov byte [esp + 0x20], 0
cmp dword [0x10279260], esi
je 0x10176780
push 0
push 0
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
test eax, eax
lea eax, [esp + 0x14]
push eax
push 0x1ff
je 0x10176735
lea eax, [esp + 0x22c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x10176815
mov eax, dword [esp + 0x10]
cmp eax, 2
jb 0x101766da
cmp word [esp + eax*2 + 0x21c], 0xd
jne 0x101766da
cmp word [esp + eax*2 + 0x21e], 0xa
jne 0x101766da
mov ecx, 0xa
mov word [esp + eax*2 + 0x21c], cx
dec eax
mov dword [esp + 0x10], eax
add eax, eax
cmp eax, 0x400
jae 0x101768a5
xor ecx, ecx
push ecx
push ecx
push 0x200
mov word [esp + eax + 0x22c], cx
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x234]
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov eax, esi
lea edi, [esp + 0x20]
cmovle edi, eax
lea eax, [esp + 0x220]
push 0x400
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
add esp, 8
jmp 0x1017679a
lea eax, [esp + 0x2c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x10176815
mov eax, dword [esp + 0x10]
cmp eax, 2
jb 0x1017676e
cmp byte [esp + eax + 0x1e], 0xd
jne 0x1017676e
cmp byte [esp + eax + 0x1f], 0xa
jne 0x1017676e
mov byte [esp + eax + 0x1e], 0xa
dec eax
mov dword [esp + 0x10], eax
cmp eax, 0x200
jae 0x101768a5
mov byte [esp + eax + 0x20], 0
jmp 0x101767a2
push dword [0x10279258]
lea eax, [esp + 0x24]
push 0x1ff
push eax
call fcn.101acbe3
add esp, 0xc
mov edi, eax
test edi, edi
je 0x10176815
mov edi, dword [esp + 0x1c]
push dword [0x10279258]
call fcn.101ac9ab
add esp, 4
test eax, eax
jne 0x10176815
push dword [0x10279258]
call fcn.101ac9d1
add esp, 4
test eax, eax
jne 0x10176815
lea eax, [esp + 0x20]
push 0xa
push eax
call fcn.101ab970
add esp, 8
test eax, eax
je 0x101767e7
cmp dword [esp + 0x634], esi
je 0x101767f9
mov byte [eax], 0
jmp 0x101767f9
push dword [0x10279258]
call fcn.10176970
add esp, 4
test eax, eax
je 0x10176815
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push edi
call sym.libcrypto_1_1.dll_UI_set_result
add esp, 0xc
mov ecx, 1
test eax, eax
cmovns esi, ecx
mov eax, dword [0x10279264]
or ecx, 0xffffffff
cmp eax, 2
cmove esi, ecx
cmp dword [esp + 0x18], 0
je 0x1017683d
push 0x101dfbe0
push dword [0x1027925c]
call fcn.101af66a
add esp, 8
mov eax, dword [0x10279268]
cmp eax, 2
jl 0x1017686e
test ebp, ebp
jne 0x1017686e
cmp dword [0x10279260], ebp
je 0x1017686e
mov eax, dword [0x10279250]
push eax
push 0xfffffffffffffff6
mov dword [0x10279254], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x10279268]
cmp eax, 1
jl 0x10176878
call fcn.101764c0
lea eax, [esp + 0x20]
push 0x200
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov ecx, dword [esp + 0x628]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101aa6fb
add esp, 0x614
ret
call fcn.101abbd1
int3