Function at 0x140076c10
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0xc0], r12d
lea r14, [rcx + 0x48]
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140076d5a
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xc8], rax
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.14000ae30
add rax, 0x18
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
call fcn.1400b9e40
nop
lea rcx, [rax + 0x118]
lea rdx, [rsp + 0xd0]
call fcn.1400153c0
nop
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffe8
mov esi, 0xffffffff
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140076cc5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [r14]
cmp dword [rsi - 8], 1
jle 0x140076cdc
mov edx, dword [rsi - 0x10]
mov rcx, r14
call fcn.14000afc0
mov rsi, qword [r14]
call fcn.1400b9bf0
mov rcx, qword [rax]
mov rdi, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140076d1a
cmp dword [rax + 0x20], 0x3e8
jge 0x140076d00
mov rax, qword [rax + 0x10]
jmp 0x140076d06
mov rdi, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140076cf1
cmp rdi, rcx
je 0x140076d1a
cmp dword [rdi + 0x20], 0x3e8
jle 0x140076d1d
mov rdi, rcx
cmp rdi, rcx
je 0x140076f14
mov rax, qword [rdi + 0x28]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140076f14
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140076d4c
mov rax, qword [rcx]
mov r8, rsi
mov edx, 0x3f0
call qword [rax]
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x28]
jne 0x140076d36
jmp 0x140076f14
mov rax, qword [rdi + 0x18]
mov esi, 0xffffffff
cmp dword [rax - 0x10], r12d
jne 0x140076dfe
call fcn.1400b9e40
mov rbp, rax
lea rbx, [rax + 0x50]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call fcn.1400ded14
test eax, eax
je 0x140076d92
mov ecx, eax
call fcn.1400df200
nop
mov rcx, qword [rbp + 0x110]
sub rcx, 0x18
call fcn.14000ae30
lea rbp, [rax + 0x18]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0xc0], 1
mov rcx, rbx
call fcn.1400ded38
test eax, eax
je 0x140076dca
mov ecx, eax
call fcn.1400df200
nop
mov rdx, rbp
lea rcx, [rdi + 0x18]
call fcn.140071a50
nop
lea rdx, [rbp - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140076df0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi + 0x18]
cmp dword [rax - 0x10], 0
je 0x140076f14
mov rax, qword [rdi + 0x58]
test rax, rax
jne 0x140076e1b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x58], rax
cmp dword [rdi + 0x68], 0
je 0x140076e92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rdi + 0x68]
test eax, eax
jne 0x140076e48
lea ecx, [rax + 1]
call fcn.1400df23c
mov eax, dword [rdi + 0x68]
test eax, eax
jne 0x140076e48
lea ecx, [rax + 1]
call fcn.1400df23c
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rsp + 0xc8], eax
cmp dword [rdi + 0x68], eax
jne 0x140076e63
mov ecx, 5
call fcn.1400df23c
movups xmm0, xmmword [rdi + 0x60]
movaps xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400de76c
test eax, eax
je 0x140076e86
mov ecx, 2
call fcn.1400df23c
mov qword [rdi + 0x60], r12
mov dword [rdi + 0x68], r12d
mov rax, qword [rdi + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov qword [rsp + 0xd8], rdi
lea rax, [0x1400734c0]
mov qword [rsp + 0x30], rax
mov rdx, qword [rdi + 0x18]
lea rcx, [rsp + 0x38]
call fcn.14000a5c0
nop
mov qword [rsp + 0x20], r14
mov r9, rax
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140070bd0
cmp dword [rdi + 0x68], 0
jne 0x140076f2c
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x60], xmm0
mov qword [rax], r12
mov dword [rax + 8], r12d
cmp dword [rsp + 0x78], 0
jne 0x140076f26
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140076f14
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14028ff34
nop
call fcn.14028ff34
int3