Function at 0x14001da50
Capabilities:
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rbx, rcx
call fcn.140028a34
mov rcx, rbx
test eax, eax
jne 0x14001dc8b
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], r12
call fcn.14001d440
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov edx, 0x80
mov rcx, rbx
mov dword [rsp + 0x28], 0x2000000
mov ebp, eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001dc73
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14001dc73
test ebp, ebp
jne 0x14001dc07
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
movabs rbx, 0x19db1ded53e8000
shl rcx, 0x20
movabs r9, 0x236485ed4a5e980
mov r8d, 0xffffffff
add rcx, rax
movabs r11, 0xfe624e212ac18000
movabs r10, 0xd6bf94d5e57a42bd
cmp rcx, rbx
jae 0x14001db3f
mov qword [rdi + 0x28], r12
jmp 0x14001db5b
cmp rcx, r9
jbe 0x14001db4a
mov qword [rdi + 0x28], r8
jmp 0x14001db5b
add rcx, r11
mov rax, r10
mul rcx
shr rdx, 0x17
mov qword [rdi + 0x28], rdx
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x84]
test eax, eax
jne 0x14001db7c
test ecx, ecx
jne 0x14001db7c
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x14001dbb0
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x14001db93
mov qword [rdi + 0x20], r12
jmp 0x14001dbb0
cmp rdx, r9
jbe 0x14001db9e
mov qword [rdi + 0x20], r8
jmp 0x14001dbb0
lea rcx, [rdx + r11]
mov rax, r10
mul rcx
shr rdx, 0x17
mov qword [rdi + 0x20], rdx
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x8c]
test eax, eax
jne 0x14001dbcb
test ecx, ecx
je 0x14001dc58
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x14001dbe5
mov qword [rdi + 0x30], r12
jmp 0x14001dc73
cmp rdx, r9
jbe 0x14001dbf3
mov qword [rdi + 0x30], r8
jmp 0x14001dc73
lea rcx, [rdx + r11]
mov rax, r10
mul rcx
shr rdx, 0x17
mov qword [rdi + 0x30], rdx
jmp 0x14001dc73
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14001d570
cmp dword [rsp + 0x80], r12d
jne 0x14001dc33
cmp dword [rsp + 0x84], r12d
jne 0x14001dc33
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x14001dc44
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14001d570
cmp dword [rsp + 0x88], r12d
jne 0x14001dc62
cmp dword [rsp + 0x8c], r12d
jne 0x14001dc62
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x30], rax
jmp 0x14001dc73
lea rdx, [rdi + 0x30]
lea rcx, [rsp + 0x88]
call fcn.14001d570
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x58
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r8d, 0xffffffff
mov ebx, eax
cmp eax, r8d
je 0x14001dcf9
test al, 0x10
je 0x14001dcf9
xor eax, eax
mov ecx, 0x210000
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
call fcn.140013870
shl bx, 7
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x20], rax
mov eax, 0x80
not bx
and bx, ax
mov eax, 0x4100
or bx, ax
xor eax, eax
mov word [rdi + 6], bx
add rsp, 0x58
pop rdi
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rbx
ret