Function at 0x140258ec0
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x688
call fcn.14028b850
sub rsp, rax
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x678], rax
mov dword [rsp + 0x4c], 0x1ff
mov qword [rsp + 0x40], 0
cmp dword [rsp + 0x6a0], 0
jne 0x140258f1b
mov dword [rsp + 0x670], 1
jmp 0x140258f26
mov dword [rsp + 0x670], 0
mov eax, dword [rsp + 0x670]
mov dword [rsp + 0x50], eax
mov dword [0x14037776c], 0
mov dword [rsp + 0x48], 0
mov dword [0x140377768], 0
call fcn.140259520
mov dword [0x140377768], 1
cmp dword [rsp + 0x6a0], 0
jne 0x140258f7c
mov rcx, qword [rsp + 0x690]
call fcn.140259400
test eax, eax
jne 0x140258f7c
jmp 0x14025921d
mov dword [0x140377768], 2
mov byte [rsp + 0x60], 0
cmp dword [0x140377764], 0
je 0x14025916a
xor r8d, r8d
xor edx, edx
lea rcx, str.OPENSSL_WIN32_UTF8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1402590c7
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x260]
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x270]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x1402590c2
cmp dword [rsp + 0x260], 2
jb 0x140259052
mov eax, dword [rsp + 0x260]
sub eax, 2
mov eax, eax
movzx eax, word [rsp + rax*2 + 0x270]
cmp eax, 0xd
jne 0x140259052
mov eax, dword [rsp + 0x260]
sub eax, 1
mov eax, eax
movzx eax, word [rsp + rax*2 + 0x270]
cmp eax, 0xa
jne 0x140259052
mov eax, dword [rsp + 0x260]
sub eax, 2
mov ecx, eax
mov eax, 0xa
mov word [rsp + rcx*2 + 0x270], ax
mov eax, dword [rsp + 0x260]
sub eax, 1
mov dword [rsp + 0x260], eax
mov ecx, dword [rsp + 0x260]
xor eax, eax
mov word [rsp + rcx*2 + 0x270], ax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x270]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1402590b0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov edx, 0x400
lea rcx, [rsp + 0x270]
call fcn.1400a6750
jmp 0x140259168
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x260]
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadConsoleA]
test eax, eax
je 0x140259168
cmp dword [rsp + 0x260], 2
jb 0x140259152
mov eax, dword [rsp + 0x260]
sub eax, 2
mov eax, eax
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0xd
jne 0x140259152
mov eax, dword [rsp + 0x260]
sub eax, 1
mov eax, eax
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0xa
jne 0x140259152
mov eax, dword [rsp + 0x260]
sub eax, 2
mov eax, eax
mov byte [rsp + rax + 0x60], 0xa
mov eax, dword [rsp + 0x260]
sub eax, 1
mov dword [rsp + 0x260], eax
mov eax, dword [rsp + 0x260]
mov byte [rsp + rax + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
jmp 0x140259184
mov r8, qword [0x140377778]
mov edx, dword [rsp + 0x4c]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll_fgets
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140259191
jmp 0x14025921d
mov rcx, qword [0x140377778]
call sub.MSVCR90.dll_feof
test eax, eax
je 0x1402591a3
jmp 0x14025921d
mov rcx, qword [0x140377778]
call sub.MSVCR90.dll_ferror
test eax, eax
je 0x1402591b5
jmp 0x14025921d
mov edx, 0xa
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll_strchr
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1402591e5
cmp dword [rsp + 0x6a8], 0
je 0x1402591e3
mov rax, qword [rsp + 0x40]
mov byte [rax], 0
jmp 0x1402591f7
mov rcx, qword [0x140377778]
call fcn.1402592b0
test eax, eax
jne 0x1402591f7
jmp 0x14025921d
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x698]
mov rcx, qword [rsp + 0x690]
call fcn.1401e9b30
test eax, eax
jl 0x14025921d
mov dword [rsp + 0x48], 1
mov eax, dword [0x14037776c]
cmp eax, 2
jne 0x140259230
mov dword [rsp + 0x48], 0xffffffff
cmp dword [rsp + 0x50], 0
je 0x14025924a
lea rdx, [0x14033883c]
mov rcx, qword [0x140377770]
call sub.MSVCR90.dll_fprintf
cmp dword [0x140377768], 2
jl 0x140259276
cmp dword [rsp + 0x6a0], 0
jne 0x140259276
mov rcx, qword [rsp + 0x690]
call fcn.140259460
test eax, eax
jne 0x140259276
mov dword [rsp + 0x48], 0
cmp dword [0x140377768], 1
jl 0x140259284
call fcn.1402595d0
mov edx, 0x200
lea rcx, [rsp + 0x60]
call fcn.1400a6750
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x678]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x688
ret