Function at 0x18000b540
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 - 0x640]
sub rsp, 0x740
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov r13, r8
mov byte [rsp + 0x30], dl
movzx ebx, dl
mov qword [rsp + 0x60], r9
mov r14, rcx
xor r15d, r15d
xor edx, edx
mov word [rsp + 0x34], r15w
mov r8d, 0x20a
lea rcx, [rbp + 0x10]
mov r12, r9
mov edi, 0xc0000001
call sub.msvcrt.dll_memset
mov qword [rbp - 0x80], r13
test r14, r14
je 0x18001e5fc
test r13, r13
je 0x18000b875
mov edi, r15d
test bl, bl
jne 0x18001e412
mov rcx, r13
call qword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
cmp eax, 2
jne 0x18001e438
movzx ecx, word [r13]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
mov ecx, dword [0x180071f08]
movzx esi, ax
movsd xmm0, qword [str.__X:]
mov dword [rbp], ecx
movzx ecx, word [0x180071f0c]
mov word [rbp + 4], cx
lea ecx, [rsi - 0x41]
movsd qword [rbp - 8], xmm0
cmp cx, 0x19
ja 0x18000b8a1
lea rdx, [rbp - 8]
mov word [rbp], si
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x68]
mov dword [rbp - 0x58], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x48], rax
lea r8, [rbp - 0x58]
mov qword [rbp - 0x50], r15
mov edx, 1
mov dword [rbp - 0x40], 0x40
lea rcx, [rsp + 0x78]
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
js 0x18001e42e
mov rcx, qword [rsp + 0x78]
lea rax, [rbp + 0x220]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], 0x4100000
mov dword [rsp + 0x58], r15d
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x18001e42e
mov r9d, 8
mov dword [rsp + 0x20], 4
lea r8, [rbp - 0x78]
mov rcx, r14
lea rdx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_NtQueryVolumeInformationFile]
test eax, eax
js 0x18000b653
test byte [rbp - 0x74], 0x10
jne 0x18001e480
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [0x18005e0c0]
call qword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
jne 0x18001e48b
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [0x18005e0b0]
call qword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
je 0x18001e42e
mov word [rsp + 0x34], si
cmp word [rsp + 0x34], r15w
je 0x18000b6b6
mov rcx, qword [rbp - 0x80]
lea rdx, [rbp + 0x10]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x18001e4e1
test edi, edi
js 0x18001e4e6
movzx ebx, word [rsp + 0x34]
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x40], rax
mov r8d, 0x210
mov rcx, qword gs:[0x60]
mov rsi, r15
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
je 0x18001e598
mov r9d, 0x210
mov dword [rsp + 0x20], 9
mov r8, rax
lea rdx, [rbp - 0x18]
mov rcx, r14
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
mov r14d, 0x208
test eax, eax
js 0x18000b83c
lea rdx, [r12 + 4]
mov qword [rsp + 0x40], rdx
movzx ecx, word [r12]
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], r14w
test bx, bx
je 0x18001e5af
lea eax, [rbx - 0x41]
cmp ax, 0x19
ja 0x18000b8b3
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x18000b760
movzx eax, bx
cmp word [rbp + rax*2 + 0xe], 0x5c
jne 0x18000b786
mov eax, 0xffff
add bx, ax
movzx eax, bx
mov word [rbp + rax*2 + 0x10], r15w
movzx r8d, cx
lea rdi, [rax + rax]
lea rax, [r8 + rdi]
cmp rax, r14
ja 0x18001e5e8
lea rcx, [rdi + rdx]
call qword [sym.imp.msvcrt.dll_memmove]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x10]
mov r8, rdi
call qword [sym.imp.msvcrt.dll_memmove]
movzx eax, word [rsp + 0x38]
add bx, bx
add ax, bx
mov word [rsp + 0x38], ax
mov r8, r14
movzx ecx, ax
xor edx, edx
mov rax, qword [rsp + 0x40]
shr rcx, 1
mov word [rax + rcx*2], r15w
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x18001e5f2
mov word [rax], r15w
mov r8d, 0x104
mov rcx, qword [rsp + 0x40]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x18000b825
mov rdx, rsi
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x38]
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
mov edi, eax
mov rcx, qword gs:[0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rsi, rsi
je 0x18000b871
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
js 0x18000b8c6
mov eax, edi
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.180017170
mov rbx, qword [rsp + 0x788]
add rsp, 0x740
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea ecx, [rsi - 0x61]
cmp cx, 0x19
jbe 0x18000b593
jmp 0x18001e42e
sub bx, 0x61
cmp bx, 0x19
jbe 0x18000b757
jmp 0x18001e5de
mov r12, qword [rsp + 0x60]
jmp 0x18001e4ec
lea r9, [rbp - 0x80]
mov rdx, r13
lea r8, [rsp + 0x34]
mov rcx, r14
call fcn.180031d4c
test al, al
jne 0x18000b692
mov edi, 0xc0000001
jmp 0x18000b692
cmp eax, 1
je 0x18001e480
cmp eax, 3
je 0x18000b557
add eax, 0xfffffffc
cmp eax, 1
ja 0x18001e42e
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + 0x40]
movzx ecx, word [rax]
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
mov r9d, 0xa
lea r8, [rsp + 0x34]
movzx edx, ax
mov rcx, r14
call fcn.180031b80
jmp 0x18001e426
mov word [rsp + 0x34], r15w
jmp 0x18000b6be
cmp word [rsp + 0x68], 0xc
jb 0x18000b670
mov rax, qword [rsp + 0x70]
cmp word [rax + 0xa], 0x3a
jne 0x18000b670
movzx edx, word [rax + 8]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18001e4c1
lea eax, [rdx - 0x61]
cmp ax, 0x19
ja 0x18000b670
mov r9d, 9
lea r8, [rsp + 0x34]
mov rcx, r14
call fcn.180031b80
test al, al
je 0x18001e42e
jmp 0x18000b692
mov edi, 0xc0000001
mov r14d, 0x208
mov esi, 0xc0000017
movzx ebx, byte [rsp + 0x30]
test r13, r13
je 0x18000b875
mov rdx, r13
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test bl, bl
je 0x18001e616
mov r8b, 1
lea rdx, [rsp + 0x48]
lea rcx, [0x18005e0c0]
call qword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
je 0x18001e60c
movzx ecx, word [rsp + 0x48]
cmp cx, 0xc
jb 0x18001e60c
mov r8, qword [rsp + 0x50]
cmp word [r8 + 0xa], 0x3a
jne 0x18001e60c
movzx edx, word [r8 + 8]
lea r9, [r8 + 8]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18001e572
sub dx, 0x61
cmp dx, 0x19
ja 0x18001e60c
cmp word [r8 + 0xc], 0x5c
jne 0x18001e60c
mov eax, 0xfff8
mov qword [rsp + 0x50], r9
add cx, ax
mov rdi, r15
mov word [rsp + 0x48], cx
jmp 0x18001e66d
mov r12, qword [rsp + 0x60]
mov esi, 0xc0000017
mov edi, esi
mov r14d, 0x208
jmp 0x18001e4f1
movzx r8d, cx
lea rax, [r8 + 2]
cmp rax, r14
jbe 0x18001e5c6
mov edi, 0x80000005
jmp 0x18000b83c
lea rcx, [rdx + 2]
call qword [sym.imp.msvcrt.dll_memmove]
movzx eax, word [rsp + 0x38]
add ax, 2
jmp 0x18000b7c2
mov edi, 0xc000000d
jmp 0x18000b83c
mov edi, 0x80000005
jmp 0x18000b83c
mov edi, 0xc0000017
jmp 0x18000b83c
mov esi, 0xc0000017
mov r14d, 0x208
jmp 0x18001e4f6
mov eax, 0xc0000001
jmp 0x18000b877
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x18001e70b
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov r8, rax
mov edx, r14d
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_U]
lea ecx, [rax - 1]
cmp ecx, 0x206
ja 0x18001e6e9
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x48], ax
mov word [rsp + 0x4a], r14w
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x18001e6ee
mov rcx, qword [rsp + 0x50]
mov r8d, 0x104
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x18001e6ba
mov r8, r12
lea rdx, [rsp + 0x48]
lea ecx, [rax + 3]
call qword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
mov esi, eax
jmp 0x18001e6cf
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
test al, al
cmove r15d, esi
mov esi, r15d
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x18001e6ee
mov esi, 0xc0000001
test rdi, rdi
je 0x18001e70b
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x18000b877