Function at 0x457ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x614
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
xor ecx, ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x610], eax
sete cl
mov dword [0x6d4a5c], ebx
mov dword [ebp - 0x60c], ebx
mov dword [0x6d4a50], ebx
mov dword [ebp - 0x614], ecx
call fcn.004582e0
mov dword [0x6d4a50], 1
cmp dword [ebp + 0xc], ebx
jne 0x457f22
cmp dword [0x6d4a4c], ebx
je 0x457f22
mov eax, dword [0x6d4ae0]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x6d4a48], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x6d4a50], 2
mov byte [ebp - 0x204], bl
cmp dword [0x6d4a4c], ebx
je 0x458061
push ebx
push ebx
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
test eax, eax
je 0x458000
lea edx, [ebp - 0x608]
push edx
push 0x1ff
lea eax, [ebp - 0x604]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x45810c
mov eax, dword [ebp - 0x608]
cmp eax, 2
jb 0x457fb3
cmp word [ebp + eax*2 - 0x608], 0xd
jne 0x457fb3
cmp word [ebp + eax*2 - 0x606], 0xa
jne 0x457fb3
mov ecx, 0xa
mov word [ebp + eax*2 - 0x608], cx
dec eax
mov dword [ebp - 0x608], eax
push ebx
push ebx
push 0x200
xor edx, edx
mov word [ebp + eax*2 - 0x604], dx
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x604]
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x457fea
lea edi, [ebp - 0x204]
lea edx, [ebp - 0x604]
push 0x400
push edx
call fcn.00587a20
add esp, 8
jmp 0x45807e
lea eax, [ebp - 0x608]
push eax
push 0x1ff
lea ecx, [ebp - 0x204]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x45810c
mov eax, dword [ebp - 0x608]
cmp eax, 2
jb 0x458058
cmp byte [ebp + eax - 0x206], 0xd
jne 0x458058
cmp byte [ebp + eax - 0x205], 0xa
jne 0x458058
mov byte [ebp + eax - 0x206], 0xa
dec eax
mov dword [ebp - 0x608], eax
mov byte [ebp + eax - 0x204], bl
jmp 0x458086
mov edx, dword [0x6d4a58]
push edx
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.005e4d55
add esp, 0xc
mov edi, eax
cmp edi, ebx
je 0x45810c
mov ecx, dword [0x6d4a58]
push ecx
call fcn.005e4b16
add esp, 4
test eax, eax
jne 0x45810c
mov edx, dword [0x6d4a58]
push edx
call fcn.005e4b3e
add esp, 4
test eax, eax
jne 0x45810c
lea eax, [ebp - 0x204]
push 0xa
push eax
call fcn.005e4b80
add esp, 8
cmp eax, ebx
je 0x4580ca
cmp dword [ebp + 0x10], ebx
je 0x4580d3
mov byte [eax], bl
jmp 0x4580d3
call fcn.00457e30
test eax, eax
je 0x45810c
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4580e0
sub eax, edx
mov edx, dword [ebp - 0x610]
push eax
lea ecx, [ebp - 0x204]
call fcn.004192d0
add esp, 4
test eax, eax
js 0x45810c
mov dword [ebp - 0x60c], 1
mov ecx, dword [0x6d4a5c]
cmp ecx, 2
jne 0x458121
mov dword [ebp - 0x60c], 0xffffffff
cmp dword [ebp - 0x614], ebx
je 0x45813d
mov edx, dword [0x6d4a54]
push 0x69aba0
push edx
call fcn.005e3085
add esp, 8
cmp dword [0x6d4a50], 2
jl 0x45816d
cmp dword [ebp + 0xc], ebx
jne 0x45816d
cmp dword [0x6d4a4c], ebx
je 0x45816d
mov eax, dword [0x6d4ae0]
push eax
push 0xfffffffffffffff6
mov dword [0x6d4a48], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x6d4a50], 1
pop edi
pop esi
pop ebx
jl 0x45817e
call fcn.00458350
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00587a20
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x60c]
xor ecx, ebp
add esp, 8
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret