Function at 0x1400d3d70
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rsi, rcx
lea rax, vtable._BaseModule::CAutoLocker.0
mov qword [rsp + 0x28], rax
add rcx, 0x40
mov qword [rsp + 0x30], rcx
je 0x1400d3dac
mov rax, qword [rcx]
call qword [rax]
nop
xor edi, edi
lea rcx, [rsp + 0x60]
call fcn.1400d0620
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400d3dd0
lea ebx, [rdi - 1]
jmp 0x1400d3f2f
mov ecx, dword [0x1403da410]
mov rax, qword gs:[0x58]
mov edx, 4
mov rbx, qword [rax + rcx*8]
add rbx, rdx
mov eax, dword [rbx]
cmp dword [0x1403d4b58], eax
jg 0x1400d3f88
lea rbp, [0x1403d4b60]
mov eax, dword [rbx]
cmp dword [0x1403d4b90], eax
jg 0x1400d3fe0
mov rcx, rbp
mov rax, qword [0x1403d4b60]
call qword [rax + SafeArrayCopy]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400d3e4c
mov edx, 0x104
lea rcx, [rsp + 0x68]
call fcn.1400107b0
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 0xc], 0x104
jl 0x1400d4050
mov dword [rbx - 0x10], 0x104
mov byte [rbx + 0x104], 0
mov r8d, 0x104
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call fcn.1400e41a0
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14028c7bc
test eax, eax
js 0x1400d3f7d
cmp eax, dword [rbx - 0xc]
jg 0x1400d3f7d
mov dword [rbx - 0x10], eax
cdqe
mov byte [rax + rbx], 0
mov rdx, qword [rsi + 0x38]
test rdx, rdx
je 0x1400d3f72
mov rcx, rbx
call fcn.1402a13b4
test eax, eax
je 0x1400d3f10
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.USER32.dll_PostMessageW]
xor edx, edx
lea rcx, str.Halo_Theme_Wnd_class
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d3efd
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsi + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_PostMessageW]
lea rdx, [rsp + 0x68]
lea rcx, [rsi + 0x38]
call fcn.1400d3b10
mov edi, 1
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400d3f2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400d3f4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400d3f5d
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.14000adf0
int3
mov ecx, 0x80070057
call fcn.14000adf0
nop
lea rcx, [0x1403d4b58]
call fcn.140171fc4
cmp dword [0x1403d4b58], 0xffffffff
jne 0x1400d3df9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rdx, vtable.ATL::CWin32Heap.0
mov qword [0x1403d4b40], rdx
mov qword [0x1403d4b48], rax
mov byte [0x1403d4b50], 0
lea rcx, [0x1402e8950]
call fcn.140171d94
lea rcx, [0x1403d4b58]
call fcn.140171f64
jmp 0x1400d3df9
lea rcx, [0x1403d4b90]
call fcn.140171fc4
cmp dword [0x1403d4b90], 0xffffffff
jne 0x1400d3e0e
lea rax, vtable.ATL::CAtlStringMgr.0
mov qword [0x1403d4b60], rax
lea rax, [0x1403d4b40]
mov qword [0x1403d4b68], rax
mov dword [0x1403d4b80], 2
mov qword [0x1403d4b78], rdi
mov dword [0x1403d4b88], edi
mov qword [0x1403d4b70], rbp
lea rcx, [0x1402e8980]
call fcn.140171d94
lea rcx, [0x1403d4b90]
call fcn.140171f64
jmp 0x1400d3e0e
mov ecx, 0x80070057
call fcn.14000adf0
int3