Function at 0x47efb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x618
call fcn.00626ba0
mov eax, dword [0x70a514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x47f470
xor edi, edi
mov dword [ebp - 0x614], edx
push 0x16
mov dword [ebp - 0x618], ecx
mov dword [0x713d68], 0
mov dword [0x713cdc], edi
call fcn.0063c63f
push 0x47f470
push 8
mov dword [0x713d38], eax
call fcn.0063c63f
push 0x47f470
push 4
mov dword [0x713d00], eax
call fcn.0063c63f
push 0x47f470
push 2
mov dword [0x713cf0], eax
call fcn.0063c63f
push 0x47f470
push 0xb
mov dword [0x713ce8], eax
call fcn.0063c63f
push 0x47f470
push 0xf
mov dword [0x713d0c], eax
call fcn.0063c63f
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0x30
mov dword [0x713d1c], eax
mov dword [0x713cdc], 1
cmp dword [ebp + 8], edi
jne 0x47f087
cmp dword [0x713d6c], edi
je 0x47f087
mov eax, dword [0x713d70]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x713d64], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x713cdc], 2
mov byte [ebp - 0x20c], 0
cmp dword [0x713d6c], edi
je 0x47f1d2
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 0x47f175
lea eax, [ebp - 0x60c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x47f2a4
mov eax, dword [ebp - 0x610]
cmp eax, 2
jb 0x47f118
cmp word [ebp + eax*2 - 0x610], 0xd
jne 0x47f118
cmp word [ebp + eax*2 - 0x60e], 0xa
jne 0x47f118
mov ecx, 0xa
mov word [ebp + eax*2 - 0x610], cx
dec eax
mov dword [ebp - 0x610], eax
add eax, eax
cmp eax, 0x400
jae 0x47f37a
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.00401320
add esp, 8
jmp 0x47f1ee
lea eax, [ebp - 0x20c]
push eax
push 0xfffffffffffffff6
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x47f2a4
mov eax, dword [ebp - 0x610]
cmp eax, 2
jb 0x47f1bd
cmp byte [ebp + eax - 0x20e], 0xd
jne 0x47f1bd
cmp byte [ebp + eax - 0x20d], 0xa
jne 0x47f1bd
mov byte [ebp + eax - 0x20e], 0xa
dec eax
mov dword [ebp - 0x610], eax
cmp eax, 0x200
jae 0x47f37a
mov byte [ebp + eax - 0x20c], 0
jmp 0x47f1f6
push dword [0x713cd8]
lea eax, [ebp - 0x20c]
push 0x1ff
push eax
call fcn.0063b4a0
add esp, 0xc
mov esi, eax
test esi, esi
je 0x47f2a4
push dword [0x713cd8]
call fcn.0063890e
add esp, 4
test eax, eax
jne 0x47f2a4
push dword [0x713cd8]
call fcn.0063893a
add esp, 4
test eax, eax
jne 0x47f2a4
lea eax, [ebp - 0x20c]
push 0xa
push eax
call fcn.0062bd10
add esp, 8
test eax, eax
je 0x47f241
cmp dword [ebp + 0xc], edi
je 0x47f26c
mov byte [eax], 0
jmp 0x47f26c
mov esi, dword [0x713cd8]
push esi
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.0063b4a0
add esp, 0xc
test eax, eax
je 0x47f2a4
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.0062bd10
add esp, 8
test eax, eax
je 0x47f247
lea esi, [ebp - 0x20c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x47f275
mov edx, dword [ebp - 0x614]
lea eax, [ebp - 0x20c]
sub esi, ecx
mov ecx, dword [ebp - 0x618]
push esi
push eax
call fcn.0047ebc0
add esp, 8
mov ecx, 1
test eax, eax
cmovns edi, ecx
mov eax, dword [0x713d68]
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
cmp eax, 2
cmove edi, ecx
test esi, esi
jne 0x47f2cc
push 0x6d4c1c
push dword [0x713d60]
call fcn.0047ee00
add esp, 8
mov eax, dword [0x713cdc]
cmp eax, 2
jl 0x47f2fd
test esi, esi
jne 0x47f2fd
cmp dword [0x713d6c], esi
je 0x47f2fd
mov eax, dword [0x713d70]
push eax
push 0xfffffffffffffff6
mov dword [0x713d64], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x713cdc]
cmp eax, 1
jl 0x47f353
push dword [0x713d38]
push 0x16
call fcn.0063c63f
push dword [0x713d00]
push 8
call fcn.0063c63f
push dword [0x713cf0]
push 4
call fcn.0063c63f
push dword [0x713ce8]
push 2
call fcn.0063c63f
push dword [0x713d0c]
push 0xb
call fcn.0063c63f
push dword [0x713d1c]
push 0xf
call fcn.0063c63f
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00401320
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00626a7a
mov esp, ebp
pop ebp
ret
call fcn.006275a3
int3