Function at 0x10114ef0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x614
call fcn.1011fc40
mov eax, dword [0x101b2070]
xor eax, esp
mov dword [esp + 0x610], eax
mov eax, dword [esp + 0x61c]
push ebx
push ebp
mov ebp, dword [esp + 0x620]
xor ebx, ebx
xor ecx, ecx
push esi
xor esi, esi
cmp edi, ebx
sete cl
mov dword [esp + 0x14], eax
mov dword [0x101b72cc], ebx
mov dword [esp + 0x10], ebx
mov dword [0x101b72c0], ebx
mov dword [esp + 0x18], ecx
call fcn.10114e80
mov dword [0x101b72c0], 1
cmp edi, ebx
jne 0x10114f74
cmp dword [0x101b72bc], ebx
je 0x10114f74
mov eax, dword [0x101b7350]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x101b72b8], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x101b72c0], 2
mov byte [esp + 0x1c], bl
cmp dword [0x101b72bc], ebx
je 0x10115096
push ebx
push ebx
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
test eax, eax
je 0x10115049
lea edx, [esp + 0x10]
push edx
push 0x1ff
lea eax, [esp + 0x228]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x10115129
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x10114ffe
cmp word [esp + eax*2 + 0x218], 0xd
jne 0x10114ffe
cmp word [esp + eax*2 + 0x21a], 0xa
jne 0x10114ffe
mov ecx, 0xa
mov word [esp + eax*2 + 0x218], cx
dec eax
mov dword [esp + 0xc], eax
push ebx
push ebx
push 0x200
xor edx, edx
mov word [esp + eax*2 + 0x228], dx
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x230]
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x10115032
lea esi, [esp + 0x1c]
lea edx, [esp + 0x21c]
push 0x400
push edx
call fcn.1008d870
add esp, 8
jmp 0x101150b1
lea eax, [esp + 0x10]
push eax
push 0x1ff
lea ecx, [esp + 0x28]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x10115129
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x10115090
cmp byte [esp + eax + 0x1a], 0xd
jne 0x10115090
cmp byte [esp + eax + 0x1b], 0xa
jne 0x10115090
mov byte [esp + eax + 0x1a], 0xa
dec eax
mov dword [esp + 0xc], eax
mov byte [esp + eax + 0x1c], bl
jmp 0x101150b5
mov edx, dword [0x101b72c8]
push edx
lea eax, [esp + 0x20]
push 0x1ff
push eax
call fcn.1011eba3
add esp, 0xc
mov esi, eax
cmp esi, ebx
je 0x10115129
mov ecx, dword [0x101b72c8]
push ecx
call fcn.1011ecdb
add esp, 4
test eax, eax
jne 0x10115129
mov edx, dword [0x101b72c8]
push edx
call fcn.1011ed03
add esp, 4
test eax, eax
jne 0x10115129
lea eax, [esp + 0x1c]
push 0xa
push eax
call fcn.10120440
add esp, 8
cmp eax, ebx
je 0x101150fb
cmp dword [esp + 0x62c], ebx
je 0x1011510a
mov byte [eax], bl
jmp 0x1011510a
mov esi, dword [0x101b72c8]
call fcn.10114cd0
test eax, eax
je 0x10115129
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
call fcn.100ee800
add esp, 0xc
test eax, eax
js 0x10115129
mov dword [esp + 0x10], 1
mov eax, dword [0x101b72cc]
cmp eax, 2
jne 0x1011513b
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x10115155
mov ecx, dword [0x101b72c4]
push 0x10156dc0
push ecx
call fcn.1011be3a
add esp, 8
cmp dword [0x101b72c0], 2
jl 0x10115184
cmp edi, ebx
jne 0x10115184
cmp dword [0x101b72bc], ebx
je 0x10115184
mov eax, dword [0x101b7350]
push eax
push 0xfffffffffffffff6
mov dword [0x101b72b8], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x101b72c0], 1
pop esi
pop ebp
pop ebx
jl 0x10115195
call fcn.10114e10
lea edx, [esp + 0x10]
push 0x200
push edx
call fcn.1008d870
mov ecx, dword [esp + 0x618]
mov eax, dword [esp + 0xc]
add esp, 8
xor ecx, esp
call fcn.1011bab4
add esp, 0x614
ret