Function at 0x1401760e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x98
call fcn.14036a3f0
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 0x140176410
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 0x1401761aa
cmp dword [rsp + 0x40], 0xc42d
je 0x1401761aa
cmp dword [rsp + 0x40], 0xc42e
je 0x1401761aa
cmp dword [rsp + 0x40], 0xc431
je 0x1401761aa
cmp dword [rsp + 0x40], 0xc433
je 0x1401761aa
cmp dword [rsp + 0x40], 0xc435
je 0x1401761aa
cmp dword [rsp + 0x40], 0xdeaa
jb 0x140176199
cmp dword [rsp + 0x40], 0xdeb3
jbe 0x1401761aa
cmp dword [rsp + 0x40], 0xfde8
je 0x1401761aa
cmp dword [rsp + 0x40], 0x2a
jne 0x1401761b2
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 0x14017623e
movsxd rax, dword [rsp + 0x48]
shl rax, 1
mov rcx, rax
call fcn.140176010
test rax, rax
je 0x14017622b
movsxd rax, dword [rsp + 0x48]
shl rax, 1
mov rcx, rax
call fcn.140176010
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, 0xdddd
mov rcx, rax
call fcn.140176060
mov qword [rsp + 0x78], rax
jmp 0x140176234
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140176293
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 0x140176293
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 0x1401762f5
mov eax, dword [rsp + 0x44]
shl rax, 1
mov rcx, rax
call fcn.140176010
test rax, rax
je 0x1401762dc
mov eax, dword [rsp + 0x44]
shl rax, 1
mov rcx, rax
call fcn.140176010
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, 0xdddd
mov rcx, rax
call fcn.140176060
mov qword [rsp + 0x80], rax
jmp 0x1401762e8
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140176357
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 0x140176357
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 0x14017637d
movsxd rax, dword [rsp + 0x4c]
mov r8d, 0x46
lea rdx, str.cryptogetenv.c
mov rcx, rax
call fcn.1401385b0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1401763e5
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 0x1401763e5
mov r8d, 0x4c
lea rdx, str.cryptogetenv.c
mov rcx, qword [rsp + 0x68]
call fcn.140138690
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x58], 0
je 0x1401763f7
mov rcx, qword [rsp + 0x58]
call fcn.140176090
cmp qword [rsp + 0x60], 0
je 0x140176409
mov rcx, qword [rsp + 0x60]
call fcn.140176090
mov rax, qword [rsp + 0x68]
jmp 0x14017642a
call fcn.14014a140
test eax, eax
je 0x14017641d
xor eax, eax
jmp 0x14017642a
mov rcx, qword [rsp + 0xa0]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add rsp, 0x98
ret