Function at 0x14007c9c0
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14, rcx
lea rcx, [rax + 0x10]
call fcn.14004f534
lea rcx, [rsp + 0x58]
mov edx, 5
call fcn.1400571c8
lea rcx, [rsp + 0x60]
mov edx, 0x14
call fcn.1400571c8
xor edi, edi
mov r13b, 1
lea ebp, [rdi + 0x2d]
mov sil, dil
mov r12b, dil
mov r15b, dil
or ebx, 0xffffffff
jmp 0x14007cbc4
lea rcx, str.__fullfile
mov r8d, ebx
call fcn.14005992c
cmp al, dil
je 0x14007ca39
mov r13b, 2
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, str.__full
mov r8d, ebx
call fcn.14005992c
cmp al, dil
je 0x14007ca5d
mov r13b, 1
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, str.__short
mov r8d, ebx
call fcn.14005992c
cmp al, dil
je 0x14007ca81
mov sil, 1
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, [0x1400f8610]
mov r8d, ebx
call fcn.14005992c
cmp al, dil
je 0x14007caa5
mov sil, 0x11
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, str.__long
mov r8d, ebx
call fcn.14005992c
cmp al, dil
je 0x14007cac9
mov sil, 2
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, [0x1400f8600]
mov r8d, ebx
call fcn.14005992c
cmp al, dil
je 0x14007caed
mov sil, 0x12
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, str.__volume
mov r8d, 8
call fcn.14004f5b8
cmp eax, edi
je 0x14007cb13
mov r12b, 1
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, str.__volumepart
mov r8d, 0xc
call fcn.14004f5b8
cmp eax, edi
je 0x14007cb39
mov r12b, 3
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, str.__part
mov r8d, 6
call fcn.14004f5b8
cmp eax, edi
je 0x14007cb5c
mov r12b, 2
jmp 0x14007cbc4
lea rdx, [rsp + 0xb8]
lea rcx, [0x1400f85b0]
mov r8d, 3
call fcn.14004f5b8
cmp eax, edi
je 0x14007cb7f
mov r15b, 1
jmp 0x14007cbc4
mov rcx, qword [rsp + 0xb8]
jmp 0x14007cbaf
mov edx, 9
cmp dx, ax
ja 0x14007cb99
cmp ax, 0xd
jbe 0x14007cbb7
mov edx, 0x20
cmp dx, ax
je 0x14007cbb7
add rcx, 2
mov qword [rsp + 0xb8], rcx
movzx eax, word [rcx]
cmp ax, di
jne 0x14007cb89
lea rcx, [rsp + 0xb8]
call fcn.14004f534
mov rax, qword [rsp + 0xb8]
lea rdx, [rsp + 0xb8]
cmp bp, word [rax]
je 0x14007ca1d
mov ebx, 0x3d
lea r8, [rsp + 0x58]
mov rcx, r14
mov r9d, ebx
mov word [rsp + 0x20], di
call fcn.1400493d4
mov qword [rsp + 0xb8], rax
cmp bx, word [rax]
jne 0x14007cc2d
add rax, 2
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xb8]
xor r9d, r9d
mov rcx, r14
mov word [rsp + 0x20], di
mov qword [rsp + 0xb8], rax
call fcn.140049210
mov rcx, qword [rsp + 0x60]
call fcn.14005d23c
mov rcx, qword [rsp + 0x58]
mov rbp, rax
cmp word [rcx], di
je 0x14007ceff
cmp word [rax], di
je 0x14007ceff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x50]
mov rdx, rbp
lea ebx, [rax*8 + 0x104]
call fcn.14006160c
lea r11d, [rbx + 1]
lea rcx, [rsp + 0x50]
movsxd rdx, r11d
call fcn.140057254
mov qword [rsp + 0xc8], rdi
mov rdi, qword [rsp + 0x50]
lea r9, [rsp + 0xc8]
mov r8, rdi
mov edx, ebx
mov rcx, rbp
call fcn.140057f84
mov r11, qword [rsp + 0xc8]
xor ebp, ebp
cmp r11, rbp
je 0x14007ccbc
sub r11, 2
mov qword [rsp + 0xc8], r11
cmp sil, bpl
jle 0x14007cd65
lea rcx, [rsp + 0x48]
mov edx, 0x2000
call fcn.1400571c8
mov rbx, qword [rsp + 0x48]
mov word [rbx], bp
test sil, 1
je 0x14007ccf6
mov r8d, 0x1fff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x14007cd12
test sil, 2
je 0x14007cd1f
mov r8d, 0x1fff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
and sil, 0xfd
test sil, 0x10
je 0x14007ccf6
cmp bp, word [rbx]
jne 0x14007ccf6
jmp 0x14007cd53
mov rax, rdi
mov qword [rsp + 0x50], rbx
mov word [rbx + 0x3ffc], bp
mov rdi, rbx
mov qword [rsp + 0x48], rax
cmp r13b, 1
jne 0x14007cd53
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0x48]
call fcn.14004f564
mov r11, qword [rsp + 0xc8]
cmp r13b, 1
jne 0x14007cd74
cmp r11, rbp
je 0x14007cd74
mov word [r11], bp
cmp r12b, bpl
je 0x14007ce89
cmp word [rdi], bp
je 0x14007ce89
mov r13d, 0x3a
cmp r13w, word [rdi + 2]
jne 0x14007ce89
lea rcx, [rsp + 0x48]
mov edx, 0x1000
call fcn.1400571c8
mov rbx, qword [rsp + 0x48]
mov word [rbx], bp
movzx eax, word [rdi]
mov word [rsp + 0x42], r13w
mov word [rsp + 0x40], ax
lea eax, [r13 + 0x22]
mov word [rsp + 0x46], bp
mov word [rsp + 0x44], ax
mov rsi, rbx
mov word [rdi], bp
test r12b, 1
je 0x14007cdf3
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
cmp eax, ebp
je 0x14007cdf3
cmp word [rbx], bp
jne 0x14007ce56
test r12b, 2
je 0x14007ce7f
movzx eax, word [rsp + 0x40]
or r8d, 0xffffffff
mov byte [rsp + 0x30], bpl
mov word [rbx], ax
lea rcx, [rsp + 0x48]
mov r9d, 0xac
or edx, r8d
mov qword [rsp + 0x28], rbp
mov word [rbx + 2], bp
mov qword [rsp + 0x20], rbp
call fcn.140075178
mov rbx, qword [rsp + 0x48]
cmp qword [rbx], rbp
jl 0x14007ce7f
cmp qword [rbx + 8], rbp
jle 0x14007ce7f
mov r9d, dword [rbx + 8]
mov r8d, dword [rbx]
lea rdx, str._Harddisk_uPartition_u_
mov rcx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rdi + 6]
cdqe
lea rcx, [rsi + rax*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r11, rdi
mov rdi, rbx
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x48]
call fcn.14004f564
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0x48], rbp
cmp r15b, bpl
je 0x14007cec3
mov eax, 0x22
cmp ax, word [rdi]
je 0x14007cec3
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb8]
or r8d, 0xffffffff
call fcn.14005d268
mov rdi, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x58]
mov r8, rdi
mov rcx, r14
call fcn.140056790
lea rcx, [rsp + 0x48]
call fcn.14004f564
lea rcx, [rsp + 0x50]
call fcn.14004f564
lea rcx, [rsp + 0x60]
call fcn.14004f564
lea rcx, [rsp + 0x58]
call fcn.14004f564
xor eax, eax
jmp 0x14007cf1a
lea rcx, [rsp + 0x60]
call fcn.14004f564
lea rcx, [rsp + 0x58]
call fcn.14004f564
mov rax, 0xffffffff80070057
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret