Function at 0x140009730
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 0x1400099e1
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.140009688
test eax, eax
jne 0x1400099e1
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.1400192cc
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400099d3
lea r9, [rsp + 0xb8]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140009688
test eax, eax
jne 0x1400099c6
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 0x1400099c6
mov eax, r12d
mul rsi
cmovo rax, r13
mov rcx, rax
call fcn.1400192cc
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400099c6
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 0x1400099b9
cmp dword [rsp + 0xb0], ebx
je 0x14000991f
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.1400192cc
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400099b9
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 0x1400098f0
mov r9, r12
mov rcx, rdi
call fcn.140009610
mov dword [rsp + 0x30], eax
jmp 0x1400098f8
test r13d, r13d
je 0x1400098f8
mov word [rdi], bx
lea r8, [rsp + 0xc0]
mov rdx, rsi
mov rcx, rdi
call fcn.1400095a4
test eax, eax
js 0x1400099b9
lea r9, str.Performance_
jmp 0x1400099a2
lea esi, [r13 + 2]
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400192cc
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400099b9
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 0x14000997c
mov r9, r12
mov edx, esi
mov rcx, rdi
call fcn.140009610
mov dword [rsp + 0x34], eax
jmp 0x140009984
test rsi, rsi
je 0x140009984
mov word [rdi], bx
lea r8, [rsp + 0xc0]
mov rdx, rsi
mov rcx, rdi
call fcn.1400095a4
test eax, eax
js 0x1400099b9
lea r9, [0x14001e418]
mov rax, qword [rsp + 0xc0]
sub rsi, rax
mov rdx, rsi
lea rcx, [rdi + rax*2]
call fcn.140009610
mov rcx, r12
call sub.msvcrt.dll_free
mov qword [rsp + 0x48], rbx
mov rcx, r15
call sub.msvcrt.dll_free
mov qword [rsp + 0x40], rbx
jmp 0x1400099e1
test r14, r14
je 0x1400099f4
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