Function at 0x140286b60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x98
call fcn.140473cc0
sub rsp, rax
xor r8d, r8d
xor edx, edx
lea rcx, str.OPENSSL_WIN32_UTF8
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x140286e92
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 8
call qword [sym.imp.KERNEL32.DLL_GetACP]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xc42c
je 0x140286c2a
cmp dword [rsp + 0x40], 0xc42d
je 0x140286c2a
cmp dword [rsp + 0x40], 0xc42e
je 0x140286c2a
cmp dword [rsp + 0x40], 0xc431
je 0x140286c2a
cmp dword [rsp + 0x40], 0xc433
je 0x140286c2a
cmp dword [rsp + 0x40], 0xc435
je 0x140286c2a
cmp dword [rsp + 0x40], 0xdeaa
jb 0x140286c19
cmp dword [rsp + 0x40], 0xdeb3
jbe 0x140286c2a
cmp dword [rsp + 0x40], 0xfde8
je 0x140286c2a
cmp dword [rsp + 0x40], 0x2a
jne 0x140286c32
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jle 0x140286cbf
movsxd rax, dword [rsp + 0x48]
shl rax, 1
mov rcx, rax
call fcn.140286a90
test rax, rax
je 0x140286cac
movsxd rax, dword [rsp + 0x48]
shl rax, 1
mov rcx, rax
call fcn.140286a90
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, 0xdddd
mov rcx, rax
call fcn.140286ae0
mov qword [rsp + 0x78], rax
jmp 0x140286cb5
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140286d14
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jle 0x140286d14
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jbe 0x140286d77
mov eax, dword [rsp + 0x44]
shl rax, 1
mov rcx, rax
call fcn.140286a90
test rax, rax
je 0x140286d5e
mov eax, dword [rsp + 0x44]
shl rax, 1
mov rcx, rax
call fcn.140286a90
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, 0xdddd
mov rcx, rax
call fcn.140286ae0
mov qword [rsp + 0x80], rax
jmp 0x140286d6a
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140286dd9
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp eax, dword [rsp + 0x44]
jae 0x140286dd9
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jle 0x140286dff
movsxd rax, dword [rsp + 0x4c]
mov r8d, 0x46
lea rdx, str.cryptogetenv.c
mov rcx, rax
call fcn.140246f90
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140286e67
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jne 0x140286e67
mov r8d, Ordinal_79
lea rdx, str.cryptogetenv.c
mov rcx, qword [rsp + 0x68]
call fcn.140247070
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x58], 0
je 0x140286e79
mov rcx, qword [rsp + 0x58]
call fcn.140286b10
cmp qword [rsp + 0x60], 0
je 0x140286e8b
mov rcx, qword [rsp + 0x60]
call fcn.140286b10
mov rax, qword [rsp + 0x68]
jmp 0x140286ead
call fcn.1402692c0
test eax, eax
je 0x140286e9f
xor eax, eax
jmp 0x140286ead
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add rsp, 0x98
ret