Function at 0x1400d40f0
Capabilities:
Check if file exists
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rcx
mov qword [rcx + 0x28], rdx
mov dword [rcx + 0x30], r8d
lea rcx, [rsp + 0x60]
call fcn.1400d0620
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
je 0x1400d41be
mov rdx, qword [rdi + 0x38]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400d4156
mov edx, 0x104
lea rcx, [rdi + 0x38]
call fcn.1400107b0
mov rdx, qword [rdi + 0x38]
cmp dword [rdx - 0xc], 0x104
jl 0x1400d435f
mov dword [rdx - 0x10], 0x104
mov rax, qword [rdi + 0x38]
mov byte [rax + 0x104], sil
mov r8d, 0x104
mov rcx, qword [rsp + 0x60]
call fcn.1400e41a0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x1400d4192
mov eax, esi
jmp 0x1400d41a3
movsxd rdx, dword [rcx - 0xc]
call fcn.14028c7bc
test eax, eax
js 0x1400d436a
mov rcx, qword [rdi + 0x38]
cmp eax, dword [rcx - 0xc]
jg 0x1400d436a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi + 0x38]
mov byte [rcx + rax], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rax
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400d424e
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, VarUI4FromDisp
xor r8d, r8d
lea rdx, str.Control_PanelColors
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d424e
mov dword [rsp + 0x20], 1
mov r9, rbx
lea edx, [rax + 1]
lea r8d, [rax + 4]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400d42a4
mov qword [rsp + 0x78], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, VarUI4FromDisp
xor r8d, r8d
lea rdx, str.Control_PanelDesktop
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d42a4
mov dword [rsp + 0x20], 1
mov r9, rbx
lea edx, [rax + 1]
lea r8d, [rax + 4]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x1400d42fa
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, VarUI4FromDisp
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInternet_ExplorerDesktopGeneral
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d42fa
mov dword [rsp + 0x20], 1
mov r9, rbx
lea edx, [rax + 1]
lea r8d, [rax + 4]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x20], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x1400d4380]
xor edx, edx
xor ecx, ecx
call fcn.1402967ac
mov qword [rdi + 0x18], rax
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400d4352
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070057
call fcn.14000adf0
int3
mov ecx, 0x80070057
call fcn.14000adf0
int3