Function at 0x100f4d70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x614
call fcn.100feb80
mov eax, dword [0x1016fb90]
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 [0x1017309c], ebx
mov dword [esp + 0x10], ebx
mov dword [0x10173090], ebx
mov dword [esp + 0x18], ecx
call fcn.100f4d00
mov dword [0x10173090], 1
cmp edi, ebx
jne 0x100f4df4
cmp dword [0x1017308c], ebx
je 0x100f4df4
mov eax, dword [0x10173120]
and eax, 0xfffffffb
push eax
push 0xfffffffffffffff6
mov dword [0x10173088], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [0x10173090], 2
mov byte [esp + 0x1c], bl
cmp dword [0x1017308c], ebx
je 0x100f4f16
push ebx
push ebx
push str.OPENSSL_WIN32_UTF8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
test eax, eax
je 0x100f4ec9
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 0x100f4fa9
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x100f4e7e
cmp word [esp + eax*2 + 0x218], 0xd
jne 0x100f4e7e
cmp word [esp + eax*2 + 0x21a], 0xa
jne 0x100f4e7e
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 0x100f4eb2
lea esi, [esp + 0x1c]
lea edx, [esp + 0x21c]
push 0x400
push edx
call fcn.1006c950
add esp, 8
jmp 0x100f4f31
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 0x100f4fa9
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x100f4f10
cmp byte [esp + eax + 0x1a], 0xd
jne 0x100f4f10
cmp byte [esp + eax + 0x1b], 0xa
jne 0x100f4f10
mov byte [esp + eax + 0x1a], 0xa
dec eax
mov dword [esp + 0xc], eax
mov byte [esp + eax + 0x1c], bl
jmp 0x100f4f35
mov edx, dword [0x10173098]
push edx
lea eax, [esp + 0x20]
push 0x1ff
push eax
call fcn.101013e5
add esp, 0xc
mov esi, eax
cmp esi, ebx
je 0x100f4fa9
mov ecx, dword [0x10173098]
push ecx
call fcn.10100a65
add esp, 4
test eax, eax
jne 0x100f4fa9
mov edx, dword [0x10173098]
push edx
call fcn.10100a8d
add esp, 4
test eax, eax
jne 0x100f4fa9
lea eax, [esp + 0x1c]
push 0xa
push eax
call fcn.100fd210
add esp, 8
cmp eax, ebx
je 0x100f4f7b
cmp dword [esp + 0x62c], ebx
je 0x100f4f8a
mov byte [eax], bl
jmp 0x100f4f8a
mov esi, dword [0x10173098]
call fcn.100f4b50
test eax, eax
je 0x100f4fa9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
call fcn.100d2bd0
add esp, 0xc
test eax, eax
js 0x100f4fa9
mov dword [esp + 0x10], 1
mov eax, dword [0x1017309c]
cmp eax, 2
jne 0x100f4fbb
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x18], ebx
je 0x100f4fd5
mov ecx, dword [0x10173094]
push 0x10162214
push ecx
call fcn.1010151d
add esp, 8
cmp dword [0x10173090], 2
jl 0x100f5007
cmp edi, ebx
jne 0x100f5007
cmp dword [0x1017308c], ebx
je 0x100f5007
mov eax, dword [0x10173120]
or eax, 4
push eax
push 0xfffffffffffffff6
mov dword [0x10173088], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x10173090], 1
pop esi
pop ebp
pop ebx
jl 0x100f5018
call fcn.100f4c90
lea edx, [esp + 0x10]
push 0x200
push edx
call fcn.1006c950
mov ecx, dword [esp + 0x618]
mov eax, dword [esp + 0xc]
add esp, 8
xor ecx, esp
call fcn.100fef11
add esp, 0x614
ret