Function at 0x14005b2fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1400af3a8]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rbx, rcx
mov edi, 0x20e
mov r8d, edi
lea rcx, [rbp + 0x370]
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
lea r8d, [rdi - 4]
xor edx, edx
mov dword [rsp + 0x40], r15d
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
or qword [rsp + 0x48], 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x370]
mov dword [rsp + 0x28], edi
mov edx, 0x4d0008
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14005b3c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14005b66e
lea rsi, str._GLOBALROOT
mov edi, 0x105
mov r8, rsi
lea rax, [rsp + 0x50]
sub r8, rax
lea rcx, [rsp + 0x50]
mov edx, edi
mov r12d, 1
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x14005b407
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14005b407
mov word [rcx], ax
add rcx, 2
sub rdx, r12
jne 0x14005b3e5
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x14005b66e
movzx r9d, word [rbp + 0x370]
lea r8, [rbp + 0x372]
shr r9, 1
lea rcx, [rsp + 0x50]
call fcn.14005c220
mov ebx, eax
test eax, eax
js 0x14005b66e
lea r8, str.System_Volume_InformationFVE.e40ad34d_dae9_4bc7_95bd_b16218c10f72.X
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14005b058
mov ebx, eax
test eax, eax
js 0x14005b66e
mov rcx, rdi
lea rax, [rsp + 0x50]
cmp word [rax], r15w
je 0x14005b48a
add rax, 2
sub rcx, r12
jne 0x14005b47b
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x14005b4a7
mov rdx, rdi
sub rdx, rcx
jmp 0x14005b4aa
mov rdx, r15
mov rax, rcx
neg rax
sbb r14, r14
and r14, rdx
test rcx, rcx
je 0x14005b66e
test r14, r14
je 0x14005b66e
lea rax, [rbp + 0x160]
mov rdx, rdi
sub rsi, rax
lea rcx, [rbp + 0x160]
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x14005b4fd
movzx eax, word [rsi + rcx]
test ax, ax
je 0x14005b4fd
mov word [rcx], ax
add rcx, 2
sub rdx, r12
jne 0x14005b4dc
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x14005b66e
movzx r9d, word [rbp + 0x370]
lea r8, [rbp + 0x372]
shr r9, 1
lea rcx, [rbp + 0x160]
call fcn.14005c220
mov ebx, eax
test eax, eax
js 0x14005b66e
lea r8, str.System_Volume_InformationFVE2.e40ad34d_dae9_4bc7_95bd_b16218c10f72.X
mov rdx, rdi
lea rcx, [rbp + 0x160]
call fcn.14005b058
mov ebx, eax
test eax, eax
js 0x14005b66e
mov rcx, rdi
lea rax, [rbp + 0x160]
cmp word [rax], r15w
je 0x14005b586
add rax, 2
sub rcx, r12
jne 0x14005b577
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x14005b5a0
sub rdi, rcx
jmp 0x14005b5a3
mov rdi, r15
mov rax, rcx
neg rax
sbb rsi, rsi
and rsi, rdi
test rcx, rcx
je 0x14005b66e
test rsi, rsi
je 0x14005b66e
lea rdx, [rsp + 0x48]
call fcn.14005b130
mov ebx, eax
test eax, eax
js 0x14005b62c
mov edi, 0x31
mov ebx, edi
lea rcx, [rsp + 0x50]
mov word [rsp + r14*2 + 0x4e], bx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14005b629
lea rcx, [rbp + 0x160]
mov word [rbp + rsi*2 + 0x15e], bx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14005b629
add bx, r12w
movzx eax, bx
sub ax, di
cmp ax, 3
jb 0x14005b5d8
mov ebx, r12d
jmp 0x14005b62c
mov ebx, r15d
mov rdi, qword [rsp + 0x48]
cmp rdi, 0xffffffffffffffff
je 0x14005b66e
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x14005b65a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14005b66e
test rdi, rdi
je 0x14005b66e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.14005ca30
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret