Function at 0x140016f54
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2d8]
sub rsp, 0x3a0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140163470]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, r8
mov sil, dl
mov rdi, rcx
movzx r8d, byte [r8 + 0x27]
and r8d, 1
mov edx, 5
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov r8d, dword [rbx + 0x24]
shr r8d, 0x1f
mov edx, 8
mov rcx, rdi
call qword [sym.imp.USER32.dll_CheckDlgButton]
xor ebx, ebx
mov word [rbp + 0x90], bx
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rbp + 0x92]
call fcn.1400ebf40
lea r14d, [rbx + 0x32]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdi, rax
mov edx, 0x2853d59e
mov ecx, 0xa88a289e
mov r8d, 0x91e80c6d
call fcn.140001824
mov rdx, rax
mov rcx, rdi
call fcn.140015634
lea rdx, [rbp - 0x58]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov r12d, 0x100
test sil, sil
je 0x140017234
mov r9d, 0x10024
xor r8d, r8d
mov edx, 0x1036
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea r8d, [rbx + 0x34]
lea rcx, [rbp + 0x34]
call fcn.1400ebf40
mov dword [rbp + 0x30], 6
mov dword [rbp + 0x38], r14d
mov r9d, r12d
lea r8, [rbp + 0x90]
lea edx, [rbx + 0x1d]
mov rcx, qword [0x140175a98]
call fcn.140023b00
mov esi, 0xbfbf
test eax, eax
jne 0x14001709e
movzx edx, word [0x14016a37a]
xor edx, esi
mov r9d, r12d
lea r8, [rbp + 0x90]
lea rcx, [0x14016a37c]
call fcn.140012e14
lea rax, [rbp + 0x90]
mov qword [rbp + 0x40], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
mov r14d, 0x1061
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15d, 0x64
mov dword [rbp + 0x38], r15d
mov r9d, r12d
lea r8, [rbp + 0x90]
lea edx, [r15 - 0x46]
mov rcx, qword [0x140175a98]
call fcn.140023b00
test eax, eax
jne 0x140017109
movzx edx, word [0x14016a388]
xor edx, esi
mov r9d, r12d
lea r8, [rbp + 0x90]
lea rcx, [0x14016a38a]
call fcn.140012e14
lea r9, [rbp + 0x30]
mov r8d, 1
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rbp - 0x50]
sub eax, dword [rbp - 0x58]
sub eax, 0x190
mov dword [rbp + 0x38], eax
mov r9d, r12d
lea r8, [rbp + 0x90]
mov edx, 0x1f
mov rcx, qword [0x140175a98]
call fcn.140023b00
test eax, eax
jne 0x14001716b
movzx edx, word [0x14016a398]
xor edx, esi
mov r9d, r12d
lea r8, [rbp + 0x90]
lea rcx, [0x14016a39a]
call fcn.140012e14
lea r9, [rbp + 0x30]
mov r8d, 2
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rbp + 0x38], r15d
mov r9d, r12d
lea r8, [rbp + 0x90]
mov edx, 0x20
mov rcx, qword [0x140175a98]
call fcn.140023b00
test eax, eax
jne 0x1400171c3
movzx edx, word [0x14016a3aa]
xor edx, esi
mov r9d, r12d
lea r8, [rbp + 0x90]
lea rcx, [0x14016a3ac]
call fcn.140012e14
lea r9, [rbp + 0x30]
mov r8d, 3
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rbp + 0x38], ILFree
mov r9d, r12d
lea r8, [rbp + 0x90]
mov edx, 0x6a
mov rcx, qword [0x140175a98]
call fcn.140023b00
test eax, eax
jne 0x14001721e
movzx edx, word [0x14016ad4c]
xor edx, esi
mov r9d, r12d
lea r8, [rbp + 0x90]
lea rcx, [0x14016ad4e]
call fcn.140012e14
lea r9, [rbp + 0x30]
mov r8d, 4
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea r8d, [rdx + 0x54]
lea rcx, [rsp + 0x44]
call fcn.1400ebf40
mov qword [rsp + 0x40], 1
lea rax, [rbp + 0x90]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r15d, eax
mov esi, ebx
mov edx, 0x41
bt r15d, esi
jae 0x1400174f9
lea eax, [rdx + rsi]
movzx ecx, al
mov eax, ecx
sub eax, edx
cdqe
lea r14, [0x140175bc0]
mov r14, qword [r14 + rax*8]
test r14, r14
je 0x1400174f9
mov dword [rsp + 0x30], ebx
lea r13, [r14 + 0x2b1]
lea r8, [r14 + 0x2a8]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, r13
mov dl, cl
mov rcx, qword [0x140175aa8]
call fcn.14000e3e4
mov r12d, eax
mov ebx, esi
and ebx, 0xfff
mov ecx, dword [rsp + 0x44]
shl ecx, 0xc
or ebx, ecx
shl ebx, 4
mov ecx, eax
and ecx, 1
or ebx, ecx
lea rcx, [rbp - 0x40]
call fcn.14002a3fc
nop
mov edx, esi
lea rcx, [rbp - 0x40]
call fcn.14002ad74
xor r8d, r8d
test al, al
je 0x14001735b
lea eax, [r8 + 0x40]
mov edx, 0x10d
mov word [rsp + 0x20], ax
lea r9, [rbp + 0x30]
lea rcx, [rbp - 0x40]
call fcn.140056278
test al, al
je 0x14001734f
mov eax, 0xd01
cmp word [rbp + 0x38], ax
jne 0x14001734f
movzx ecx, byte [rbp + 0x3c]
shr ecx, 1
and ecx, 1
or ecx, 2
add ecx, ecx
mov eax, ebx
and eax, 0xfffffffd
mov ebx, ecx
or ebx, eax
lea rcx, [rbp - 0x40]
call fcn.14002a4cc
xor r8d, r8d
mov eax, dword [rsp + 0x30]
mov ecx, eax
shr eax, 2
and eax, 1
mov edx, ebx
shr edx, 1
and edx, 1
and cl, 2
cmovne edx, eax
shl edx, 3
xor edx, ebx
and edx, 8
xor ebx, edx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x40], 5
mov dword [rsp + 0x48], r8d
mov eax, ebx
mov qword [rsp + 0x68], rax
mov eax, 0x41
add eax, esi
mov word [rbp + 0x90], ax
mov dword [rbp + 0x92], 0x3a
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x104d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
mov dword [rbp + 0x40], 0xf000
neg r12d
sbb ecx, ecx
mov eax, 0x1000
and ecx, eax
add ecx, eax
mov dword [rbp + 0x3c], ecx
lea r9, [rbp + 0x30]
mov r8, rbx
lea edx, [rax + 0x2b]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x40], 1
inc dword [rsp + 0x48]
mov r12d, 0x100
mov dword [rsp + 0x28], r12d
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [r14 + 0x2a8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x40]
mov r8, rbx
mov edx, 0x104c
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
inc dword [rsp + 0x48]
mov dword [rsp + 0x28], r12d
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x40]
mov r8, rbx
mov r13d, 0x104c
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
inc dword [rsp + 0x48]
lea r8, [r14 + 0x2c2]
mov dword [rsp + 0x28], r12d
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x40]
mov r8, rbx
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
inc dword [rsp + 0x48]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.14001a090
lea r9, [rsp + 0x40]
mov r8, rbx
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
inc dword [rsp + 0x44]
lea rcx, [rbp - 0x40]
call fcn.14002a43c
xor ebx, ebx
lea edx, [rbx + 0x41]
inc esi
cmp esi, 0x1a
jl 0x14001727d
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x15
jae 0x140017570
xor edx, edx
lea r8d, [rdx + 0x34]
lea rcx, [rbp + 0x34]
call fcn.1400ebf40
mov dword [rbp + 0x30], 2
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [rbp - 0x50]
sub ebx, dword [rbp - 0x58]
sub ebx, eax
mov ecx, 2
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub ebx, eax
sub ebx, 0xfa
mov dword [rbp + 0x38], ebx
lea r9, [rbp + 0x30]
mov edx, 0x1060
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rbp + 0x40], 2
mov dword [rbp + 0x3c], 2
lea r9, [rbp + 0x30]
xor r8d, r8d
mov edx, 0x102b
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1400e8bc0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret