Function at 0x18001d78c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rbp - 0x50], r12d
lea rdx, [rcx + 0x18]
mov rcx, rsi
call fcn.1800053f4
mov dword [rbp - 0x50], 1
lea rcx, [rbp - 0x38]
call fcn.18001cdb8
nop
cmp dword [rdi + 0x50], r12d
je 0x18001d8f2
lea rdx, str.::20D04FE0_3AEA_1069_A2D8_08002B30309D
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rdx + rax*2], r12w
jne 0x18001d7ec
mov r8d, eax
mov rcx, rsi
call fcn.180005498
mov dword [rdi + 0x80], 0x40001
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x18001d874
mov r8, qword [rdi + 0x30]
lea rcx, [rbp - 0x38]
call fcn.18001cf2c
test eax, eax
je 0x18001d874
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x50]
call fcn.1800053f4
mov ebx, 3
mov dword [rbp - 0x50], ebx
mov rdx, rax
mov rcx, rsi
call fcn.18000525c
and ebx, 0xfffffffd
mov dword [rbp - 0x50], ebx
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x18001d86b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp - 0x1c]
mov dword [rdi + 0x80], eax
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x18001d89f
lea rdx, [rdi + 0x38]
mov rcx, rsi
call fcn.18000525c
mov rcx, qword [rsi]
call fcn.180002de4
mov dword [rdi + 0x80], eax
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x18001d8c7
lea rdx, [rdi + 0x40]
mov rcx, rsi
call fcn.18000525c
mov rcx, qword [rsi]
call fcn.180002de4
mov dword [rdi + 0x80], eax
cmp dword [rdi + 0x8c], r12d
je 0x18001da51
lea rdx, [rdi + 0x18]
mov rcx, rsi
call fcn.18000525c
mov rcx, qword [rsi]
call fcn.180002de4
or eax, 0x1001
jmp 0x18001da4b
mov dword [rdi + 0x80], 0x40001
mov rcx, qword [rsi]
cmp dword [rcx - 0x10], r12d
je 0x18001d910
call fcn.180002de4
mov dword [rdi + 0x80], eax
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x18001da2e
mov r8, qword [rdi + 0x30]
lea rcx, [rbp - 0x38]
call fcn.18001cf2c
test eax, eax
je 0x18001da2e
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x40]
call fcn.1800053f4
mov dword [rbp - 0x50], 5
mov rcx, qword [rbp + 0x40]
or r14, 0xffffffffffffffff
lea ebx, [r14 + 4]
cmp dword [rcx - 0x10], ebx
jle 0x18001d9ae
cmp dword [rcx - 0x10], 1
jl 0x18001da6c
cmp word [rcx + 2], 0x3a
jne 0x18001d9ae
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x18001d982
mov rax, qword [rsi]
cmp dword [rax - 0x10], r12d
jne 0x18001da0a
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x58]
call fcn.1800053f4
mov ebx, SafeArrayDestroy
mov dword [rbp - 0x50], ebx
mov rdx, rax
mov rcx, rsi
call fcn.18000525c
and ebx, 0xfffffff7
mov dword [rbp - 0x50], ebx
mov rdx, qword [rbp + 0x58]
jmp 0x18001d9e5
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18001da0a
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x48]
call fcn.1800053f4
mov ebx, ILCombine
mov dword [rbp - 0x50], ebx
mov rdx, rax
mov rcx, rsi
call fcn.18000525c
and ebx, 0xffffffef
mov dword [rbp - 0x50], ebx
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x18001da01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp - 0x1c]
mov dword [rdi + 0x80], eax
and dword [rbp - 0x50], 0xfffffffb
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x18001da2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rdi + 0x48]
mov rax, qword [rdx]
cmp dword [rax - 0x10], r12d
je 0x18001da51
mov rcx, rsi
call fcn.18000525c
mov rcx, qword [rsi]
call fcn.180002de4
mov dword [rdi + 0x80], eax
lea rcx, [rbp - 0x38]
call fcn.18001ce7c
mov rax, rsi
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.18000a540
int3