Function at 0x10145d70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x614
call fcn.101704b0
mov eax, dword [0x101f2700]
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
mov dword [0x101f4e44], 0
push esi
sete al
xor esi, esi
push edi
mov edi, dword [esp + 0x628]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [0x101f4e48], esi
call fcn.10145cf0
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x101f4e48], 1
test ebp, ebp
jne 0x10145e00
cmp dword [0x101f4e40], esi
je 0x10145e00
mov eax, dword [0x101f4e30]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x101f4e34], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x101f4e48], 2
mov byte [esp + 0x20], 0
cmp dword [0x101f4e40], esi
je 0x10145f30
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 0x10145ee5
lea eax, [esp + 0x22c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x10145fc9
mov eax, dword [esp + 0x10]
cmp eax, 2
jb 0x10145e8a
cmp word [esp + eax*2 + 0x21c], 0xd
jne 0x10145e8a
cmp word [esp + eax*2 + 0x21e], 0xa
jne 0x10145e8a
mov ecx, 0xa
mov word [esp + eax*2 + 0x21c], cx
dec eax
mov dword [esp + 0x10], eax
add eax, eax
cmp eax, 0x400
jae 0x1014605d
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
lea edi, [esp + 0x20]
mov eax, esi
cmovle edi, eax
lea eax, [esp + 0x220]
push 0x400
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
add esp, 8
jmp 0x10145f4b
lea eax, [esp + 0x2c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x10145fc9
mov eax, dword [esp + 0x10]
cmp eax, 2
jb 0x10145f1e
cmp byte [esp + eax + 0x1e], 0xd
jne 0x10145f1e
cmp byte [esp + eax + 0x1f], 0xa
jne 0x10145f1e
mov byte [esp + eax + 0x1e], 0xa
dec eax
mov dword [esp + 0x10], eax
cmp eax, 0x200
jae 0x1014605d
mov byte [esp + eax + 0x20], 0
jmp 0x10145f53
push dword [0x101f4e38]
lea eax, [esp + 0x24]
push 0x1ff
push eax
call dword [sym.imp.MSVCR120.dll_fgets]
add esp, 0xc
mov edi, eax
test edi, edi
je 0x10145fc9
mov edi, dword [esp + 0x1c]
push dword [0x101f4e38]
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
jne 0x10145fc9
push dword [0x101f4e38]
call dword [sym.imp.MSVCR120.dll_ferror]
add esp, 4
test eax, eax
jne 0x10145fc9
lea eax, [esp + 0x20]
push 0xa
push eax
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x10145f9b
cmp dword [esp + 0x634], esi
je 0x10145fad
mov byte [eax], 0
jmp 0x10145fad
push dword [0x101f4e38]
call fcn.10146120
add esp, 4
test eax, eax
je 0x10145fc9
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 [0x101f4e44]
or ecx, 0xffffffff
cmp eax, 2
cmove esi, ecx
cmp dword [esp + 0x18], 0
je 0x10145ff2
push 0x10178c4c
push dword [0x101f4e3c]
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 8
mov eax, dword [0x101f4e48]
cmp eax, 2
jl 0x10146026
test ebp, ebp
jne 0x10146026
cmp dword [0x101f4e40], ebp
je 0x10146026
mov eax, dword [0x101f4e30]
or eax, 4
push eax
push 0xfffffffffffffff6
mov dword [0x101f4e34], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x101f4e48]
cmp eax, 1
jl 0x10146030
call fcn.10145c90
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.101704a0
add esp, 0x614
ret
call fcn.10170668
int3