Function at 0x7ff74b316b4
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4e0
mov rax, qword [0x7ff74b58340]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r14, rcx
mov rsi, rdx
xor r13d, r13d
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov r15, r9
mov dword [rsp + 0x30], 0x220
mov qword [rsp + 0x38], r13
mov word [rsp + 0xa0], r13w
call sub.msvcrt.dll_memset
xor eax, eax
lea r8d, [r13 + 0x28]
lea rcx, [rsp + 0x68]
xor edx, edx
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x48], rax
mov rbp, r13
mov dword [rsp + 0x60], r13d
call sub.msvcrt.dll_memset
cmp r14, 3
jbe 0x7ff74b31b83
lea r12d, [r13 + 0x5c]
cmp word [rsi], r12w
jne 0x7ff74b3175b
cmp word [rsi + 2], r12w
je 0x7ff74b31b83
lea r8, [rsp + 0x90]
mov rdx, rsi
mov ecx, 4
lea rax, [rsp + 0x90]
mov r9d, r13d
sub rdx, r8
lea r8, [rcx - 1]
cmp r8, r13
je 0x7ff74b3179d
movzx r10d, word [rdx + rax]
cmp r10w, r13w
je 0x7ff74b3179d
mov word [rax], r10w
add rax, 2
mov rcx, r8
cmp r8, r13
jne 0x7ff74b31779
cmp rcx, r13
jne 0x7ff74b317ac
sub rax, 2
mov r9d, 0x8007007a
cmp r9d, r13d
mov word [rax], r13w
jge 0x7ff74b317bf
mov eax, 0x80080004
jmp 0x7ff74b31bca
xor ecx, ecx
mov word [rsp + 0x94], r12w
mov word [rsp + 0x96], r13w
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, r13d
je 0x7ff74b31832
mov ebx, 0x80080003
cmp dword [0x7ff74b582c8], r13d
je 0x7ff74b31bc8
mov rcx, qword [0x7ff74b58350]
lea rdi, [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b31bc8
test byte [rcx + 0x1c], 1
je 0x7ff74b31bc8
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51840]
mov edx, 0xd
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.7ff74b298f0
jmp 0x7ff74b31bc8
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x7ff74b31897
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
cmp dword [0x7ff74b582c8], r13d
je 0x7ff74b3188d
mov rcx, qword [0x7ff74b58350]
lea rdi, [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b3188d
test byte [rcx + 0x1c], 8
je 0x7ff74b3188d
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51840]
mov r9, rsi
mov dword [rsp + 0x20], 1
call fcn.7ff74b298f0
mov eax, 1
jmp 0x7ff74b31bca
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x2b0]
mov edx, 1
mov rcx, rsi
call fcn.7ff74b46ac8
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
cmp ebx, r13d
je 0x7ff74b3190d
cmp dword [0x7ff74b582c8], r13d
je 0x7ff74b317b5
mov rcx, qword [0x7ff74b58350]
lea rdi, [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b317b5
test byte [rcx + 0x1c], 1
je 0x7ff74b317b5
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51840]
mov edx, 0xf
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.7ff74b298f0
jmp 0x7ff74b317b5
mov rbx, qword [rsp + 0x2b0]
cmp rbx, r13
je 0x7ff74b31bf5
cmp word [rbx], r12w
jne 0x7ff74b31bf5
cmp word [rbx + 2], r12w
jne 0x7ff74b31bf5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
cmp r12, 1
jbe 0x7ff74b31b7e
lea r9, [rbx + 2]
lea r8, str.__unc_s
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call fcn.7ff74b043e4
cmp eax, r13d
jl 0x7ff74b31bca
mov rcx, qword [0x7ff74b584e0]
mov edi, 0x210
xor edx, edx
mov r8, rdi
call qword [0x7ff74b58358]
mov rbp, rax
cmp rax, r13
jne 0x7ff74b31998
mov eax, 0x8007000e
jmp 0x7ff74b31bca
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
cmp al, r13b
jne 0x7ff74b319c7
mov ebx, 0x8007000e
jmp 0x7ff74b31ba1
lea rax, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x78], 0x40
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x88], r13
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
cmp eax, r13d
je 0x7ff74b31a62
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov ebx, 0x80080003
cmp dword [0x7ff74b582c8], r13d
je 0x7ff74b31ba1
mov rcx, qword [0x7ff74b58350]
lea rdi, [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b31ba1
test byte [rcx + 0x1c], 1
je 0x7ff74b31ba1
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51840]
mov edx, 0x11
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.7ff74b298f0
jmp 0x7ff74b31ba1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov edx, 0x100088
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtOpenFile]
cmp dword [0x7ff74b582c8], 0
lea rdi, [0x7ff74b58350]
mov r13d, eax
je 0x7ff74b31ac9
mov rcx, qword [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b31ac9
test byte [rcx + 0x1c], 8
je 0x7ff74b31ac9
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51840]
mov edx, 0x12
mov r9d, eax
call fcn.7ff74b25ec4
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test r13d, r13d
jne 0x7ff74b31b7b
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0x210
mov r8, rbp
mov dword [rsp + 0x20], 0x31
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp dword [0x7ff74b582c8], 0
mov r13d, eax
je 0x7ff74b31b3e
mov rcx, qword [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b31b3e
test byte [rcx + 0x1c], 8
je 0x7ff74b31b3e
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b51840]
mov edx, 0x13
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.7ff74b298f0
test r13d, r13d
jne 0x7ff74b31b7b
lea r9, [rbp + 4]
lea r8, [0x7ff74b51e28]
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call fcn.7ff74b043e4
xor r13d, r13d
cmp eax, r13d
mov ebx, eax
jl 0x7ff74b31ba1
mov r12d, dword [rbp]
lea rbx, [rsp + 0xa0]
inc r12d
jmp 0x7ff74b31b7e
xor r13d, r13d
cmp rbx, r13
jne 0x7ff74b31b89
mov r12, r14
mov rbx, rsi
lea rcx, [r12 - 1]
mov r9, r15
mov r8d, 0x100
mov rdx, rbx
call fcn.7ff74b31550
mov ebx, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x7ff74b31bb1
call qword [sym.imp.ntdll.dll_NtClose]
cmp rbp, r13
je 0x7ff74b31bc8
mov rcx, qword [0x7ff74b584e0]
mov r8, rbp
xor edx, edx
call qword [case.0x7ff74b3e5fd.0]
mov eax, ebx
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.7ff74ae3090
mov rbx, qword [rsp + 0x530]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [0x7ff74b582c8], r13d
je 0x7ff74b3188d
mov rcx, qword [0x7ff74b58350]
lea rdi, [0x7ff74b58350]
cmp rcx, rdi
je 0x7ff74b3188d
test byte [rcx + 0x1c], 8
je 0x7ff74b3188d
mov edx, 0x10
jmp 0x7ff74b31872