Function at 0x18000d024
Capabilities:
Check if file exists

Disassembly:
test cl, 4
je 0x18000d6ff
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 [0x180048040]
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 [0x18004dd10]
call fcn.180008c54
mov ebx, 0x80070002
cmp eax, ebx
jne 0x18000d0da
lea r9, [rsp + 0x90]
lea r8, str.CustomThemeMsstyle
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000002
call fcn.180008c54
mov rcx, qword [rsp + 0x8f8]
mov r9d, ebx
lea r8d, [r12 + 1]
mov edx, eax
call fcn.18000a324
jmp 0x18000d0ed
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18000d0ed
mov edx, eax
call fcn.18000ace0
mov dword [rsp + 0x80], 1
lea r9, [rsp + 0x80]
lea r8, str.CustomThemeMsstyleUseDefaults
xor edx, edx
mov rcx, qword [0x18004dd10]
call fcn.18000878c
cmp eax, ebx
jne 0x18000d155
lea r9, [rsp + 0x80]
lea r8, str.CustomThemeMsstyleUseDefaults
lea rdx, str.SoftwareMicrosoftWindowsDWM
mov rcx, 0xffffffff80000002
call fcn.18000878c
mov rcx, qword [rsp + 0x8f8]
mov r9d, ebx
mov r8d, 1
mov edx, eax
call fcn.18000a324
jmp 0x18000d168
mov rcx, qword [rsp + 0x8f8]
test eax, eax
jns 0x18000d168
mov edx, eax
call fcn.18000ace0
lea rcx, [rsp + 0x90]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rcx + rax*2], r12w
jne 0x18000d177
lea rsi, [0x1800480f8]
mov r8, rsi
mov r15d, 7
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova r8, qword [0x1800480f8]
mov rcx, qword [0x180048108]
cmp rcx, rax
jne 0x18000d1f2
lea rdx, [rsp + 0x90]
test rcx, rcx
je 0x18000d1d8
lea rax, [rsp + 0x90]
sub r8, rax
movzx eax, word [rdx + r8]
cmp ax, word [rdx]
jne 0x18000d1f2
add rdx, 2
sub rcx, 1
jne 0x18000d1c4
mov edi, dword [rsp + 0x80]
test edi, edi
setne al
cmp byte [0x1800480cc], al
je 0x18000d6ce
jmp 0x18000d1f9
mov edi, dword [rsp + 0x80]
mov rbx, qword [0x18004dda0]
mov qword [0x18004dda0], r12
test rbx, rbx
je 0x18000d226
mov rcx, rbx
call fcn.18000cd14
mov r8, rbx
xor edx, edx
mov rcx, qword [0x18004e268]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x90]
mov r8, r14
inc r8
cmp word [rax + r8*2], r12w
jne 0x18000d231
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.180009c50
test edi, edi
setne byte [0x1800480cc]
cmp qword [0x180048108], r12
je 0x18000d6ce
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova rcx, qword [0x1800480f8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000d6ce
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 [0x18004daf8]
mov rax, qword gs:[0x58]
mov r13d, 4
mov rdi, qword [rax + rcx*8]
mov eax, dword [rdi + r13]
cmp dword [0x18004e2b8], eax
jle 0x18000d31d
lea rcx, [0x18004e2b8]
call fcn.18002e0f4
cmp dword [0x18004e2b8], r14d
jne 0x18000d31d
lea rcx, [0x1800375a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18004e2c0], rax
lea rcx, [0x18004e2b8]
call fcn.18002e088
mov rax, qword [0x18004e2c0]
test rax, rax
je 0x18000d374
cmp byte [0x1800480cc], r12b
je 0x18000d374
mov rcx, rsi
cmp qword [reloc.OLEAUT32.dll_VariantInit], r15
cmova rcx, qword [0x1800480f8]
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 0x18000d700
jmp 0x18000d3b3
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 0x18000d707
mov ecx, 0x38
call fcn.18001bb70
test rax, rax
je 0x18000d3ed
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 0x18000d3f0
mov rax, r12
mov rbx, qword [0x18004dda0]
mov qword [0x18004dda0], rax
test rbx, rbx
je 0x18000d41d
mov rcx, rbx
call fcn.18000cd14
mov r8, rbx
xor edx, edx
mov rcx, qword [0x18004e268]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rdi + r13]
cmp dword [0x18004e2c8], eax
jle 0x18000d46c
lea rcx, [0x18004e2c8]
call fcn.18002e0f4
cmp dword [0x18004e2c8], r14d
jne 0x18000d46c
lea rcx, [0x1800375a8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x5c
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18004e2d0], rax
lea rcx, [0x18004e2c8]
call fcn.18002e088
mov rdi, qword [0x18004e2d0]
test rdi, rdi
je 0x18000d6ce
mov r14, qword [0x18004dda0]
add r14, 0x20
mov r15, qword [r14]
lea rax, [r15 - 1]
cmp dword [0x18004e270], 0x55f0
jae 0x18000d55e
cmp rax, 0xfffffffffffffffd
ja 0x18000d4bd
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 [0x18004dda0]
add r15, 0x10
mov r13, qword [r15]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000d4f1
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 [0x1800480f8]
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 0x18000d614
cmp rax, 0xfffffffffffffffd
ja 0x18000d57d
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 [0x18004dda0]
add r15, 0x10
mov r13, qword [r15]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000d5b1
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 [0x1800480f8]
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 0x18000d70e
mov rbx, qword [0x18004dda0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x18004dda0]
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 0x18000d67b
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rbx, qword [0x18004dda0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x18004dda0]
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 0x18000d6ce
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.18002dc90
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.18000acc8
mov edx, eax
call fcn.18000acc8
mov edx, eax
call fcn.18000acc8
int3