Function at 0x140009bcc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
xor ebx, ebx
mov r14d, ebx
mov qword [rax - 0x50], rbx
mov qword [rax - 0x48], rbx
mov qword [rax - 0x40], rbx
mov edi, ebx
mov qword [rax - 0x70], rbx
mov qword [rax + 0x10], rbx
lea rax, [rax + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWbemCIMOM
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009e7f
mov r14, qword [rsp + 0xb8]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0xb8], ebx
lea r9, [rsp + 0xb8]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140009b1c
test eax, eax
jne 0x140009e7f
mov ecx, dword [rsp + 0xb8]
add rcx, rcx
lea r12d, [rbx + 2]
mov eax, r12d
mul rcx
lea r13, [rbx - 1]
cmovo rax, r13
mov rcx, rax
call fcn.140019114
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140009e71
lea r9, [rsp + 0xb8]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140009b1c
test eax, eax
jne 0x140009e63
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x140009e63
mov eax, r12d
mul rsi
cmovo rax, r13
mov rcx, rax
call fcn.140019114
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140009e63
mov r8d, esi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov r13d, eax
test eax, eax
je 0x140009e55
cmp dword [rsp + 0xb0], ebx
je 0x140009dbb
lea rcx, str.Performance_
call qword [sym.imp.msvcrt.dll_wcslen]
lea esi, [rax + 1]
add esi, r13d
lea eax, [rbx + 2]
mul rsi
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140019114
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140009e55
mov edx, r13d
lea rax, [r13 - 1]
mov ecx, ebx
mov r8d, 0x80070057
cmp rax, 0x7ffffffe
cmova ecx, r8d
mov dword [rsp + 0x30], ecx
test ecx, ecx
js 0x140009d8c
mov r9, r12
mov rcx, rdi
call fcn.140009a9c
mov dword [rsp + 0x30], eax
jmp 0x140009d94
test r13d, r13d
je 0x140009d94
mov word [rdi], bx
lea r8, [rsp + 0xc0]
mov rdx, rsi
mov rcx, rdi
call fcn.140009a28
test eax, eax
js 0x140009e55
lea r9, str.Performance_
jmp 0x140009e3e
lea esi, [r13 + 2]
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140019114
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140009e55
lea rax, [rsi - 1]
mov ecx, ebx
mov r8d, 0x80070057
cmp rax, 0x7ffffffe
cmova ecx, r8d
mov dword [rsp + 0x34], ecx
test ecx, ecx
js 0x140009e18
mov r9, r12
mov edx, esi
mov rcx, rdi
call fcn.140009a9c
mov dword [rsp + 0x34], eax
jmp 0x140009e20
test rsi, rsi
je 0x140009e20
mov word [rdi], bx
lea r8, [rsp + 0xc0]
mov rdx, rsi
mov rcx, rdi
call fcn.140009a28
test eax, eax
js 0x140009e55
lea r9, [0x1400207b8]
mov rax, qword [rsp + 0xc0]
sub rsi, rax
mov rdx, rsi
lea rcx, [rdi + rax*2]
call fcn.140009a9c
mov rcx, r12
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x48], rbx
mov rcx, r15
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x40], rbx
jmp 0x140009e7f
test r14, r14
je 0x140009e92
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x58], rbx
mov rax, rdi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret