Function at 0x14001d790
Capabilities:
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rbx, rcx
call fcn.140028ec0
mov rcx, rbx
test eax, eax
jne 0x14001d9cb
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], r12
call fcn.14001d310
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_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001d9b3
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 0x14001d9b3
test ebp, ebp
jne 0x14001d947
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 0x14001d87f
mov qword [rdi + 0x28], r12
jmp 0x14001d89b
cmp rcx, r9
jbe 0x14001d88a
mov qword [rdi + 0x28], r8
jmp 0x14001d89b
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 0x14001d8bc
test ecx, ecx
jne 0x14001d8bc
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x14001d8f0
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x14001d8d3
mov qword [rdi + 0x20], r12
jmp 0x14001d8f0
cmp rdx, r9
jbe 0x14001d8de
mov qword [rdi + 0x20], r8
jmp 0x14001d8f0
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 0x14001d90b
test ecx, ecx
je 0x14001d998
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x14001d925
mov qword [rdi + 0x30], r12
jmp 0x14001d9b3
cmp rdx, r9
jbe 0x14001d933
mov qword [rdi + 0x30], r8
jmp 0x14001d9b3
lea rcx, [rdx + r11]
mov rax, r10
mul rcx
shr rdx, 0x17
mov qword [rdi + 0x30], rdx
jmp 0x14001d9b3
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14001d570
cmp dword [rsp + 0x80], r12d
jne 0x14001d973
cmp dword [rsp + 0x84], r12d
jne 0x14001d973
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x14001d984
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14001d570
cmp dword [rsp + 0x88], r12d
jne 0x14001d9a2
cmp dword [rsp + 0x8c], r12d
jne 0x14001d9a2
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x30], rax
jmp 0x14001d9b3
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_GetFileAttributesA]
mov r8d, 0xffffffff
mov ebx, eax
cmp eax, r8d
je 0x14001da39
test al, 0x10
je 0x14001da39
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