Function at 0x18000aaa8
Capabilities:
Check if file exists

Disassembly:
test cl, 4
je 0x18000b183
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x8e0
mov rax, qword [0x180036040]
xor rax, rsp
mov qword [rsp + 0x8d0], rax
xor r12d, r12d
mov r13d, 0x20a
mov r8d, r13d
xor edx, edx
lea rcx, [r11 - 0x868]
call sub.ucrtbase.dll_memset
lea r9, [rsp + 0x90]
lea r8, str.CustomThemeMsstyle
xor edx, edx
mov rcx, qword [0x180039808]
call fcn.18000b3fc
mov ebx, 0x80070002
cmp eax, ebx
jne 0x18000ab5e
lea r9, [rsp + 0x90]
lea r8, str.CustomThemeMsstyle
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000002
call fcn.18000b3fc
mov rcx, qword [rsp + 0x8f8]
mov r9d, ebx
lea r8d, [r12 + 1]
mov edx, eax
call fcn.180003d2c
jmp 0x18000ab71
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18000ab71
mov edx, eax
call fcn.180003f6c
mov dword [rsp + 0x80], 1
lea r9, [rsp + 0x80]
lea r8, str.CustomThemeMsstyleUseDefaults
xor edx, edx
mov rcx, qword [0x180039808]
call fcn.180003c14
cmp eax, ebx
jne 0x18000abd9
lea r9, [rsp + 0x80]
lea r8, str.CustomThemeMsstyleUseDefaults
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000002
call fcn.180003c14
mov rcx, qword [rsp + 0x8f8]
mov r9d, ebx
mov r8d, 1
mov edx, eax
call fcn.180003d2c
jmp 0x18000abec
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18000abec
mov edx, eax
call fcn.180003f6c
lea rcx, [rsp + 0x90]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rcx + rax*2], r12w
jne 0x18000abfb
lea rsi, [0x1800360d0]
mov r8, rsi
mov r15d, 7
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova r8, qword [0x1800360d0]
mov rcx, qword [0x1800360e0]
cmp rcx, rax
jne 0x18000ac76
lea rdx, [rsp + 0x90]
test rcx, rcx
je 0x18000ac5c
lea rax, [rsp + 0x90]
sub r8, rax
movzx eax, word [rdx + r8]
cmp ax, word [rdx]
jne 0x18000ac76
add rdx, 2
sub rcx, 1
jne 0x18000ac48
mov edi, dword [rsp + 0x80]
test edi, edi
setne al
cmp byte [0x1800360b8], al
je 0x18000b152
jmp 0x18000ac7d
mov edi, dword [rsp + 0x80]
mov rbx, qword [0x1800398a0]
mov qword [0x1800398a0], r12
test rbx, rbx
je 0x18000acaa
mov rcx, rbx
call fcn.18000a798
mov r8, rbx
xor edx, edx
mov rcx, qword [0x180039be8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x90]
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x18000acb5
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.18000b458
test edi, edi
setne byte [0x1800360b8]
cmp qword [0x1800360e0], r12
je 0x18000b152
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova rcx, qword [0x1800360d0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000b152
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x6c0]
call sub.ucrtbase.dll_memset
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x4b0]
call sub.ucrtbase.dll_memset
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x2a0]
call sub.ucrtbase.dll_memset
mov ecx, dword [0x180039578]
mov rax, qword gs:[0x58]
mov r13d, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + r13]
cmp dword [0x180039c38], eax
jle 0x18000ada1
lea rcx, [0x180039c38]
call fcn.1800237c4
cmp dword [0x180039c38], r14d
jne 0x18000ada1
lea rcx, [0x18002aaa8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180039c40], rax
lea rcx, [0x180039c38]
call fcn.180023758
mov rax, qword [0x180039c40]
test rax, rax
je 0x18000adf8
cmp byte [0x1800360b8], r12b
je 0x18000adf8
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova rcx, qword [0x1800360d0]
mov edx, 0x104
mov dword [rsp + 0x20], edx
lea r9, [rsp + 0x2a0]
mov r8d, edx
lea rdx, [rsp + 0x4b0]
call rax
mov rcx, qword [rsp + 0x8f8]
test eax, eax
js 0x18000b184
jmp 0x18000ae37
mov edx, 0x104
mov dword [rsp + 0x28], edx
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
mov r9d, edx
lea r8, [rsp + 0x4b0]
lea rcx, [rsp + 0x6c0]
call qword [sym.imp.UxTheme.dll_GetCurrentThemeName]
mov rcx, qword [rsp + 0x8f8]
test eax, eax
js 0x18000b18b
mov ecx, 0x38
call fcn.1800118ec
test rax, rax
je 0x18000ae71
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], 0x646e65
movabs rcx, 0x656c69666d6874
mov qword [rax], rcx
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
jmp 0x18000ae74
mov rax, r12
mov rbx, qword [0x1800398a0]
mov qword [0x1800398a0], rax
test rbx, rbx
je 0x18000aea1
mov rcx, rbx
call fcn.18000a798
mov r8, rbx
xor edx, edx
mov rcx, qword [0x180039be8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rdi + r13]
cmp dword [0x180039c48], eax
jle 0x18000aef0
lea rcx, [0x180039c48]
call fcn.1800237c4
cmp dword [0x180039c48], r14d
jne 0x18000aef0
lea rcx, [0x18002aaa8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x5c
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180039c50], rax
lea rcx, [0x180039c48]
call fcn.180023758
mov rdi, qword [0x180039c50]
test rdi, rdi
je 0x18000b152
mov r14, qword [0x1800398a0]
add r14, 0x20
mov r15, qword [r14]
lea rax, [r15 - 1]
cmp dword [0x180039bf0], 0x55f0
jae 0x18000afe2
cmp rax, 0xfffffffffffffffd
ja 0x18000af41
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 [r14], r12
mov r15, qword [0x1800398a0]
add r15, 0x10
mov r13, qword [r15]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000af75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [r15], r12
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rsi, qword [0x1800360d0]
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4b0]
mov r8, rsi
xor edx, edx
xor ecx, ecx
call rdi
jmp 0x18000b098
cmp rax, 0xfffffffffffffffd
ja 0x18000b001
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 [r14], r12
mov r15, qword [0x1800398a0]
add r15, 0x10
mov r13, qword [r15]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000b035
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [r15], r12
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rsi, qword [0x1800360d0]
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4b0]
mov r8, rsi
xor edx, edx
xor ecx, ecx
call rdi
mov rcx, qword [rsp + 0x8f8]
test eax, eax
js 0x18000b192
mov rbx, qword [0x1800398a0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x1800398a0]
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x38], r12
mov edi, 4
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
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 0x18000b0ff
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbx, qword [0x1800398a0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x1800398a0]
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
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 0x18000b152
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.180023360
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.18000a450
mov edx, eax
call fcn.18000a450
mov edx, eax
call fcn.18000a450
int3