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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
movaps xmmword [rsp + 0x240], xmm6
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rbp + 0x138], rax
mov rbx, rdx
mov qword [rbp + 0x10], rdx
mov qword [rsp + 0x60], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r15, [rcx + 8]
mov qword [rsp + 0x58], r15
mov rax, qword [r15]
cmp byte [rax], r14b
je 0x180017758
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x180017758
mov rcx, r15
call fcn.180160880
mov qword [rsp + 0x70], rax
mov edx, 0x2e
mov rcx, r15
call fcn.18017c8f0
mov ebx, eax
mov edx, 0x5c
mov rcx, r15
call fcn.18017c8f0
lea r13, [0x180660020]
lea rdi, [0x180660030]
cmp ebx, eax
jle 0x180016f06
mov rdx, qword [r15]
test ebx, ebx
jg 0x180016eae
mov qword [rsp + 0x28], rdx
add rdx, 0xfffffffffffffff0
cmp rdx, r13
je 0x180016eed
lock inc dword [rdx]
mov dword [rsp + 0x20], 0x60
jmp 0x180016f13
lea r8d, [rbx - 1]
test r8d, r8d
js 0x180016ee3
movzx ecx, byte [rdx]
test cl, cl
je 0x180016ef7
inc rdx
test cl, cl
jns 0x180016edd
mov al, 0x40
test al, cl
je 0x180016edd
nop dword [rax + rax]
cmp al, 8
jbe 0x180016edd
inc rdx
shr al, 1
test cl, al
jne 0x180016ed0
sub r8d, 1
jns 0x180016eb7
lea rcx, [rsp + 0x28]
call fcn.18001d410
mov dword [rsp + 0x20], 0x60
jmp 0x180016f13
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x60
jmp 0x180016f13
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x20
lea r8, str..__
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.180179ec0
nop
lea rdx, [rbp - 0x68]
mov rcx, rax
call fcn.18017b170
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov r12d, 0xffffffff
cmp rcx, r13
je 0x180016f5f
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, r12d
jne 0x180016f5f
call fcn.18011d9c0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180016f81
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180016f81
call fcn.18011d9c0
nop
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x180016fc3
cmp eax, 0xffffffff
je 0x180016fc3
lea rdx, str.vnd.android.document_directory
lea rcx, [rsp + 0x28]
call fcn.18001d070
lea rax, [rsp + 0x28]
or dword [rsp + 0x20], 2
mov rsi, qword [rsp + 0x28]
jmp 0x18001701d
call fcn.18015ca50
lea r8, [rbp - 0x68]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18015c8a0
or dword [rsp + 0x20], 0x200
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180193250
mov rsi, qword [rax]
lea rax, [rsi - 0x10]
cmp rax, r13
je 0x180016ffc
lock inc dword [rax]
lea rcx, [rsp + 0x40]
call fcn.180009780
mov rcx, qword [rsp + 0x40]
call fcn.180124068
lea rax, [rsp + 0x38]
or dword [rsp + 0x20], 0x104
mov qword [rbp + 0x50], rsi
mov qword [rax], rdi
mov eax, dword [rsp + 0x20]
test al, 4
je 0x180017053
and dword [rsp + 0x20], 0xfffffffb
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180017053
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017053
call fcn.18011d9c0
nop
mov eax, dword [rsp + 0x20]
test al, 2
je 0x180017081
and dword [rsp + 0x20], 0xfffffffd
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x180017081
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017081
call fcn.18011d9c0
lea rbx, [r13 + 0x10]
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x50], r14
mov byte [rbp - 0x48], 0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x38], 0
mov dword [rbp - 0x30], r14d
mov word [rbp - 0x2c], 0
mov edx, 0x5c
mov rcx, r15
call fcn.18017c8f0
lea r8d, [rax + 1]
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.18017af70
or dword [rsp + 0x20], 0x80
mov rax, qword [rsp + 0x28]
lea rcx, [rbx - 0x10]
mov qword [rsp + 0x60], rcx
cmp rcx, r13
je 0x1800170f2
lock inc dword [rcx]
mov rdi, qword [rbp - 0x58]
mov qword [rbp + 0x20], rdi
lea r13, [rdi - 0x10]
lea rdi, [0x180660020]
cmp r13, rdi
je 0x18001710b
lock inc dword [r13]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp + 0x38], xmm1
mov dword [rbp + 0x48], r14d
mov word [rbp + 0x4c], 0
mov qword [rbp + 0x18], rax
cmp rcx, rdi
je 0x180017142
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017142
call fcn.18011d9c0
nop
cmp byte [rsi], 0
je 0x180017161
mov qword [rbp - 0x80], rsi
lea rax, [rsi - 0x10]
cmp rax, rdi
je 0x180017157
lock inc dword [rax]
or dword [rsp + 0x20], 8
mov rbx, rsi
jmp 0x18001717d
lea rdx, str.application_octet_stream
lea rcx, [rsp + 0x38]
call fcn.18001d070
nop
or dword [rsp + 0x20], 0x10
mov rbx, qword [rsp + 0x38]
lea r15, [rbx - 0x10]
cmp r15, rdi
je 0x18001718a
lock inc dword [r15]
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x28], rax
lea r14, [rax - 0x10]
cmp r14, rdi
je 0x18001719f
lock inc dword [r14]
cmp r13, rdi
je 0x1800171e4
lock inc dword [r13]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp - 8], xmm1
mov dword [rbp + 8], 0
mov word [rbp + 0xc], 0
mov qword [rbp - 0x20], rbx
mov eax, r12d
lock xadd dword [r13], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017205
mov rcx, r13
call fcn.18011d9c0
jmp 0x180017205
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp - 8], xmm1
mov dword [rbp + 8], 0
mov word [rbp + 0xc], 0
mov qword [rbp - 0x20], rbx
mov edx, 0x80000000
mov rcx, qword [rsp + 0x58]
call fcn.180161410
movzx edi, al
shl edi, 7
mov rcx, qword [rsp + 0x58]
call fcn.180161220
mov ecx, edi
or ecx, 0x14e
test al, al
cmove ecx, edi
mov dword [rsp + 0x50], ecx
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x58], rax
lea rdx, [0x180660020]
cmp r14, rdx
je 0x18001724d
lock inc dword [r14]
mov qword [rbp + 0x60], rbx
cmp r15, rdx
je 0x18001725a
lock inc dword [r15]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x68], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp + 0x78], xmm1
mov word [rbp + 0x8c], 0
mov dword [rbp + 0x88], ecx
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.180017f90
lea r8, [rbp + 0x100]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1800172c5
movabs rcx, 0xfe624e212ac18000
add rcx, qword [rbp + 0x114]
movabs rax, 0x346dc5d63886594b
mul rcx
mov rax, rdx
shr rax, 0xb
jmp 0x1800172c7
xor eax, eax
mov qword [rbp - 0x78], rax
mov byte [rbp - 0x70], 1
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x100], rax
lea r8, [0x180660020]
cmp r14, r8
je 0x1800172ea
lock inc dword [r14]
mov qword [rbp + 0x108], rbx
cmp r15, r8
je 0x1800172fa
lock inc dword [r15]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x110], xmm0
mov edi, dword [rsp + 0x50]
mov dword [rbp + 0x130], edi
mov word [rbp + 0x134], 0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp + 0x120], xmm0
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x18001735e
mov qword [rsp + 0x40], rdx
mov cl, 1
mov dword [rsp + 0x28], ecx
mov byte [rsp + 0x48], cl
mov eax, dword [rsp + 0x49]
mov dword [rsp + 0x49], eax
movzx eax, word [rsp + 0x4d]
mov word [rsp + 0x4d], ax
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0x4f], al
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x18001737a
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
xorps xmm0, xmm0
psrldq xmm0, 8
movd dword [rsp + 0x28], xmm0
movq qword [rsp + 0x70], xmm6
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x90], rax
cmp r14, r8
je 0x18001738e
lock inc dword [r14]
mov qword [rbp + 0x98], rbx
cmp r15, r8
je 0x18001739e
lock inc dword [r15]
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp + 0xb0], xmm0
mov dword [rbp + 0xc0], edi
mov word [rbp + 0xc4], 0
movups xmmword [rbp + 0xa0], xmm6
mov edx, 0x80000000
mov rcx, qword [rsp + 0x58]
call fcn.180161410
mov byte [rsp + 0x30], al
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 0xc8], rcx
lea rdx, [0x180660020]
cmp r14, rdx
je 0x1800173ed
lock inc dword [r14]
mov qword [rbp + 0xd0], rbx
cmp r15, rdx
je 0x1800173fd
lock inc dword [r15]
movups xmmword [rbp + 0xd8], xmm6
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp + 0xe8], xmm0
mov dword [rbp + 0xf8], edi
mov byte [rbp + 0xfd], 0
mov byte [rbp + 0xfc], al
mov rcx, qword [rsp + 0x58]
call fcn.180161220
movzx r8d, al
lea rcx, [0x180660020]
cmp r14, rcx
je 0x180017440
lock inc dword [r14]
cmp r15, rcx
je 0x180017449
lock inc dword [r15]
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x28], rax
cmp r14, rcx
je 0x18001745a
lock inc dword [r14]
mov qword [rbp - 0x20], rbx
cmp r15, rcx
je 0x180017467
lock inc dword [r15]
movups xmmword [rbp - 0x18], xmm6
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp - 8], xmm0
mov dword [rbp + 8], edi
movzx edx, byte [rsp + 0x30]
mov byte [rbp + 0xc], dl
mov byte [rbp + 0xd], r8b
mov rax, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x10]
mov qword [rdi], rax
cmp r14, rcx
je 0x180017496
lock inc dword [r14]
mov qword [rdi + 8], rbx
lea rbx, [0x180660020]
cmp r15, rbx
je 0x1800174aa
lock inc dword [r15]
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x18], rax
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x20], eax
mov ecx, 3
mov eax, 7
cmp byte [rsp + 0x28], 0
cmovne ecx, eax
mov eax, r8d
shl eax, 4
or ecx, eax
mov eax, edx
shl eax, 3
or ecx, eax
mov dword [rdi + 0x24], ecx
lea rcx, [rbp - 0x28]
call fcn.180016080
or dword [rsp + 0x20], 1
cmp r15, rbx
je 0x180017510
mov eax, r12d
lock xadd dword [r15], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017510
mov rcx, r15
call fcn.18011d9c0
cmp r14, rbx
je 0x18001752d
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x18001752d
mov rcx, r14
call fcn.18011d9c0
nop
cmp r15, rbx
je 0x180017549
mov eax, r12d
lock xadd dword [r15], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017549
mov rcx, r15
call fcn.18011d9c0
cmp r14, rbx
je 0x180017566
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017566
mov rcx, r14
call fcn.18011d9c0
nop
cmp r15, rbx
je 0x180017582
mov eax, r12d
lock xadd dword [r15], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017582
mov rcx, r15
call fcn.18011d9c0
cmp r14, rbx
je 0x18001759f
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x18001759f
mov rcx, r14
call fcn.18011d9c0
nop
cmp r15, rbx
je 0x1800175bb
mov eax, r12d
lock xadd dword [r15], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800175bb
mov rcx, r15
call fcn.18011d9c0
cmp r14, rbx
je 0x1800175d8
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800175d8
mov rcx, r14
call fcn.18011d9c0
nop
cmp r15, rbx
je 0x1800175f4
mov eax, r12d
lock xadd dword [r15], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800175f4
mov rcx, r15
call fcn.18011d9c0
cmp r14, rbx
je 0x180017611
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017611
mov rcx, r14
call fcn.18011d9c0
nop
cmp r15, rbx
je 0x18001762d
mov eax, r12d
lock xadd dword [r15], eax
dec eax
cmp eax, 0xffffffff
jne 0x18001762d
mov rcx, r15
call fcn.18011d9c0
cmp r14, rbx
je 0x18001764a
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x18001764a
mov rcx, r14
call fcn.18011d9c0
nop
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x180017679
and dword [rsp + 0x20], 0xffffffef
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x180017679
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017679
call fcn.18011d9c0
nop
test byte [rsp + 0x20], 8
je 0x1800176a1
mov rcx, qword [rbp - 0x80]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x1800176a1
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800176a1
call fcn.18011d9c0
nop
cmp r13, rbx
je 0x1800176be
mov eax, r12d
lock xadd dword [r13], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800176be
mov rcx, r13
call fcn.18011d9c0
cmp r14, rbx
je 0x1800176db
mov eax, r12d
lock xadd dword [r14], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800176db
mov rcx, r14
call fcn.18011d9c0
nop
cmp r13, rbx
je 0x1800176f8
mov eax, r12d
lock xadd dword [r13], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800176f8
mov rcx, r13
call fcn.18011d9c0
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
je 0x180017716
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017716
call fcn.18011d9c0
nop
lea rcx, [rsi - 0x10]
cmp rcx, rbx
je 0x180017733
mov eax, r12d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180017733
call fcn.18011d9c0
nop
mov rcx, qword [rbp - 0x68]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x180017753
lock xadd dword [rcx], r12d
dec r12d
cmp r12d, 0xffffffff
jne 0x180017753
call fcn.18011d9c0
mov rax, rdi
jmp 0x18001777f
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
lea rdi, [0x180660030]
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x20], r14
mov rax, rbx
mov rcx, qword [rbp + 0x138]
xor rcx, rsp
call fcn.18011d9a0
mov rbx, qword [rsp + 0x2a0]
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret