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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r12, rdx
mov rdi, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x7f], rax
lea rdx, [rbp + 0x7f]
mov rcx, rdi
call fcn.14022c8c4
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r13d, 0xffffffff
cmp eax, 0xffffffff
je 0x14022ce7d
call fcn.14006e884
mov rdi, qword [rax]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x7f]
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [rdi + 0x50]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14022ce47
and qword [rbp - 0x19], 0
and qword [rbp - 0x11], 0
and qword [rbp - 9], 0
mov rax, qword [rcx]
lea r8, [rbp - 0x19]
xor edx, edx
call qword [rax + 0x48]
xor ebx, ebx
mov rsi, qword [rbp - 0x11]
mov rax, rsi
mov rdi, qword [rbp - 0x19]
sub rax, rdi
sar rax, 3
test rax, rax
je 0x14022ce1f
lea r15, [0x140330de8]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
lea r9, [0x140353a70]
mov r8, qword [rdi + rbx*8]
lea rdx, [rbp - 0x31]
call qword [rax + 0x28]
nop
mov rax, qword [rbp - 0x31]
cmp dword [rax - 0x10], 0
je 0x14022cde1
mov rax, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x29]
mov rdi, qword [rcx]
mov qword [rsp + 0x20], r15
lea r9, [0x140361108]
mov r8, qword [rax + rbx*8]
lea rdx, [rbp + 0x77]
call qword [rdi + 0x28]
nop
mov rax, qword [rbp - 0x19]
mov rcx, qword [rbp - 0x29]
mov rdi, qword [rcx]
mov qword [rsp + 0x20], r15
lea r9, str.IsRelative
mov r8, qword [rax + rbx*8]
lea rdx, [rbp + 0x17]
call qword [rdi + 0x28]
xor edx, edx
lea rdi, [0x14034e614]
mov rsi, qword [rax]
lea ecx, [rdx + 2]
repe cmpsw word [rsi], word [rdi]
je 0x14022ccb3
sbb edx, edx
sbb edx, r13d
test edx, edx
sete dil
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022ccd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14022cd30
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x39]
call fcn.14000cb18
nop
lea rcx, [rbp - 0x39]
call fcn.140050bb8
mov rdx, qword [rbp + 0x77]
lea rcx, [rbp - 0x39]
call fcn.14000f884
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x77]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022cd30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140352420]
lea rdx, [0x14035e304]
lea rcx, [rbp + 0x77]
call fcn.14000b658
lea rdx, [rbp + 0x77]
lea rcx, [rbp + 7]
call fcn.14000c4d8
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0xf]
call fcn.14000c4d8
nop
lea rdx, [rbp + 7]
mov rcx, r12
call fcn.140066be0
mov r8, rax
lea rdx, [rbp + 0x27]
mov rcx, r12
call fcn.140063948
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022cd9f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022cdc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022cde1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022ce01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc rbx
mov rsi, qword [rbp - 0x11]
mov rax, rsi
mov rdi, qword [rbp - 0x19]
sub rax, rdi
sar rax, 3
cmp rbx, rax
jb 0x14022cc28
test rdi, rdi
je 0x14022ce47
cmp rdi, rsi
je 0x14022ce3e
mov rcx, rdi
call fcn.140082b80
add rdi, 8
cmp rdi, rsi
jne 0x14022ce29
mov rdi, qword [rbp - 0x19]
mov rcx, rdi
call fcn.1400be0f4
nop
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x14022ce7d
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x14022ce7d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
lock xadd dword [rdi + 0xc], eax
add eax, r13d
jne 0x14022ce7d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14022ce9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret