Function at 0x180027c04
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3c0
mov rax, qword [0x1800a98a0]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r12d, r8d
mov rbx, rdx
mov r14, rcx
mov edi, 0x348
mov r8d, edi
lea rcx, [rsp + 0x60]
xor edx, edx
mov r15d, r9d
call sub.ntdll.dll_memset
xor r13d, r13d
test r14, r14
jne 0x180027caa
test rbx, rbx
jne 0x180027c79
test r12d, r12d
jne 0x180027c79
lea eax, [rbx + 1]
lock cmpxchg dword [0x1800aa818], r13d
je 0x180043fe8
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.180033470
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp qword [r14 + 8], r13
je 0x180027c79
mov dword [rsp + 0x60], edi
mov ebx, r13d
mov ebp, 1
xor r9d, r9d
mov word [rsp + 0x64], r13w
lea r8, [rsp + 0x60]
mov edx, ebx
xor ecx, ecx
call sym.USER32.dll_EnumDisplayDevicesW
test eax, eax
je 0x180027c79
lea rdx, [rsp + 0x64]
add ebx, ebp
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8b, bpl
lea rcx, [rsp + 0x48]
mov rdx, r14
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x180027cbc
test byte [rsp + 0x1a4], 8
je 0x180027c79
jmp 0x180044006
test r15d, r15d
jne 0x180027c79
mov rax, qword [0x1800aa820]
xor ecx, ecx
call qword [case.0x18001f7d3.0]
nop
jmp 0x180027c79
test byte [rsp + 0x1a4], 0x40
jne 0x180027c79
cmp qword [0x1800aa828], r13
jne 0x180044126
mov rcx, qword [0x1800a9f20]
mov ebx, 0x208
mov r8d, ebx
mov dword [rsp + 0x40], ebx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x180027c79
lea rax, [rsp + 0x40]
mov r9d, 0x10000004
mov qword [rsp + 0x30], rax
lea r8, str.MirrorCompatBinaryExtension
mov qword [rsp + 0x28], rdi
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlags
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov rcx, qword [0x1800a9f20]
xor edx, edx
test eax, eax
je 0x1800440a7
mov r8, rdi
jmp 0x18004409b
mov r8, rdi
mov rcx, qword [0x1800a9f20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
jmp 0x180027c79
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x18004408f
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov rcx, qword [0x1800a9f20]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jne 0x1800440e4
mov r8, rsi
jmp 0x180044092
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rcx, qword [0x1800a9f20]
mov r8, rsi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rbx, rbx
je 0x180027c79
xor eax, eax
lock cmpxchg qword [0x1800aa828], rbx
je 0x180044126
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rax, qword [0x1800aa820]
test rax, rax
jne 0x180044164
mov rcx, qword [0x1800aa828]
lea rdx, str.MirrorDrvLoadedNotify
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, rax
test rax, rax
je 0x180027c79
xor eax, eax
lock cmpxchg qword [0x1800aa820], rcx
mov rax, qword [0x1800aa820]
mov rcx, qword [r14 + 8]
call qword [case.0x18001f7d3.0]
bt r12d, 0x1c
jae 0x180027c79
mov eax, dword [0x1800aa818]
test r15d, r15d
cmove eax, ebp
mov dword [0x1800aa818], eax
jmp 0x180027c79