Function at 0x140145f60
Capabilities:
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rbx, rcx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__stat64
mov rcx, rbx
test eax, eax
jne 0x14014619a
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], r14
call fcn.140145d40
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x80
mov dword [rsp + 0x28], 0x2000000
mov rcx, rbx
mov ebp, eax
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140146182
lea r9, [rsp + 0x40]
mov rcx, rax
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140146182
test ebp, ebp
jne 0x140146116
mov ecx, dword [rsp + 0x44]
movabs rbx, 0x19db1ded53e8000
mov eax, dword [rsp + 0x40]
movabs r9, 0x236485ed4a5e980
shl rcx, 0x20
mov r8d, 0xffffffff
add rcx, rax
movabs r11, 0xfe624e212ac18000
movabs r10, 0xd6bf94d5e57a42bd
cmp rcx, rbx
jae 0x14014604e
mov qword [rdi + 0x28], r14
jmp 0x14014606a
cmp rcx, r9
jbe 0x140146059
mov qword [rdi + 0x28], r8
jmp 0x14014606a
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 0x14014608b
test ecx, ecx
jne 0x14014608b
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x1401460bf
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x1401460a2
mov qword [rdi + 0x20], r14
jmp 0x1401460bf
cmp rdx, r9
jbe 0x1401460ad
mov qword [rdi + 0x20], r8
jmp 0x1401460bf
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 0x1401460da
test ecx, ecx
je 0x140146167
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x1401460f4
mov qword [rdi + 0x30], r14
jmp 0x140146182
cmp rdx, r9
jbe 0x140146102
mov qword [rdi + 0x30], r8
jmp 0x140146182
lea rcx, [rdx + r11]
mov rax, r10
mul rcx
shr rdx, 0x17
mov qword [rdi + 0x30], rdx
jmp 0x140146182
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140145e70
cmp dword [rsp + 0x80], r14d
jne 0x140146142
cmp dword [rsp + 0x84], r14d
jne 0x140146142
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x140146153
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140145e70
cmp dword [rsp + 0x88], r14d
jne 0x140146171
cmp dword [rsp + 0x8c], r14d
jne 0x140146171
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x30], rax
jmp 0x140146182
lea rdx, [rdi + 0x30]
lea rcx, [rsp + 0x88]
call fcn.140145e70
mov r14, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
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 0x140146208
test al, 0x10
je 0x140146208
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.1401457b0
shl bx, 7
mov ecx, 0x80
not bx
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
and bx, cx
mov qword [rdi + 0x20], rax
mov eax, 0x4100
or bx, ax
mov word [rdi + 6], bx
xor eax, eax
add rsp, 0x58
pop rdi
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rbx
ret