Function at 0x6938a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x618
call fcn.006d13f0
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x618], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
push 0x693c70
push 0x16
mov dword [ebp - 0x614], eax
mov dword [0x7cb5ac], 0
mov dword [0x7cb5b0], edi
call fcn.006e6452
push 0x693c70
push 8
mov dword [0x7cb570], eax
call fcn.006e6452
push 0x693c70
push 4
mov dword [0x7cb538], eax
call fcn.006e6452
push 0x693c70
push 2
mov dword [0x7cb528], eax
call fcn.006e6452
push 0x693c70
push 0xb
mov dword [0x7cb520], eax
call fcn.006e6452
push 0x693c70
push 0xf
mov dword [0x7cb544], eax
call fcn.006e6452
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0x30
mov dword [0x7cb554], eax
mov dword [0x7cb5b0], 1
cmp dword [ebp + 0x10], edi
jne 0x69397d
cmp dword [0x7cb5a8], edi
je 0x69397d
mov eax, dword [0x7cb598]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x7cb59c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x7cb5b0], 2
mov byte [ebp - 0x20c], 0
cmp dword [0x7cb5a8], edi
je 0x693ac8
push 0
push 0
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
test eax, eax
lea eax, [ebp - 0x610]
push eax
push 0x1ff
je 0x693a6b
lea eax, [ebp - 0x60c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x693b8a
mov eax, dword [ebp - 0x610]
cmp eax, 2
jb 0x693a0e
cmp word [ebp + eax*2 - 0x610], 0xd
jne 0x693a0e
cmp word [ebp + eax*2 - 0x60e], 0xa
jne 0x693a0e
mov ecx, 0xa
mov word [ebp + eax*2 - 0x610], cx
dec eax
mov dword [ebp - 0x610], eax
add eax, eax
cmp eax, 0x400
jae 0x693c60
xor ecx, ecx
push ecx
push ecx
push 0x200
mov word [ebp + eax - 0x60c], cx
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x60c]
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
lea esi, [ebp - 0x20c]
mov eax, edi
cmovle esi, eax
lea eax, [ebp - 0x60c]
push 0x400
push eax
call fcn.004019e0
add esp, 8
jmp 0x693ae4
lea eax, [ebp - 0x20c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x693b8a
mov eax, dword [ebp - 0x610]
cmp eax, 2
jb 0x693ab3
cmp byte [ebp + eax - 0x20e], 0xd
jne 0x693ab3
cmp byte [ebp + eax - 0x20d], 0xa
jne 0x693ab3
mov byte [ebp + eax - 0x20e], 0xa
dec eax
mov dword [ebp - 0x610], eax
cmp eax, 0x200
jae 0x693c60
mov byte [ebp + eax - 0x20c], 0
jmp 0x693aec
push dword [0x7cb5a0]
lea eax, [ebp - 0x20c]
push 0x1ff
push eax
call fcn.006ebe0c
add esp, 0xc
mov esi, eax
test esi, esi
je 0x693b8a
push dword [0x7cb5a0]
call fcn.006ed5a3
add esp, 4
test eax, eax
jne 0x693b8a
push dword [0x7cb5a0]
call fcn.006ed5cf
add esp, 4
test eax, eax
jne 0x693b8a
lea eax, [ebp - 0x20c]
push 0xa
push eax
call fcn.006d2640
add esp, 8
test eax, eax
je 0x693b33
cmp dword [ebp + 0x14], edi
je 0x693b65
mov byte [eax], 0
jmp 0x693b65
mov esi, dword [0x7cb5a0]
nop dword [eax]
push esi
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.006ebe0c
add esp, 0xc
test eax, eax
je 0x693b8a
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.006d2640
add esp, 8
test eax, eax
je 0x693b40
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x614]
push dword [ebp - 0x618]
call fcn.00686b80
add esp, 0xc
mov ecx, 1
test eax, eax
cmovns edi, ecx
mov eax, dword [0x7cb5ac]
or ecx, 0xffffffff
mov esi, dword [ebp + 0x10]
cmp eax, 2
cmove edi, ecx
test esi, esi
jne 0x693bb2
push 0x793e18
push dword [0x7cb5a4]
call fcn.005c1980
add esp, 8
mov eax, dword [0x7cb5b0]
cmp eax, 2
jl 0x693be3
test esi, esi
jne 0x693be3
cmp dword [0x7cb5a8], esi
je 0x693be3
mov eax, dword [0x7cb598]
push eax
push 0xfffffffffffffff6
mov dword [0x7cb59c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x7cb5b0]
cmp eax, 1
jl 0x693c39
push dword [0x7cb570]
push 0x16
call fcn.006e6452
push dword [0x7cb538]
push 8
call fcn.006e6452
push dword [0x7cb528]
push 4
call fcn.006e6452
push dword [0x7cb520]
push 2
call fcn.006e6452
push dword [0x7cb544]
push 0xb
call fcn.006e6452
push dword [0x7cb554]
push 0xf
call fcn.006e6452
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.004019e0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret
call fcn.006d0efb
int3