Function at 0x18000de60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
test cl, 4
je 0x18000e562
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x8e0
mov rax, qword [0x18007f080]
xor rax, rsp
mov qword [rsp + 0x8d0], rax
xor r13d, r13d
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x90]
call sub.ucrtbase.dll_memset
mov dword [rsp + 0x80], 0x20a
lea ecx, [r13 + 1]
call fcn.18000a440
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
mov r9d, eax
lea r8, str.CustomThemeMsstyle
xor edx, edx
mov rcx, qword [0x180085320]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x18000df0c
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18000df1f
mov edx, eax
call fcn.18000bac0
mov dword [rsp + 0x84], 1
mov dword [rsp + 0x80], 4
mov ecx, 0x10
call fcn.18000a440
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x84]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
mov r9d, eax
lea r8, str.CustomThemeMsstyleUseDefaults
xor edx, edx
mov rcx, qword [0x180085320]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x18000df83
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18000df96
mov edx, eax
call fcn.18000bac0
lea rcx, [rsp + 0x90]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], r13w
jne 0x18000dfb0
lea rsi, [0x18007f130]
mov r8, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova r8, qword [0x18007f130]
mov rdx, qword [0x18007f140]
cmp rdx, rax
jne 0x18000e02b
lea rcx, [rsp + 0x90]
test rdx, rdx
je 0x18000e014
lea rax, [rsp + 0x90]
sub r8, rax
nop dword [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x18000e02b
add rcx, 2
sub rdx, 1
jne 0x18000e000
cmp dword [rsp + 0x84], r13d
setne al
cmp byte [0x18007f100], al
je 0x18000e531
mov rdi, qword [0x1800853b0]
mov qword [0x1800853b0], r13
test rdi, rdi
je 0x18000e058
mov rcx, rdi
call fcn.18000db50
mov r8, rdi
xor edx, edx
mov rcx, qword [0x180085850]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x90]
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x18000e060
mov r8, rbx
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.18000aed0
cmp dword [rsp + 0x84], r13d
setne byte [0x18007f100]
cmp qword [0x18007f140], r13
je 0x18000e531
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rcx, qword [0x18007f130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000e531
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x6c0]
call sub.ucrtbase.dll_memset
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x4b0]
call sub.ucrtbase.dll_memset
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x2a0]
call sub.ucrtbase.dll_memset
mov ecx, dword [0x180085114]
mov rax, qword gs:[0x58]
mov edx, 4
mov rdi, qword [rax + rcx*8]
add rdi, rdx
mov eax, dword [rdi]
cmp dword [0x1800858a0], eax
jle 0x18000e161
lea rcx, [0x1800858a0]
call fcn.18003f414
cmp dword [0x1800858a0], 0xffffffff
jne 0x18000e161
lea rcx, str.uxtheme.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800858a8], rax
lea rcx, [0x1800858a0]
call fcn.18003f3a8
mov rax, qword [0x1800858a8]
test rax, rax
je 0x18000e1bb
cmp byte [0x18007f100], 0
je 0x18000e1bb
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rcx, qword [0x18007f130]
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x2a0]
mov r8d, 0x104
lea rdx, [rsp + 0x4b0]
call rax
mov rcx, qword [rsp + 0x8f8]
test eax, eax
js 0x18000e563
jmp 0x18000e1ff
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rsp + 0x4b0]
mov edx, r9d
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.UxTheme.dll_GetCurrentThemeName]
mov rcx, qword [rsp + 0x8f8]
test eax, eax
js 0x18000e56a
xor edx, edx
lea r8d, [rdx + 0x38]
mov rcx, qword [0x180085850]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x8f8]
test rax, rax
je 0x18000e571
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x646e65
movabs rcx, 0x656c69666d6874
mov qword [rax], rcx
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
mov rbx, qword [0x1800853b0]
mov qword [0x1800853b0], rax
test rbx, rbx
je 0x18000e279
mov rcx, rbx
call fcn.18000db50
mov r8, rbx
xor edx, edx
mov rcx, qword [0x180085850]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rdi]
cmp dword [0x1800858b0], eax
jle 0x18000e2c6
lea rcx, [0x1800858b0]
call fcn.18003f414
cmp dword [0x1800858b0], 0xffffffff
jne 0x18000e2c6
lea rcx, str.uxtheme.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x5c
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800858b8], rax
lea rcx, [0x1800858b0]
call fcn.18003f3a8
mov r14, qword [0x1800858b8]
test r14, r14
je 0x18000e531
mov rdi, qword [0x1800853b0]
add rdi, 0x20
mov r15, qword [rdi]
lea rax, [r15 - 1]
cmp dword [0x180085858], 0x55f0
jae 0x18000e3bb
cmp rax, 0xfffffffffffffffd
ja 0x18000e317
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rdi], r13
mov r12, qword [0x1800853b0]
add r12, 0x10
mov r15, qword [r12]
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000e34c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [r12], r13
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rsi, qword [0x18007f130]
mov dword [rsp + 0x78], r13d
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x68], r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4b0]
mov r8, rsi
xor edx, edx
xor ecx, ecx
call r14
jmp 0x18000e474
cmp rax, 0xfffffffffffffffd
ja 0x18000e3da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rdi], r13
mov r12, qword [0x1800853b0]
add r12, 0x10
mov r15, qword [r12]
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000e40f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [r12], r13
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rsi, qword [0x18007f130]
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x68], r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4b0]
mov r8, rsi
xor edx, edx
xor ecx, ecx
call r14
mov rcx, qword [rsp + 0x8f8]
test eax, eax
js 0x18000e576
mov rbx, qword [0x1800853b0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x1800853b0]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_core_memory_l1_1_6.dll_MapViewOfFile3]
mov rcx, qword [rbx + 8]
mov qword [rbx + 8], rax
test rcx, rcx
je 0x18000e4da
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbx, qword [0x1800853b0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x1800853b0]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.api_ms_win_core_memory_l1_1_6.dll_MapViewOfFile3]
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x18], rax
test rcx, rcx
je 0x18000e531
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.18003efb0
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
mov edx, eax
call fcn.18000baa0
mov edx, eax
call fcn.18000baa0
call fcn.18000b570
mov edx, eax
call fcn.18000baa0
int3