Function at 0x14013b360
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13d, r9d
mov r12, rdx
mov rsi, rcx
mov ebp, dword [rdx + 0x10]
sub ebp, 1
js 0x14013b692
movsxd r15, ebp
shl r15, 3
mov r14d, 0xfffffffc
cmp ebp, dword [r12 + 0x10]
jae 0x14013b3b6
mov rdx, qword [r12]
add rdx, r15
jmp 0x14013b3bd
lea rdx, [0x1404b1f80]
lea rcx, [rsp + 0xa8]
call fcn.1401810f0
nop
mov rbx, qword [rsp + 0xa8]
cmp byte [rbx], 0
jne 0x14013b3e1
lea rdi, [0x14028fdf4]
jmp 0x14013b44a
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
call fcn.140034240
or rcx, 0xffffffffffffffff
lea rcx, [rcx + 1]
cmp byte [rbx + rcx], 0
jne 0x14013b3f4
lea rdi, [rcx + 4]
and rdi, r14
mov qword [rsp + 0x28], rbx
lea r8, [rax + 3]
add r8, rdi
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14003e200
mov rbx, qword [rax]
mov qword [rsp + 0xa8], rbx
movsxd rdi, edi
add rdi, rbx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140048370
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x14013b665
cmp eax, 0xffffffff
je 0x14013b665
cmp dword [rsi + 0x60], 0
jbe 0x14013b490
mov rcx, qword [rsi + 0x118]
mov eax, dword [rcx + 0x1bc]
sub eax, dword [rcx + 0x24]
sub eax, dword [rsi + 0x5c]
add eax, r13d
cdq
idiv dword [rsi + 0x14c]
cmp eax, dword [rsi + 0x148]
jb 0x14013b493
or eax, 0xffffffff
lea rcx, [rsi + 0x18]
lea r8, [rsp + 0xa8]
mov edx, eax
call fcn.1400416d0
lea rcx, [rsi + 0x38]
call fcn.140104060
lea rdx, [rsp + 0x58]
lea rcx, [rsi + 0x38]
call fcn.140161d00
mov r8b, 1
mov rdx, rax
lea rcx, [rsi + 0x38]
call fcn.14015c220
lea rcx, [rsi + 0x130]
call fcn.14002d970
mov edi, eax
test eax, eax
setg r14b
movzx edx, byte [rsi + 0x399]
movzx ecx, dl
shr cl, 4
and cl, 1
cmp cl, r14b
jne 0x14013b53f
xor ecx, ecx
test eax, eax
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovle ecx, eax
and dl, 0xef
or cl, dl
mov byte [rsi + 0x399], cl
mov rax, qword [rsi + 0x2f0]
test rax, rax
je 0x14013b533
test byte [rax + 0xc1], 0x10
jne 0x14013b53f
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14013b533
call fcn.140158e20
test al, al
je 0x14013b53f
lea rcx, [rsi + 0x2d8]
call fcn.140158ce0
movzx ecx, byte [rsi + 0x511]
movzx eax, cl
shr al, 4
and al, 1
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp al, r14b
jne 0x14013b5a5
xor eax, eax
test edi, edi
cmovle eax, r8d
and cl, 0xef
or al, cl
mov byte [rsi + 0x511], al
mov rax, qword [rsi + 0x468]
test rax, rax
je 0x14013b593
test byte [rax + 0xc1], r8b
jne 0x14013b5a5
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14013b593
call fcn.140158e20
test al, al
je 0x14013b5a5
lea rcx, [rsi + 0x450]
call fcn.140158ce0
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
movzx ecx, byte [rsi + 0x689]
movzx eax, cl
shr al, 4
and al, 1
cmp al, r14b
jne 0x14013b5ff
xor eax, eax
test edi, edi
cmovle eax, r8d
and cl, 0xef
or al, cl
mov byte [rsi + 0x689], al
mov rax, qword [rsi + 0x5e0]
test rax, rax
je 0x14013b5f3
test byte [rax + 0xc1], 0x10
jne 0x14013b5ff
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14013b5f3
call fcn.140158e20
test al, al
je 0x14013b5ff
lea rcx, [rsi + 0x5c8]
call fcn.140158ce0
movzx ecx, byte [rsi + 0x859]
movzx eax, cl
shr al, 4
and al, 1
cmp al, r14b
jne 0x14013b65f
xor eax, eax
test edi, edi
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovle eax, r8d
and cl, 0xef
or al, cl
mov byte [rsi + 0x859], al
mov rax, qword [rsi + 0x7b0]
test rax, rax
je 0x14013b653
test byte [rax + 0xc1], r8b
jne 0x14013b65f
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14013b653
call fcn.140158e20
test al, al
je 0x14013b65f
lea rcx, [rsi + 0x798]
call fcn.140158ce0
mov r14d, 0xfffffffc
lea rcx, [rbx - 0x10]
lea rax, [0x1402901c8]
cmp rcx, rax
je 0x14013b685
or eax, 0xffffffff
lock xadd dword [rcx], eax
test eax, eax
jne 0x14013b685
call fcn.1400bd658
sub r15, 8
sub ebp, 1
jns 0x14013b3a6
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret