Function at 0x44e910
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x614
call fcn.00596bf0
mov eax, dword [0x616930]
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 [0x61f87c], ebx
mov dword [ebp - 0x60c], ebx
mov dword [0x61f870], ebx
mov dword [ebp - 0x614], ecx
call fcn.0044ed00
mov dword [0x61f870], 1
cmp dword [ebp + 0xc], ebx
jne 0x44e992
cmp dword [0x61f86c], ebx
je 0x44e992
mov eax, dword [0x61f900]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x61f868], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x61f870], 2
mov byte [ebp - 0x204], bl
cmp dword [0x61f86c], ebx
je 0x44ead1
push ebx
push ebx
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
test eax, eax
je 0x44ea70
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 0x44eb7c
mov eax, dword [ebp - 0x608]
cmp eax, 2
jb 0x44ea23
cmp word [ebp + eax*2 - 0x608], 0xd
jne 0x44ea23
cmp word [ebp + eax*2 - 0x606], 0xa
jne 0x44ea23
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 0x44ea5a
lea edi, [ebp - 0x204]
lea edx, [ebp - 0x604]
push 0x400
push edx
call fcn.00527a20
add esp, 8
jmp 0x44eaee
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 0x44eb7c
mov eax, dword [ebp - 0x608]
cmp eax, 2
jb 0x44eac8
cmp byte [ebp + eax - 0x206], 0xd
jne 0x44eac8
cmp byte [ebp + eax - 0x205], 0xa
jne 0x44eac8
mov byte [ebp + eax - 0x206], 0xa
dec eax
mov dword [ebp - 0x608], eax
mov byte [ebp + eax - 0x204], bl
jmp 0x44eaf6
mov edx, dword [0x61f878]
push edx
lea eax, [ebp - 0x204]
push 0x1ff
push eax
call fcn.0057cef8
add esp, 0xc
mov edi, eax
cmp edi, ebx
je 0x44eb7c
mov ecx, dword [0x61f878]
push ecx
call fcn.0057b7bc
add esp, 4
test eax, eax
jne 0x44eb7c
mov edx, dword [0x61f878]
push edx
call fcn.0057b7e4
add esp, 4
test eax, eax
jne 0x44eb7c
lea eax, [ebp - 0x204]
push 0xa
push eax
call fcn.0057e7b0
add esp, 8
cmp eax, ebx
je 0x44eb3a
cmp dword [ebp + 0x10], ebx
je 0x44eb43
mov byte [eax], bl
jmp 0x44eb43
call fcn.0044e8a0
test eax, eax
je 0x44eb7c
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44eb50
sub eax, edx
mov edx, dword [ebp - 0x610]
push eax
lea ecx, [ebp - 0x204]
call fcn.0041c780
add esp, 4
test eax, eax
js 0x44eb7c
mov dword [ebp - 0x60c], 1
mov ecx, dword [0x61f87c]
cmp ecx, 2
jne 0x44eb91
mov dword [ebp - 0x60c], 0xffffffff
cmp dword [ebp - 0x614], ebx
je 0x44ebad
mov edx, dword [0x61f874]
push 0x5f5c70
push edx
call fcn.0057fe19
add esp, 8
cmp dword [0x61f870], 2
jl 0x44ebdd
cmp dword [ebp + 0xc], ebx
jne 0x44ebdd
cmp dword [0x61f86c], ebx
je 0x44ebdd
mov eax, dword [0x61f900]
push eax
push 0xfffffffffffffff6
mov dword [0x61f868], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x61f870], 1
pop edi
pop esi
pop ebx
jl 0x44ebee
call fcn.0044ed70
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00527a20
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x60c]
xor ecx, ebp
add esp, 8
call fcn.0057af8a
mov esp, ebp
pop ebp
ret