Function at 0x2a9459e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x614
call fcn.2a8b8f90
mov eax, dword [0x2a9b0720]
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 [0x2a9b99e4], 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 [0x2a9b99e8], esi
call fcn.2a945970
mov ebx, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [0x2a9b99e8], 1
test ebp, ebp
jne 0x2a945a70
cmp dword [0x2a9b99e0], esi
je 0x2a945a70
mov eax, dword [0x2a9b99d0]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x2a9b99d4], eax
call ebx
push eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
mov dword [0x2a9b99e8], 2
mov byte [esp + 0x20], 0
cmp dword [0x2a9b99e0], esi
je 0x2a945ba0
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 0x2a945b55
lea eax, [esp + 0x22c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.kernel32.dll_ReadConsoleW]
test eax, eax
je 0x2a945c35
mov eax, dword [esp + 0x10]
cmp eax, 2
jb 0x2a945afa
cmp word [esp + eax*2 + 0x21c], 0xd
jne 0x2a945afa
cmp word [esp + eax*2 + 0x21e], 0xa
jne 0x2a945afa
mov ecx, 0xa
mov word [esp + eax*2 + 0x21c], cx
dec eax
mov dword [esp + 0x10], eax
add eax, eax
cmp eax, 0x400
jae 0x2a945cc8
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 fcn.2a801360
add esp, 8
jmp 0x2a945bba
lea eax, [esp + 0x2c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.kernel32.dll_ReadConsoleA]
test eax, eax
je 0x2a945c35
mov eax, dword [esp + 0x10]
cmp eax, 2
jb 0x2a945b8e
cmp byte [esp + eax + 0x1e], 0xd
jne 0x2a945b8e
cmp byte [esp + eax + 0x1f], 0xa
jne 0x2a945b8e
mov byte [esp + eax + 0x1e], 0xa
dec eax
mov dword [esp + 0x10], eax
cmp eax, 0x200
jae 0x2a945cc8
mov byte [esp + eax + 0x20], 0
jmp 0x2a945bc2
push dword [0x2a9b99d8]
lea eax, [esp + 0x24]
push 0x1ff
push eax
call sub.MSVCR120.dll_fgets
add esp, 0xc
mov edi, eax
test edi, edi
je 0x2a945c35
mov edi, dword [esp + 0x1c]
push dword [0x2a9b99d8]
call sub.MSVCR120.dll_feof
add esp, 4
test eax, eax
jne 0x2a945c35
push dword [0x2a9b99d8]
call sub.MSVCR120.dll_ferror
add esp, 4
test eax, eax
jne 0x2a945c35
lea eax, [esp + 0x20]
push 0xa
push eax
call sub.MSVCR120.dll_strchr
add esp, 8
test eax, eax
je 0x2a945c07
cmp dword [esp + 0x634], esi
je 0x2a945c19
mov byte [eax], 0
jmp 0x2a945c19
push dword [0x2a9b99d8]
call fcn.2a945cd0
add esp, 4
test eax, eax
je 0x2a945c35
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
push edi
call fcn.2a923ba0
add esp, 0xc
mov ecx, 1
test eax, eax
cmovns esi, ecx
mov eax, dword [0x2a9b99e4]
or ecx, 0xffffffff
cmp eax, 2
cmove esi, ecx
cmp dword [esp + 0x18], 0
je 0x2a945c5d
push 0x2a953a20
push dword [0x2a9b99dc]
call sub.MSVCR120.dll_fprintf
add esp, 8
mov eax, dword [0x2a9b99e8]
cmp eax, 2
jl 0x2a945c91
test ebp, ebp
jne 0x2a945c91
cmp dword [0x2a9b99e0], ebp
je 0x2a945c91
mov eax, dword [0x2a9b99d0]
or eax, 4
push eax
push 0xfffffffffffffff6
mov dword [0x2a9b99d4], eax
call ebx
push eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
mov eax, dword [0x2a9b99e8]
cmp eax, 1
jl 0x2a945c9b
call fcn.2a945910
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.2a801360
mov ecx, dword [esp + 0x628]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.2a84c0e0
add esp, 0x614
ret
call fcn.2a885359
int3