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

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov r12d, r9d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x48], r9d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140052d86
mov r14b, byte [rbp + 0x38]
test r14b, r14b
je 0x140052b1f
test rdx, rdx
jne 0x140052d86
mov eax, r9d
shr eax, 9
and al, 1
jne 0x140052cfe
test r8b, r8b
je 0x140052b47
test rdx, rdx
je 0x140052b47
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0xc0]
test al, al
jne 0x140052b50
test r14b, r14b
je 0x140052cfe
mov rcx, qword [rdi]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x68]
test eax, eax
jne 0x140052ce1
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140048744
nop
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x68], bx
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140052b99
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140001a28
nop
mov dword [rsp + 0x50], 1
xor r9d, r9d
mov r8b, byte [rbp + 0x30]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.1400487f8
test eax, eax
jne 0x140052bfe
lea rcx, [rsp + 0x90]
call fcn.140048f9c
cmp qword [rax + 0x18], 8
jb 0x140052bed
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov r15b, 1
jne 0x140052c01
mov r15b, bl
cmp qword [rsp + 0x80], 8
jb 0x140052c16
mov rcx, qword [rsp + 0x68]
call fcn.14002d25c
test r15b, r15b
je 0x140052cba
test r14b, r14b
jne 0x140052c94
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, str.ServiceAPI:_Image_retrieved_from_cache_directly_for__s
mov ecx, 3
call fcn.140053268
mov r11, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [r11 + 0x50]
mov rax, qword [rsi]
mov dl, 1
mov rcx, rsi
call qword [rax + 0x58]
lea rcx, [rsp + 0x90]
call fcn.140048f9c
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140052c7c
mov rdx, qword [rax]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x78]
mov rax, qword [rsi]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x90]
call fcn.140037714
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140052cb3
mov qword [rdi], rbx
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x140052d99
lea rcx, [rsp + 0x90]
call fcn.140037714
nop
jmp 0x140052ce1
test r14b, r14b
je 0x140052cfe
mov rcx, qword [rdi]
test rcx, rcx
je 0x140052cf7
mov qword [rdi], rbx
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x140052d99
mov al, byte [rbp + 0x30]
neg al
sbb r8d, r8d
and r8d, 4
mov edx, 0x5a0
lea rcx, [rsp + 0x40]
call sym.OLicenseHeartbeat.exe_class_Mso::TCntPtr_struct_Mso::OfficeWebServiceApi::ICacheInfo____cdecl_Mso::OfficeWebServiceApi::CreateCacheInfo_unsigned_int__unsigned_int_
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rcx
test rcx, rcx
je 0x140052d2d
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x140052d3f
mov rax, qword [rcx]
call qword [rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x38]
mov r8d, r12d
mov rdx, rsi
lea rcx, [rsp + 0x48]
call sym.OLicenseHeartbeat.exe_enum_Mso::OfficeWebServiceApi::Status::Flags___cdecl_Mso::OfficeWebServiceApi::ServiceRequest_class_Mso::TCntPtr_struct_Mso::OfficeWebServiceApi::IUrlBuilder___class_Mso::OfficeWebServiceApi::AServiceRequestCallback____ptr64__unsigned_int__class_Mso::TCntPtr_struct_Mso::OfficeWebServiceApi::ICacheInfo___struct_Mso::Authentication::IOfficeIdentity_const____ptr64_
mov esi, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140052d71
mov qword [rsp + 0x40], rbx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140052d82
mov qword [rdi], rbx
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, esi
jmp 0x140052d99
test rcx, rcx
je 0x140052d94
mov qword [rdi], rbx
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 2
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1400056f0
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret