Function at 0x140216670
Capabilities:
Query environment variable

Disassembly:
push rbp
push r12
push r13
mov eax, 0x160
call fcn.1400be950
sub rsp, rax
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x1a8]
mov rbp, rcx
mov rcx, qword [rsp + 0x1a0]
test rax, rax
mov qword [rsp + 0x68], rcx
mov r13d, r8d
lea rcx, [fcn.140216030]
mov qword [rsp + 0x70], r9
cmovne rcx, rax
mov r12, rdx
mov qword [rsp + 0x60], rcx
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x18]
call fcn.1401d8130
cmp eax, 0x15
je 0x140216704
mov edx, WSAGetLastError
mov dword [rsp + 0x20], 0x5b
lea r9, str.cryptopkcs12p12_mutl.c
lea ecx, [rdx - 0x48]
lea r8d, [rdx + 0xe]
call fcn.1401cf2c0
xor eax, eax
jmp 0x1402169a0
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x158], rbx
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x140], r14
mov rax, qword [rcx + 8]
mov qword [rsp + 0x138], r15
mov r14, qword [rax + 8]
mov r15d, dword [rax]
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x140216741
lea ebx, [rax + 1]
jmp 0x14021674f
mov rcx, rax
call fcn.140209490
mov rcx, qword [rbp + 8]
mov ebx, eax
mov rcx, qword [rcx]
lea rdx, [rsp + 0x50]
xor r8d, r8d
call fcn.140215880
mov r9, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
call fcn.14020a3a0
mov rcx, qword [rsp + 0x58]
call fcn.1401d8130
mov ecx, eax
call fcn.1401d8080
mov rcx, rax
call fcn.1401da7c0
mov rdi, rax
test rax, rax
jne 0x1402167b9
lea r9, str.cryptopkcs12p12_mutl.c
mov dword [rsp + 0x20], WSAGetLastError
lea edx, [rax + 0x6b]
lea ecx, [rax + 0x23]
lea r8d, [rax + 0x76]
call fcn.1401cf2c0
xor eax, eax
jmp 0x140216980
mov rcx, rdi
mov qword [rsp + 0x150], rsi
call fcn.1401d94b0
mov rcx, rdi
mov esi, eax
call fcn.140022cb0
test esi, esi
js 0x140216976
cmp eax, 0x329
je 0x1402167f0
add eax, 0xfffffc2a
cmp eax, 1
ja 0x140216913
lea rcx, str.LEGACY_GOST_PKCS12
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
jne 0x140216913
lea esi, [rax + 0x20]
mov r9d, r15d
lea rax, [rsp + 0xc0]
mov r8, r14
mov qword [rsp + 0x38], rax
mov edx, r13d
mov dword [rsp + 0x30], 0x60
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
call fcn.140259970
test eax, eax
je 0x1402168f2
movaps xmm0, xmmword [rsp + 0x100]
lea edx, [rsi + 0x40]
movaps xmm1, xmmword [rsp + 0x110]
lea rcx, [rsp + 0xc0]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm1
call fcn.1401e3740
call fcn.1401f22e0
mov rbx, rax
test rax, rax
je 0x14021696e
mov r9, rdi
mov qword [rsp + 0x20], 0
mov r8d, esi
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1401f2520
test eax, eax
je 0x14021696e
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 0x20]
mov rcx, rbx
movsxd r8, dword [rdx]
mov rdx, qword [rdx + 8]
call fcn.1401f2cb0
test eax, eax
je 0x14021696e
mov r8, qword [rsp + 0x68]
mov rcx, rbx
mov rdx, qword [rsp + 0x70]
call fcn.1401f2470
test eax, eax
je 0x14021696e
mov rcx, rbx
call fcn.1401f2260
mov eax, 1
jmp 0x140216978
mov edx, WSAGetLastError
mov dword [rsp + 0x20], 0x76
lea r9, str.cryptopkcs12p12_mutl.c
mov r8d, edx
lea ecx, [rdx - 0x48]
call fcn.1401cf2c0
jmp 0x140216976
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov r9d, r15d
mov dword [rsp + 0x30], esi
mov r8, r14
mov dword [rsp + 0x28], ebx
mov edx, r13d
mov rcx, r12
mov dword [rsp + 0x20], 3
call qword [rsp + 0x60]
test eax, eax
jne 0x14021686f
mov edx, WSAGetLastError
mov dword [rsp + 0x20], 0x7c
mov r8d, edx
lea r9, str.cryptopkcs12p12_mutl.c
lea ecx, [rax + 0x23]
call fcn.1401cf2c0
jmp 0x140216976
mov rcx, rbx
call fcn.1401f2260
xor eax, eax
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x148]
mov r14, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x158]
mov r15, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x160
pop r13
pop r12
pop rbp
ret