Function at 0x180013164
Capabilities:
Check if file exists

Disassembly:
test cl, 4
je 0x18001383f
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 [0x18004d040]
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 [0x1800531f0]
call fcn.180008b3c
mov ebx, 0x80070002
cmp eax, ebx
jne 0x18001321a
lea r9, [rsp + 0x90]
lea r8, str.CustomThemeMsstyle
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000002
call fcn.180008b3c
mov rcx, qword [rsp + 0x8f8]
mov r9d, ebx
lea r8d, [r12 + 1]
mov edx, eax
call fcn.18000a210
jmp 0x18001322d
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18001322d
mov edx, eax
call fcn.18000abcc
mov dword [rsp + 0x80], 1
lea r9, [rsp + 0x80]
lea r8, str.CustomThemeMsstyleUseDefaults
xor edx, edx
mov rcx, qword [0x1800531f0]
call fcn.180008654
cmp eax, ebx
jne 0x180013295
lea r9, [rsp + 0x80]
lea r8, str.CustomThemeMsstyleUseDefaults
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000002
call fcn.180008654
mov rcx, qword [rsp + 0x8f8]
mov r9d, ebx
mov r8d, 1
mov edx, eax
call fcn.18000a210
jmp 0x1800132a8
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x1800132a8
mov edx, eax
call fcn.18000abcc
lea rcx, [rsp + 0x90]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1800132b7
lea rsi, [0x18004d108]
mov r8, rsi
mov r15d, 7
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova r8, qword [0x18004d108]
mov rcx, qword [0x18004d118]
cmp rcx, rax
jne 0x180013332
lea rdx, [rsp + 0x90]
test rcx, rcx
je 0x180013318
lea rax, [rsp + 0x90]
sub r8, rax
movzx eax, word [rdx + r8]
cmp ax, word [rdx]
jne 0x180013332
add rdx, 2
sub rcx, 1
jne 0x180013304
mov edi, dword [rsp + 0x80]
test edi, edi
setne al
cmp byte [0x18004d0dc], al
je 0x18001380e
jmp 0x180013339
mov edi, dword [rsp + 0x80]
mov rbx, qword [0x1800532c0]
mov qword [0x1800532c0], r12
test rbx, rbx
je 0x180013366
mov rcx, rbx
call fcn.180012e68
mov r8, rbx
xor edx, edx
mov rcx, qword [0x1800537a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x90]
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x180013371
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.180009b34
test edi, edi
setne byte [0x18004d0dc]
cmp qword [0x18004d118], r12
je 0x18001380e
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova rcx, qword [0x18004d108]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18001380e
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 [0x180052fcc]
mov rax, qword gs:[0x58]
mov r13d, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + r13]
cmp dword [0x180053810], eax
jle 0x18001345d
lea rcx, [0x180053810]
call fcn.180031ad4
cmp dword [0x180053810], r14d
jne 0x18001345d
lea rcx, [0x18003bcb0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180053818], rax
lea rcx, [0x180053810]
call fcn.180031a68
mov rax, qword [0x180053818]
test rax, rax
je 0x1800134b4
cmp byte [0x18004d0dc], r12b
je 0x1800134b4
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova rcx, qword [0x18004d108]
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 0x180013840
jmp 0x1800134f3
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 0x180013847
mov ecx, 0x38
call fcn.18001f5cc
test rax, rax
je 0x18001352d
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 0x180013530
mov rax, r12
mov rbx, qword [0x1800532c0]
mov qword [0x1800532c0], rax
test rbx, rbx
je 0x18001355d
mov rcx, rbx
call fcn.180012e68
mov r8, rbx
xor edx, edx
mov rcx, qword [0x1800537a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rdi + r13]
cmp dword [0x180053820], eax
jle 0x1800135ac
lea rcx, [0x180053820]
call fcn.180031ad4
cmp dword [0x180053820], r14d
jne 0x1800135ac
lea rcx, [0x18003bcb0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x5c
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180053828], rax
lea rcx, [0x180053820]
call fcn.180031a68
mov rdi, qword [0x180053828]
test rdi, rdi
je 0x18001380e
mov r14, qword [0x1800532c0]
add r14, 0x20
mov r15, qword [r14]
lea rax, [r15 - 1]
cmp dword [0x1800537b0], 0x55f0
jae 0x18001369e
cmp rax, 0xfffffffffffffffd
ja 0x1800135fd
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 [0x1800532c0]
add r15, 0x10
mov r13, qword [r15]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180013631
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 [0x18004d108]
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 0x180013754
cmp rax, 0xfffffffffffffffd
ja 0x1800136bd
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 [0x1800532c0]
add r15, 0x10
mov r13, qword [r15]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800136f1
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 [0x18004d108]
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 0x18001384e
mov rbx, qword [0x1800532c0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x1800532c0]
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 0x1800137bb
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbx, qword [0x1800532c0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x1800532c0]
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 0x18001380e
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.180031670
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.18000abb4
mov edx, eax
call fcn.18000abb4
mov edx, eax
call fcn.18000abb4
int3