Function at 0x180031500
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
xor edx, edx
mov r8d, 0x348
lea rcx, [rsp + 0x60]
mov r15d, r9d
call sub.ntdll.dll_memset
xor r13d, r13d
test r14, r14
je 0x1800482c0
cmp qword [r14 + 8], r13
je 0x1800315c0
mov dword [rsp + 0x60], 0x1a8
lea ebp, [r13 + 1]
mov ebx, r13d
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 0x1800315c0
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 0x180031570
test byte [rsp + 0x1a4], 8
jne 0x180048302
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
test rbx, rbx
jne 0x1800315c0
test r12d, r12d
jne 0x1800315c0
lea eax, [rbx + 1]
lock cmpxchg dword [0x1800aaa3c], r13d
jne 0x1800315c0
test r15d, r15d
jne 0x1800315c0
mov rax, qword [0x1800aa888]
xor ecx, ecx
call qword [case.0x18001f7d3.0]
nop
jmp 0x1800315c0
test byte [rsp + 0x1a4], 0x40
jne 0x1800315c0
cmp qword [0x1800aa890], r13
jne 0x180048422
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 0x1800315c0
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 0x1800483a3
mov r8, rdi
jmp 0x180048397
mov r8, rdi
mov rcx, qword [0x1800a9f20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
jmp 0x1800315c0
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x18004838b
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 0x1800483e0
mov r8, rsi
jmp 0x18004838e
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 0x1800315c0
xor eax, eax
lock cmpxchg qword [0x1800aa890], rbx
je 0x180048422
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rax, qword [0x1800aa888]
test rax, rax
jne 0x180048460
mov rcx, qword [0x1800aa890]
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 0x1800315c0
xor eax, eax
lock cmpxchg qword [0x1800aa888], rcx
mov rax, qword [0x1800aa888]
mov rcx, qword [r14 + 8]
call qword [case.0x18001f7d3.0]
bt r12d, 0x1c
jae 0x1800315c0
mov eax, dword [0x1800aaa3c]
test r15d, r15d
cmove eax, ebp
mov dword [0x1800aaa3c], eax
jmp 0x1800315c0