Function at 0x140110600
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 0x14011083a
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], r14
call fcn.1401103e0
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 0x140110822
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 0x140110822
test ebp, ebp
jne 0x1401107b6
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 0x1401106ee
mov qword [rdi + 0x28], r14
jmp 0x14011070a
cmp rcx, r9
jbe 0x1401106f9
mov qword [rdi + 0x28], r8
jmp 0x14011070a
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 0x14011072b
test ecx, ecx
jne 0x14011072b
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x14011075f
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x140110742
mov qword [rdi + 0x20], r14
jmp 0x14011075f
cmp rdx, r9
jbe 0x14011074d
mov qword [rdi + 0x20], r8
jmp 0x14011075f
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 0x14011077a
test ecx, ecx
je 0x140110807
mov rdx, rcx
mov ecx, eax
shl rdx, 0x20
add rdx, rcx
cmp rdx, rbx
jae 0x140110794
mov qword [rdi + 0x30], r14
jmp 0x140110822
cmp rdx, r9
jbe 0x1401107a2
mov qword [rdi + 0x30], r8
jmp 0x140110822
lea rcx, [rdx + r11]
mov rax, r10
mul rcx
shr rdx, 0x17
mov qword [rdi + 0x30], rdx
jmp 0x140110822
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140110510
cmp dword [rsp + 0x80], r14d
jne 0x1401107e2
cmp dword [rsp + 0x84], r14d
jne 0x1401107e2
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], rax
jmp 0x1401107f3
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140110510
cmp dword [rsp + 0x88], r14d
jne 0x140110811
cmp dword [rsp + 0x8c], r14d
jne 0x140110811
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x30], rax
jmp 0x140110822
lea rdx, [rdi + 0x30]
lea rcx, [rsp + 0x88]
call fcn.140110510
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 0x1401108a8
test al, 0x10
je 0x1401108a8
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.14010fe50
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