Function at 0x7ff34475500
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x260
mov rax, qword [0x7ff34484108]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rsp + 0x2b0]
mov rbp, rcx
mov rax, r9
lea rcx, [rsp + 0x30]
mov edi, r8d
xor r14d, r14d
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r9d, 0x20019
xor r8d, r8d
mov r13d, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
jne 0x7ff34475789
lea ecx, [r14 + 0x48]
call fcn.7ff3444f574
mov rbx, rax
cmp rax, r14
je 0x7ff344755a2
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r14
mov dword [rax + 0x28], r14d
mov dword [rax + 0x2c], r14d
mov dword [rax + 0x30], r14d
mov dword [rax + 0x34], 5
mov dword [rax + 0x38], r14d
mov qword [rax + 0x40], r14
jmp 0x7ff344755a5
mov rbx, r14
cmp rbx, r14
je 0x7ff3447573b
mov dword [rbx + 0x34], edi
mov rdx, qword [rsp + 0x30]
lea rax, [rbx + 0x30]
lea r9, [rbx + 0x2c]
lea r8, [rbx + 0x28]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.7ff344750e4
mov esi, eax
cmp eax, r14d
jne 0x7ff34475757
mov rdx, qword [rsp + 0x30]
lea r9, [rbx + 8]
lea r8, [0x7ff344478e0]
mov rcx, rbp
call fcn.7ff34475298
mov esi, eax
cmp eax, r14d
jne 0x7ff344756f3
mov rdx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [0x7ff34447898]
mov rcx, rbp
mov qword [rsp + 0x38], r14
call fcn.7ff34475298
mov esi, eax
cmp eax, r14d
jne 0x7ff344756e0
mov rcx, qword [rsp + 0x38]
mov edi, 0x104
lea rdx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, r14d
jne 0x7ff3447564d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x7ff34475656
cmp eax, edi
jbe 0x7ff3447565f
mov esi, 8
cmp esi, r14d
jne 0x7ff344756e0
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, r8
repne scasw ax, word [rdi]
lea eax, [r8 + 3]
not rcx
mov rdi, rcx
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.7ff3444f574
mov qword [rbx], rax
cmp rax, r14
jne 0x7ff34475698
mov esi, 8
jmp 0x7ff344756e0
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
call fcn.7ff3444bb58
cmp eax, r14d
jge 0x7ff344756c5
mov edx, eax
movzx ecx, ax
mov esi, eax
and edx, 0x1fff0000
cmp edx, 0x70000
cmove esi, ecx
jmp 0x7ff344756e0
cmp rdi, 1
jbe 0x7ff344756e0
mov rax, qword [rbx]
mov ecx, 0x5c
cmp cx, word [rax + rdi*2 - 4]
jne 0x7ff344756e0
mov word [rax + rdi*2 - 4], r14w
cmp qword [rsp + 0x38], r14
je 0x7ff34475712
mov rcx, qword [rsp + 0x38]
call fcn.7ff3444f5a0
jmp 0x7ff34475712
cmp eax, 2
jne 0x7ff34475712
mov rdx, qword [rsp + 0x30]
lea r9, [rbx + 0x10]
lea r8, [0x7ff34447888]
mov rcx, rbp
call fcn.7ff34475298
mov esi, eax
cmp esi, r14d
jne 0x7ff34475757
mov rdx, qword [rsp + 0x30]
lea r9, [rbx + 0x18]
lea r8, [0x7ff34447880]
mov rcx, rbp
call fcn.7ff34475298
mov esi, eax
cmp eax, 2
jne 0x7ff34475740
mov esi, r14d
jmp 0x7ff34475740
mov esi, 8
cmp esi, r14d
jne 0x7ff34475757
lea rdx, [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.7ff34475494
mov r13d, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, r14d
jne 0x7ff3447576c
cmp r13d, r14d
jne 0x7ff34475789
cmp rbx, r14
je 0x7ff34475789
mov rcx, rbx
call fcn.7ff344766f8
mov rcx, rbx
call fcn.7ff344766f8
mov rcx, rbx
call fcn.7ff3444f5a0
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.7ff344779c0
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret