Function at 0x5eca5e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x5ecda1
mov dword [ebp - 0x618], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
push 0x16
mov dword [ebp - 0x614], eax
mov dword [0x9333f4], ebx
mov dword [0x9333f8], ebx
call fcn.0072da81
push esi
push 8
mov dword [0x9333b8], eax
call fcn.0072da81
push esi
push 4
mov dword [0x933380], eax
call fcn.0072da81
push esi
push 2
mov dword [0x933370], eax
call fcn.0072da81
push esi
push 0xb
mov dword [0x933368], eax
call fcn.0072da81
push esi
push 0xf
mov dword [0x93338c], eax
call fcn.0072da81
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0x30
mov dword [0x93339c], eax
xor eax, eax
inc eax
mov dword [0x9333f8], eax
cmp dword [ebp + 0x10], ebx
jne 0x5ecb1e
cmp dword [0x9333f0], ebx
je 0x5ecb1e
mov eax, dword [0x9333e0]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x9333e4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xa
mov dword [0x9333f8], 2
mov byte [ebp - 0x20c], bl
pop esi
cmp dword [0x9333f0], ebx
je 0x5ecc61
push ebx
push ebx
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
test eax, eax
lea eax, [ebp - 0x610]
push eax
push 0x1ff
je 0x5ecc02
lea eax, [ebp - 0x60c]
push eax
push 0xfffffffffffffff6
call edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x5ecd0f
mov eax, dword [ebp - 0x610]
cmp eax, 2
jb 0x5ecba8
cmp word [ebp + eax*2 - 0x610], 0xd
jne 0x5ecba8
cmp word [ebp + eax*2 - 0x60e], si
jne 0x5ecba8
mov word [ebp + eax*2 - 0x610], si
dec eax
mov dword [ebp - 0x610], eax
add eax, eax
cmp eax, 0x400
jae 0x5ecd9b
push ebx
push ebx
push 0x200
xor ecx, ecx
mov word [ebp + eax - 0x60c], cx
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x60c]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
lea edi, [ebp - 0x20c]
lea eax, [ebp - 0x60c]
push 0x400
push eax
cmovle edi, ebx
call fcn.0054ec79
pop ecx
pop ecx
jmp 0x5ecc7d
lea eax, [ebp - 0x20c]
push eax
push 0xfffffffffffffff6
call edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x5ecd0f
mov eax, dword [ebp - 0x610]
cmp eax, 2
jb 0x5ecc4a
cmp byte [ebp + eax - 0x20e], 0xd
jne 0x5ecc4a
cmp byte [ebp + eax - 0x20d], 0xa
jne 0x5ecc4a
mov byte [ebp + eax - 0x20e], 0xa
dec eax
mov dword [ebp - 0x610], eax
cmp eax, 0x200
jae 0x5ecd9b
push 0xa
mov byte [ebp + eax - 0x20c], bl
pop esi
jmp 0x5ecc85
push dword [0x9333e8]
lea eax, [ebp - 0x20c]
push 0x1ff
push eax
call fcn.00735878
add esp, 0xc
mov edi, eax
test edi, edi
je 0x5ecd0f
push dword [0x9333e8]
call fcn.0072dc50
pop ecx
test eax, eax
jne 0x5ecd0f
push dword [0x9333e8]
call fcn.0072dc7c
pop ecx
test eax, eax
jne 0x5ecd0f
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00718370
pop ecx
pop ecx
test eax, eax
je 0x5eccc1
cmp dword [ebp + 0x14], ebx
je 0x5eccea
mov byte [eax], bl
jmp 0x5eccea
mov edi, dword [0x9333e8]
push edi
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.00735878
add esp, 0xc
test eax, eax
je 0x5ecd0f
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00718370
pop ecx
pop ecx
test eax, eax
je 0x5eccc7
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x614]
push dword [ebp - 0x618]
call fcn.005c1f52
add esp, 0xc
test eax, eax
push 1
pop edi
cmovns ebx, edi
jmp 0x5ecd12
xor edi, edi
inc edi
mov eax, dword [0x9333f4]
cmp eax, 2
mov esi, dword [ebp + 0x10]
push 0xffffffffffffffff
pop eax
cmove ebx, eax
test esi, esi
jne 0x5ecd39
push 0x7bc638
push dword [0x9333ec]
call fcn.0052fe09
pop ecx
pop ecx
mov eax, dword [0x9333f8]
cmp eax, 2
jl 0x5ecd6e
test esi, esi
jne 0x5ecd6e
cmp dword [0x9333f0], esi
je 0x5ecd6e
mov eax, dword [0x9333e0]
push eax
push 0xfffffffffffffff6
mov dword [0x9333e4], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [0x9333f8]
cmp eax, edi
jl 0x5ecd77
call fcn.005eca0c
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.0054ec79
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
call fcn.006ffeca
int3