Function at 0x14006667c
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe80
mov rbp, rcx
mov rsi, r8
mov edi, 0x3ff
lea rcx, [rax - 0x427]
xor ebx, ebx
xor edx, edx
mov r8, rdi
mov byte [rax - 0x428], bl
call sub.msvcrt.dll_memset
lea r14, [0x140076a00]
lea rdx, [rsp + 0xa80]
mov rcx, r14
mov r8d, edi
call fcn.140061b44
lea rcx, [rbp + 8]
lea r8, [rsp + 0xa80]
mov rdx, rsi
call fcn.1400653fc
cmp eax, ebx
je 0x140066a75
mov edi, 0x20a
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8, rdi
mov dword [rbp + 0x3e8], 2
mov word [rsp + 0x30], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x242]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x240], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x662]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x660], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x452]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x450], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x872]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x870], bx
call sub.msvcrt.dll_memset
lea r15, [0x14008ad40]
mov edx, 0x138
mov rcx, r15
call fcn.140066f78
or r13, 0xffffffffffffffff
lea r12d, [rbx + 1]
mov r11, rax
xor eax, eax
mov rcx, r13
mov rdi, r11
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
sub rcx, r12
mov rdx, rcx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
lea rax, [rdx + rcx + 1]
cmp rax, 0x1ff
jae 0x1400667e1
lea r8, [rsp + 0x30]
mov rdx, r11
mov rcx, rsi
call fcn.1400639e4
jmp 0x1400667e6
mov word [rsp + 0x30], bx
mov edx, 0x139
mov rcx, r15
call fcn.140066f78
mov rcx, r13
mov r11, rax
xor eax, eax
mov rdi, r11
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
sub rcx, r12
mov rdx, rcx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
lea rax, [rdx + rcx + 1]
cmp rax, 0x1ff
jae 0x14006683b
lea r8, [rsp + 0x240]
mov rdx, r11
mov rcx, rsi
call fcn.1400639e4
jmp 0x140066843
mov word [rsp + 0x240], bx
mov edx, 0x13a
mov rcx, r15
call fcn.140066f78
mov rcx, r13
mov r11, rax
xor eax, eax
mov rdi, r11
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
sub rcx, r12
mov rdx, rcx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
lea rax, [rdx + rcx + 1]
cmp rax, 0x1ff
jae 0x140066898
lea r8, [rsp + 0x660]
mov rdx, r11
mov rcx, rsi
call fcn.1400639e4
jmp 0x1400668a0
mov word [rsp + 0x660], bx
mov edx, 0x13b
mov rcx, r15
call fcn.140066f78
mov rcx, r13
mov r11, rax
xor eax, eax
mov rdi, r11
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
sub rcx, r12
mov rdx, rcx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
lea rax, [rdx + rcx + 1]
cmp rax, 0x1ff
jae 0x1400668f5
lea r8, [rsp + 0x450]
mov rdx, r11
mov rcx, rsi
call fcn.1400639e4
jmp 0x1400668fd
mov word [rsp + 0x450], bx
mov edx, 0x13c
mov rcx, r15
call fcn.140066f78
mov rcx, r13
mov r11, rax
xor eax, eax
mov rdi, r11
repne scasw ax, word [rdi]
mov rdi, rsi
not rcx
sub rcx, r12
mov rdx, rcx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
lea rax, [rdx + rcx + 1]
cmp rax, 0x1ff
jae 0x140066952
lea r8, [rsp + 0x870]
mov rdx, r11
mov rcx, rsi
call fcn.1400639e4
jmp 0x14006695a
mov word [rsp + 0x870], bx
lea rcx, [rsp + 0x870]
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r13d, 0xffffffff
cmp eax, r13d
je 0x140066993
lea r8, [rsp + 0x870]
mov r9, rsi
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140065c4c
jmp 0x140066a75
lea rcx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x1400669c6
lea r8, [rsp + 0x450]
mov r9, rsi
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.1400662dc
jmp 0x140066a75
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x1400669f9
lea r8, [rsp + 0x30]
mov r9, rsi
mov rdx, r14
mov rcx, rbp
mov dword [rsp + 0x28], 0xa
mov edi, r12d
mov qword [rsp + 0x20], rbx
call fcn.1400658fc
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x140066a32
lea r8, [rsp + 0x240]
mov r9, rsi
mov rdx, r14
mov rcx, rbp
mov dword [rsp + 0x28], 0x14
mov edi, r12d
mov qword [rsp + 0x20], rbx
call fcn.1400658fc
lea rcx, [rsp + 0x660]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, r13d
je 0x140066a6b
lea r8, [rsp + 0x660]
mov r9, rsi
mov rdx, r14
mov rcx, rbp
mov dword [rsp + 0x28], 0x1e
mov edi, r12d
mov qword [rsp + 0x20], rbx
call fcn.1400658fc
mov eax, 3
cmp edi, ebx
cmove ebx, eax
lea r11, [rsp + 0xe80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret