Function at 0x14006c908
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x980], rax
xor r13d, r13d
mov r15, r9
mov ebx, r13d
mov esi, r8d
mov r14, rcx
mov rcx, qword [0x14009b020]
lea r9, [0x14009b020]
lea r12d, [r13 + 2]
cmp rcx, r9
je 0x14006c98c
test byte [rcx + 0x1c], r12b
je 0x14006c98c
cmp byte [rcx + 0x19], 5
jb 0x14006c98c
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x2b]
lea r8, [0x14008e4d0]
call fcn.1400042fc
mov rcx, qword [0x14009b020]
lea r9, [0x14009b020]
test r14, r14
jne 0x14006c99b
mov ebx, 0x57
jmp 0x14006d058
lea rax, [rsp + 0x50]
mov r8, r14
sub r8, rax
lea rdx, [rsp + 0x50]
mov edi, 0x104
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14006c9d2
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14006c9d2
mov word [rdx], ax
add rdx, r12
sub rdi, 1
jne 0x14006c9b0
test rdi, rdi
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r13w
jne 0x14006ca28
cmp rcx, r9
je 0x14006ca19
test byte [rcx + 0x1c], r12b
je 0x14006ca19
cmp byte [rcx + 0x19], r12b
jb 0x14006ca19
mov edx, 0x2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008e4d0]
mov rax, rdi
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x7a
call fcn.140023570
neg rdi
sbb ebx, ebx
not ebx
and ebx, 0x7a
jmp 0x14006d054
cmp esi, 1
jne 0x14006cbcb
mov ecx, 0x100
lea rax, [rbp + 0x580]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x780]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], r13
call qword [sym.imp.msvcrt.dll__wsplitpath_s]
nop dword [rax + rax]
test eax, eax
je 0x14006cab6
mov ebx, 0x65b
mov rcx, qword [0x14009b020]
lea rdi, [0x14009b020]
cmp rcx, rdi
je 0x14006cabd
test byte [rcx + 0x1c], r12b
je 0x14006cabd
cmp byte [rcx + 0x19], r12b
jb 0x14006cabd
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x2c]
mov r9d, ebx
lea r8, [0x14008e4d0]
call fcn.140004668
jmp 0x14006cabd
lea rdi, [0x14009b020]
mov r9d, 0x104
lea r8, [rbp + 0x780]
lea rax, [rbp + 0x370]
mov edx, r9d
sub r8, rax
lea rcx, [rbp + 0x370]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14006cb00
movzx eax, word [rcx + r8]
test ax, ax
je 0x14006cb00
mov word [rcx], ax
add rcx, r12
sub rdx, 1
jne 0x14006cade
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [rbp + 0x580]
mov rdx, r9
cmovne rax, rcx
lea rcx, [rbp + 0x370]
mov word [rax], r13w
call fcn.14000c394
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x370]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14006cb84
mov rcx, qword [0x14009b020]
cmp rcx, rdi
je 0x14006c991
test byte [rcx + 0x1c], r12b
je 0x14006c991
cmp byte [rcx + 0x19], r12b
jb 0x14006c991
mov edx, 0x2e
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
lea r8, [0x14008e4d0]
call fcn.1400044cc
jmp 0x14006c991
lea rdx, str..lnk
lea rcx, [rbp + 0x580]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14006cbcb
mov rcx, qword [0x14009b020]
cmp rcx, rdi
je 0x14006c991
test byte [rcx + 0x1c], r12b
je 0x14006c991
cmp byte [rcx + 0x19], r12b
jb 0x14006c991
lea edx, [rax + 0x2f]
jmp 0x14006cb6a
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x14006cc54
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
or edi, 0xffffffff
cmp eax, edi
jne 0x14006cf2a
mov ebx, r12d
mov rcx, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rcx, rdx
je 0x14006d058
test byte [rcx + 0x1c], r12b
je 0x14006d058
cmp byte [rcx + 0x19], r12b
jb 0x14006d058
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
mov edx, 0x30
mov dword [rsp + 0x20], r12d
lea r8, [0x14008e4d0]
call fcn.1400045e8
jmp 0x14006d058
test esi, esi
je 0x14006ccd0
lea rdx, [rsp + 0x50]
call fcn.140072d28
test eax, eax
jne 0x14006cd1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rax, qword [0x14009b020]
lea rsi, [0x14009b020]
cmp rax, rsi
je 0x14006cd25
test byte [rax + 0x1c], r12b
je 0x14006cd25
cmp byte [rax + 0x19], r12b
jb 0x14006cd25
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x31
mov rcx, qword [0x14009b020]
lea r8, [0x14008e4d0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14006cd25
lea rcx, [rsp + 0x50]
call fcn.14007281c
test eax, eax
jne 0x14006cd1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rax, qword [0x14009b020]
lea rsi, [0x14009b020]
cmp rax, rsi
je 0x14006cd25
test byte [rax + 0x1c], r12b
je 0x14006cd25
cmp byte [rax + 0x19], r12b
jb 0x14006cd25
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x33
jmp 0x14006ccb4
lea rsi, [0x14009b020]
test ebx, ebx
je 0x14006cd31
mov ebx, r12d
jmp 0x14006d058
lea r8, [0x14008e278]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14000c394
mov edi, eax
test eax, eax
jns 0x14006cd86
mov rcx, qword [0x14009b020]
cmp rcx, rsi
je 0x14006cd7e
test byte [rcx + 0x1c], r12b
je 0x14006cd7e
cmp byte [rcx + 0x19], r12b
jb 0x14006cd7e
mov edx, 0x34
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008e4d0]
movzx r9d, di
call fcn.140023570
movzx ebx, di
jmp 0x14006d054
mov r8, r14
lea rcx, [rsp + 0x50]
mov r14d, 0x104
mov edx, r14d
call fcn.14000c394
mov edi, eax
test eax, eax
jns 0x14006cdc1
mov rcx, qword [0x14009b020]
cmp rcx, rsi
je 0x14006cd7e
test byte [rcx + 0x1c], r12b
je 0x14006cd7e
cmp byte [rcx + 0x19], r12b
jb 0x14006cd7e
mov edx, 0x35
jmp 0x14006cd6a
lea rdx, [rsp + 0x50]
mov rdi, r14
lea rax, [rbp + 0x160]
sub rdx, rax
lea rcx, [rbp + 0x160]
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14006cdfb
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14006cdfb
mov word [rcx], ax
add rcx, r12
sub rdi, 1
jne 0x14006cdda
test rdi, rdi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
jne 0x14006ce3a
mov rcx, qword [0x14009b020]
cmp rcx, rsi
je 0x14006ca19
test byte [rcx + 0x1c], r12b
je 0x14006ca19
cmp byte [rcx + 0x19], r12b
jb 0x14006ca19
mov edx, 0x36
jmp 0x14006c9f9
lea r8, str..cov
mov rdx, r14
lea rcx, [rbp + 0x160]
call fcn.14000c394
mov edi, eax
test eax, eax
jns 0x14006ce84
mov rcx, qword [0x14009b020]
cmp rcx, rsi
je 0x14006cd7e
test byte [rcx + 0x1c], r12b
je 0x14006cd7e
cmp byte [rcx + 0x19], r12b
jb 0x14006cd7e
mov edx, 0x37
jmp 0x14006cd6a
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
or edi, 0xffffffff
lea rcx, [rsp + 0x50]
cmp eax, edi
jne 0x14006ceb8
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, edi
jne 0x14006cf30
jmp 0x14006cd29
lea rdx, [rbp + 0x160]
mov rdi, r14
lea rax, [rsp + 0x50]
sub rdx, rax
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14006ceeb
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14006ceeb
mov word [rcx], ax
add rcx, r12
sub rdi, 1
jne 0x14006ceca
test rdi, rdi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
jne 0x14006cf30
mov rcx, qword [0x14009b020]
cmp rcx, rsi
je 0x14006ca19
test byte [rcx + 0x1c], r12b
je 0x14006ca19
cmp byte [rcx + 0x19], r12b
jb 0x14006ca19
mov edx, 0x38
jmp 0x14006c9f9
mov r14d, 0x104
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, r15
call fcn.14000420c
mov edi, eax
test eax, eax
jns 0x14006cf7b
mov rcx, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rcx, rdx
je 0x14006cd7e
test byte [rcx + 0x1c], r12b
je 0x14006cd7e
cmp byte [rcx + 0x19], r12b
jb 0x14006cd7e
mov edx, 0x39
jmp 0x14006cd6a
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r15
call fcn.14006b8bc
cmp rax, 0xffffffffffffffff
jne 0x14006cff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rcx, rdx
je 0x14006d054
test byte [rcx + 0x1c], r12b
je 0x14006d054
cmp byte [rcx + 0x19], r12b
jb 0x14006d054
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008e4d0]
mov edx, 0x3a
mov dword [rsp + 0x20], eax
mov r9, r15
call fcn.1400045e8
jmp 0x14006d054
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14006d054
mov rax, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rax, rdx
je 0x14006d054
test byte [rax + 0x1c], r12b
je 0x14006d054
cmp byte [rax + 0x19], r12b
jb 0x14006d054
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008e4d0]
mov edx, 0x3b
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
test ebx, ebx
je 0x14006d06a
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006d06f
mov eax, 1
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1400018f0
mov rbx, qword [rsp + 0xad8]
add rsp, 0xa90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret