Function at 0x5e72e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x610
call fcn.006bfd90
mov eax, dword [0x7f5314]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x60c], edi
mov dword [ebp - 0x610], eax
mov dword [0xf2cf3c], 0
mov dword [0xf2cf40], esi
call fcn.005e7270
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0xf2cf40], 1
cmp dword [ebp + 0x10], esi
jne 0x5e7359
cmp dword [0xf2cf38], esi
je 0x5e7359
mov eax, dword [0xf2cf28]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0xf2cf2c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0xf2cf40], 2
mov byte [ebp - 0x204], 0
cmp dword [0xf2cf38], esi
je 0x5e74a4
push 0
push 0
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
test eax, eax
lea eax, [ebp - 0x608]
push eax
push 0x1ff
je 0x5e7447
lea eax, [ebp - 0x604]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x5e753f
mov eax, dword [ebp - 0x608]
cmp eax, 2
jb 0x5e73ea
cmp word [ebp + eax*2 - 0x608], 0xd
jne 0x5e73ea
cmp word [ebp + eax*2 - 0x606], 0xa
jne 0x5e73ea
mov ecx, 0xa
mov word [ebp + eax*2 - 0x608], cx
dec eax
mov dword [ebp - 0x608], eax
add eax, eax
cmp eax, 0x400
jae 0x5e75c9
xor ecx, ecx
push ecx
push ecx
push 0x200
mov word [ebp + eax - 0x604], cx
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x604]
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
lea edi, [ebp - 0x204]
mov eax, esi
cmovle edi, eax
lea eax, [ebp - 0x604]
push 0x400
push eax
call fcn.004029a0
add esp, 8
jmp 0x5e74c0
lea eax, [ebp - 0x204]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x5e753f
mov eax, dword [ebp - 0x608]
cmp eax, 2
jb 0x5e748f
cmp byte [ebp + eax - 0x206], 0xd
jne 0x5e748f
cmp byte [ebp + eax - 0x205], 0xa
jne 0x5e748f
mov byte [ebp + eax - 0x206], 0xa
dec eax
mov dword [ebp - 0x608], eax
cmp eax, 0x200
jae 0x5e75c9
mov byte [ebp + eax - 0x204], 0
jmp 0x5e74ca
push dword [0xf2cf30]
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.006de1a7
add esp, 0xc
mov edi, eax
test edi, edi
je 0x5e753f
mov edi, dword [ebp - 0x60c]
push dword [0xf2cf30]
call fcn.006d3e97
add esp, 4
test eax, eax
jne 0x5e753f
push dword [0xf2cf30]
call fcn.006d3ec3
add esp, 4
test eax, eax
jne 0x5e753f
lea eax, [ebp - 0x204]
push 0xa
push eax
call fcn.006c2590
add esp, 8
test eax, eax
je 0x5e750d
cmp dword [ebp + 0x14], esi
je 0x5e751f
mov byte [eax], 0
jmp 0x5e751f
push dword [0xf2cf30]
call fcn.005e75d0
add esp, 4
test eax, eax
je 0x5e753f
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x610]
push edi
call fcn.005e6b60
add esp, 0xc
mov ecx, 1
test eax, eax
cmovns esi, ecx
mov eax, dword [0xf2cf3c]
or ecx, 0xffffffff
mov edi, dword [ebp + 0x10]
cmp eax, 2
cmove esi, ecx
test edi, edi
jne 0x5e7567
push 0x750166
push dword [0xf2cf34]
call fcn.004f6260
add esp, 8
mov eax, dword [0xf2cf40]
cmp eax, 2
jl 0x5e7598
test edi, edi
jne 0x5e7598
cmp dword [0xf2cf38], edi
je 0x5e7598
mov eax, dword [0xf2cf28]
push eax
push 0xfffffffffffffff6
mov dword [0xf2cf2c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0xf2cf40]
cmp eax, 1
jl 0x5e75a2
call fcn.005e7210
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.004029a0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006c0fe0
mov esp, ebp
pop ebp
ret
call fcn.006c1112
int3