Function at 0x164cb4850
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x428]
sub rsp, 0x528
mov rax, qword [0x164cf5010]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r13, qword [rbp + 0x470]
xor edi, edi
mov esi, dword [rbp + 0x480]
mov edx, 0x5c
mov r14, qword [rbp + 0x478]
mov r15d, 0x208
mov r12, qword [rbp + 0x488]
mov qword [rsp + 0x40], r13
test esi, esi
je 0x164cb4973
xor r9d, r9d
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, r14
call qword [sym.imp.aswCmnOS.dll_dep_fsExtractDriveRoot]
test eax, eax
jne 0x164cb496e
mov edi, dword [rsp + 0x60]
mov eax, dword [rsp + 0x58]
sub edi, eax
cmp edi, 0x103
jae 0x164cb496c
lea rdx, [r14 + rax*2]
mov r8d, edi
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea ecx, [rdi + 1]
mov eax, 0x5c
add rcx, rcx
mov word [rbp + rdi*2 + 0x200], ax
cmp rcx, r15
jae 0x164cb4c34
xor edi, edi
lea r9, [rsp + 0x48]
mov dword [rsp + 0x38], edi
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov word [rbp + rcx + 0x200], di
lea rcx, [rbp + 0x200]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x164cb496e
cmp dword [rsp + 0x48], esi
je 0x164cb496e
lea eax, [rdi + 0x22]
jmp 0x164cb4c11
xor edi, edi
mov edx, 0x5c
mov ebx, 0x104
lea rax, [rbp + 0x200]
mov r9, r14
lea rcx, [rbp + 0x200]
mov r8d, ebx
sub r9, rax
nop
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x164cb49b3
movzx eax, word [r9 + rcx]
test ax, ax
je 0x164cb49b3
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x164cb4990
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
lea rcx, [rbp + 0x200]
mov word [rax], di
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x164cb49da
cmp word [rax + 2], 0
je 0x164cb4a4f
mov rcx, rbx
lea rax, [rbp + 0x200]
cmp word [rax], 0
je 0x164cb49f4
add rax, 2
sub rcx, 1
jne 0x164cb49e4
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rdi
je 0x164cb4a4f
lea rcx, [rbp + 0x200]
lea rcx, [rcx + rax*2]
sub rbx, rax
je 0x164cb4a41
lea r8, [0x164ce02e0]
mov eax, 0x7ffffffe
sub r8, rcx
test rax, rax
je 0x164cb4a41
movzx edx, word [r8 + rcx]
test dx, dx
je 0x164cb4a41
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x164cb4a22
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
lea rax, [rbp + 0x200]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x164cb4a60
cmp rbx, 0x103
jb 0x164cb4a7d
mov eax, 0x6f
jmp 0x164cb4c11
mov qword [rsp + 0x48], r13
test r13, r13
jne 0x164cb4ac5
lea r9d, [r13 - 1]
lea r8, str.USNTracker
lea edx, [r13 + 0x10]
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.aswCmnOS.dll_dep_brandApplyPrefix]
mov r9b, 1
lea rcx, [rsp + 0x48]
mov rdx, rax
xor r8d, r8d
call qword [sym.imp.aswCmnOS.dll_dep_osOpenDrvDevice]
mov rdi, qword [rsp + 0x48]
test eax, eax
je 0x164cb4ac8
jmp 0x164cb4c11
mov rdi, r13
xor eax, eax
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 0x500
mov rcx, r14
mov qword [rsp + 0x50], rax
call qword [sym.imp.aswCmnOS.dll_dep_fsFindFirstFile]
mov esi, eax
test eax, eax
jne 0x164cb4c01
lea rcx, [rbx + rbx]
sub r15, rcx
lea rbx, [rbp + 0x200]
shr r15, 1
add rbx, rcx
xor r13d, r13d
test r15, r15
je 0x164cb4bd9
cmp r15, 0x7fffffff
ja 0x164cb4bd5
mov r8d, 0x7ffffffe
lea r9, [rsp + 0x70]
sub r8, r15
mov rdx, r15
sub r9, rbx
mov rcx, rbx
nop
lea rax, [r8 + rdx]
test rax, rax
je 0x164cb4b60
movzx eax, word [r9 + rcx]
test ax, ax
je 0x164cb4b60
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x164cb4b40
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r13w
je 0x164cb4bd9
mov rcx, rdi
cmp byte [rbp + 0x1a8], r13b
je 0x164cb4b91
mov r9, r12
lea rdx, [rbp + 0x200]
xor r8d, r8d
call sym.aswCmnBS.dll_usnCreateDirCheckpoint
jmp 0x164cb4bd9
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x200]
mov dword [rsp + 0x30], 0x2a7c0004
lea rdx, [rsp + 0x58]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x2a7c0008
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov r8, r12
mov qword [rsp + 0x58], rax
movdqu xmmword [rsp + 0x60], xmm0
call fcn.164cb3bc0
jmp 0x164cb4bd9
mov word [rbx], r13w
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.aswCmnOS.dll_dep_fsFindNextFile]
test eax, eax
je 0x164cb4b12
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.aswCmnOS.dll_dep_fsFindClose]
mov r13, qword [rsp + 0x40]
test r13, r13
jne 0x164cb4c0f
mov rcx, rdi
call qword [sym.imp.aswCmnOS.dll_dep_osCloseDrvDevice]
mov eax, esi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.164cd6f70
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.164cd7584
int3