Function at 0x140026cb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, qword [rcx + 0x20]
xor r15d, r15d
mov r14, rdx
mov rsi, qword [rax + 8]
cmp qword [rsi + 0x60], r15
jne 0x1400270db
mov eax, dword [0x14006f790]
cmp eax, 0xffffffff
jne 0x140026d32
xor edx, edx
lea r8d, [r15 + 0x40]
lea rcx, [rbp + 0x10]
call sub.msvcrt.dll_memset
lea r8d, [r15 + 0x20]
lea rdx, [rbp + 0x10]
lea rcx, str.__PatchmgrDisableDeviceAttribute__
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [rbp + 0x10], 0x31
mov eax, r15d
setne al
mov dword [0x14006f790], eax
test eax, eax
je 0x140026e7b
lea r9, [rbp - 0x40]
mov qword [rbp - 0x40], r15
lea r8, [rbp - 0x58]
mov edx, 0x2b
lea rcx, str.Windows.Internal.Flighting.ClientAttributes
call fcn.140037888
test eax, eax
js 0x14002724c
mov rcx, qword [rbp - 0x40]
lea r8, [rsp + 0x68]
lea rdx, [0x140065190]
mov qword [rsp + 0x68], r15
call qword [0x140058048]
test eax, eax
js 0x140026e66
mov rbx, qword [rsp + 0x68]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x38]
mov qword [rsp + 0x60], r15
mov edx, 7
mov qword [rbp - 0x20], r15
lea rcx, str.1.0.0.0
call fcn.140037888
test eax, eax
js 0x140027254
mov rdi, qword [rbp - 0x20]
lea r9, [rbp]
lea r8, [rbp - 0x18]
mov qword [rbp], r15
mov edx, 5
lea rcx, str.WU_OS
call fcn.140037888
test eax, eax
js 0x14002725c
mov rax, qword [rbx]
lea r9, [rsp + 0x60]
mov rdx, qword [rbp]
mov r8, rdi
mov rcx, rbx
call qword [rax + 0x30]
test eax, eax
js 0x140026e51
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], r15
lea rdx, [0x1400651a8]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], r15
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x48]
test eax, eax
jns 0x140026ea5
test rcx, rcx
je 0x140026e3c
mov qword [rsp + 0x48], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140026e51
mov qword [rsp + 0x58], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140026e66
mov qword [rsp + 0x60], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140026e7b
mov qword [rsp + 0x68], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x30], r15b
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov edi, eax
test eax, eax
js 0x140027087
cmp byte [rsp + 0x30], r15b
je 0x140027087
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x14002706b
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x38], r15
call fcn.140037938
mov qword [rsp + 0x50], r15
lea rdx, [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x38]
test eax, eax
js 0x140027052
mov rbx, qword [rsp + 0x40]
call fcn.140037938
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.140037994
mov rdx, rax
test rax, rax
je 0x140026f5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140026f52
jmp 0x140026f61
mov eax, r15d
mov r8d, eax
lea rcx, [rsp + 0x70]
call fcn.14001d558
mov rbx, qword [rsi + 0x58]
mov rdi, qword [rbx + 8]
jmp 0x140026fa0
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140027264
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.msvcrt.dll__mbscmp]
test eax, eax
jns 0x140026f9a
mov rdi, qword [rdi + 0x10]
jmp 0x140026fa0
mov rbx, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], r15b
je 0x140026f78
cmp rbx, qword [rsi + 0x58]
je 0x140026fc8
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x140027264
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__mbscmp]
test eax, eax
jns 0x140026ffd
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rax
lea rcx, [rsi + 0x58]
call fcn.140035970
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 0x58]
lea r9, [rax + 0x20]
call fcn.1400359e0
mov rbx, qword [rbp - 0x80]
mov rcx, qword [rbx + 0x28]
mov qword [rbp - 0x68], rbx
call fcn.140037938
mov qword [rbx + 0x28], r15
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x28], rax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov qword [rsp + 0x38], r15
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002703b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call fcn.140037938
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], r15
call fcn.140037938
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140027080
mov qword [rsp + 0x40], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
jmp 0x140026eb9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002709c
mov qword [rsp + 0x48], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400270b1
mov qword [rsp + 0x58], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400270c6
mov qword [rsp + 0x60], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400270db
mov qword [rsp + 0x68], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
xor r8d, r8d
lea rdx, str.Name
mov rcx, r14
call fcn.140014c40
mov rbx, rax
test rax, rax
je 0x140026e7b
xor r8d, r8d
lea rdx, str.Type
mov rcx, r14
call fcn.140014c40
mov r12, rax
test rax, rax
je 0x140026e7b
xor r8d, r8d
lea rdx, str.Comparison
mov rcx, r14
call fcn.140014c40
mov r13, rax
test rax, rax
je 0x140026e7b
xor r8d, r8d
lea rdx, str.Value
mov rcx, r14
call fcn.140014c40
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140026e7b
cmp qword [rbx + 8], 0
lea r15, [0x140063614]
mov rdx, r15
lea rcx, [rbp - 0x78]
cmovne rdx, qword [rbx + 8]
call fcn.1400018d0
mov r14, qword [rsi + 0x58]
mov rbx, qword [rbp - 0x78]
mov rax, r14
mov rdi, qword [r14 + 8]
cmp byte [rdi + 0x19], 0
jne 0x1400271b6
test rbx, rbx
je 0x140027241
mov rcx, qword [rdi + 0x20]
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__mbscmp]
test eax, eax
jns 0x1400271a6
mov rdi, qword [rdi + 0x10]
jmp 0x1400271ac
mov r14, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x140027186
mov rax, qword [rsi + 0x58]
cmp r14, rax
je 0x1400271d5
mov rdx, qword [r14 + 0x20]
test rdx, rdx
je 0x140027241
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__mbscmp]
test eax, eax
jns 0x1400271d8
mov rax, qword [rsi + 0x58]
mov r14, rax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400271f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp r14, qword [rsi + 0x58]
je 0x140027205
mov rcx, qword [r14 + 0x28]
xor edx, edx
call fcn.140037994
jmp 0x140027207
xor eax, eax
mov rcx, qword [rbp - 0x70]
mov r9, r15
mov rdx, r15
mov r8, rax
cmp qword [rcx + 8], 0
cmovne r9, qword [rcx + 8]
cmp qword [r12 + 8], 0
cmovne rdx, qword [r12 + 8]
cmp qword [r13 + 8], 0
cmovne r15, qword [r13 + 8]
mov rcx, r15
call fcn.140020a70
jmp 0x140026e7e
mov ecx, 0x80004005
call fcn.140002198
int3
mov ecx, eax
call fcn.14001ae20
int3
mov ecx, eax
call fcn.14001ae20
int3
mov ecx, eax
call fcn.14001ae20
int3
mov ecx, 0x80004005
call fcn.140002198
int3