Function at 0x18010e170
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3c8
movdqa xmmword [rsp + 0x3b0], xmm7
movaps xmmword [rsp + 0x3a0], xmm6
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rsp + 0x448]
mov r12d, dword [rsp + 0x440]
mov r13d, dword [rsp + 0x438]
mov rax, qword [rsp + 0x430]
mov qword [rsp + 0x148], rdx
mov qword [rsp + 0x168], rax
shr rsi, 1
cmp rsi, rax
jae 0x18010e234
cmp r13d, r12d
jae 0x18010e26a
mov r15, qword [rbx]
mov eax, 8
mov qword [rsp + 0x90], rax
lea rsi, [rsp + 0x48]
lea rbx, [rsp + 0x190]
xorps xmm6, xmm6
movdqa xmm7, xmmword [0x1801912a0]
xor eax, eax
mov qword [rsp + 0xe0], rax
xor eax, eax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x130], r14
mov dword [rsp + 0xfc], r12d
jmp 0x18010e3cc
mov rdi, r9
test r8b, r8b
je 0x18010e280
mov eax, dword [0x180221a34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x18010ee17
add rax, 0x110
jmp 0x18010ee1c
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x18010efeb
test rdi, rdi
je 0x18010e1d2
shr rdi, 1
jmp 0x18010ee30
mov rcx, rbx
call fcn.18010f120
mov rdx, qword [rsp + 0x1a0]
mov r8, qword [rsp + 0x190]
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0xc0], rax
lea rax, [rdx + rdx*8]
shl rax, 4
mov qword [r8 + rax], rdi
mov qword [r8 + rax + 8], 0xffffffffffffffff
mov qword [r8 + rax + 0x10], r12
mov rcx, qword [rsp + 0x98]
mov qword [r8 + rax + 0x18], rcx
mov qword [r8 + rax + 0x20], rcx
mov byte [r8 + rax + 0x28], 0
mov ecx, dword [rsp + 0xc8]
mov r9d, dword [rsp + 0xcb]
mov dword [r8 + rax + 0x29], ecx
mov dword [r8 + rax + 0x2c], r9d
mov rcx, qword [rsp + 0xe8]
mov qword [r8 + rax + 0x30], rcx
mov qword [r8 + rax + 0x38], rsi
mov qword [r8 + rax + 0x40], rsi
mov qword [r8 + rax + 0x48], r14
mov qword [r8 + rax + 0x50], 4
mov qword [r8 + rax + 0x58], 4
movdqa xmm0, xmmword [rsp + 0x170]
movdqu xmmword [r8 + rax + 0x60], xmm0
mov rcx, qword [rsp + 0x180]
mov qword [r8 + rax + 0x70], rcx
mov rcx, qword [rsp + 0x140]
mov qword [r8 + rax + 0x78], rcx
mov rcx, qword [rsp + 0x138]
mov qword [r8 + rax + 0x80], rcx
mov byte [r8 + rax + 0x88], bpl
mov ecx, dword [rsp + 0x50]
mov r9d, dword [rsp + 0x53]
mov dword [r8 + rax + 0x8c], r9d
mov qword [rsp + 0x90], r8
mov dword [r8 + rax + 0x89], ecx
inc rdx
mov qword [rsp + 0xe0], rdx
mov r14, qword [rsp + 0x130]
mov r12d, dword [rsp + 0xfc]
lea rsi, [rsp + 0x48]
nop word cs:[rax + rax]
inc r13d
cmp r13d, r12d
je 0x18010ed34
mov eax, dword [r15]
bt eax, r13d
jae 0x18010e3c0
lea edi, [r13 + 0x41]
mov word [rsp + 0x48], di
mov dword [rsp + 0x4a], 0x5c003a
mov word [rsp + 0x4e], 0
mov rcx, rsi
call sub.kernel32.dll_GetDriveTypeW
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x18010e3c0
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.180182690
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x18010e3c0
mov eax, 2
nop
cmp word [rsp + rax*2 + 0x18c], 0
je 0x18010e494
cmp word [rsp + rax*2 + 0x18e], 0
je 0x18010e49a
cmp word [rsp + rax*2 + 0x190], 0
je 0x18010e49d
add rax, 3
cmp rax, 0x107
jne 0x18010e460
mov eax, 0x105
jmp 0x18010e4a9
add rax, 0xfffffffffffffffe
jmp 0x18010e49d
dec rax
cmp rax, 0x106
jae 0x18010f03d
lea rax, [rsp + rax*2]
add rax, 0x190
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rax
mov word [rsp + 0xd8], 0
mov qword [rsp + 0xa0], 1
lea rax, [rsp + 0xa8]
movups xmmword [rax], xmm6
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0xc8]
call fcn.1801103d0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rax
movzx eax, word [rsp + 0x50]
test ax, ax
mov qword [rsp + 0x108], rcx
mov word [rsp + 0x46], ax
je 0x18010e6d1
cmp word [rsp + 0x52], 0
je 0x18010e6dd
cmp word [rsp + 0x54], 0
je 0x18010e6e8
cmp word [rsp + 0x56], 0
je 0x18010e6f3
cmp word [rsp + 0x58], 0
je 0x18010e6fe
cmp word [rsp + 0x5a], 0
je 0x18010e709
cmp word [rsp + 0x5c], 0
je 0x18010e714
cmp word [rsp + 0x5e], 0
je 0x18010e71f
cmp word [rsp + 0x60], 0
je 0x18010e72a
cmp word [rsp + 0x62], 0
je 0x18010e735
cmp word [rsp + 0x64], 0
je 0x18010e740
cmp word [rsp + 0x66], 0
je 0x18010e74b
cmp word [rsp + 0x68], 0
je 0x18010e756
cmp word [rsp + 0x6a], 0
je 0x18010e761
cmp word [rsp + 0x6c], 0
je 0x18010e76c
cmp word [rsp + 0x6e], 0
je 0x18010e774
cmp word [rsp + 0x70], 0
je 0x18010e77c
cmp word [rsp + 0x72], 0
je 0x18010e784
cmp word [rsp + 0x74], 0
je 0x18010e78c
cmp word [rsp + 0x76], 0
je 0x18010e794
cmp word [rsp + 0x78], 0
je 0x18010e79c
cmp word [rsp + 0x7a], 0
je 0x18010e7a4
cmp word [rsp + 0x7c], 0
je 0x18010e7ac
cmp word [rsp + 0x7e], 0
je 0x18010e7b4
cmp word [rsp + 0x80], 0
je 0x18010e7bc
cmp word [rsp + 0x82], 0
je 0x18010e7c4
cmp word [rsp + 0x84], 0
je 0x18010e7cc
cmp word [rsp + 0x86], 0
je 0x18010e7d4
cmp word [rsp + 0x88], 0
je 0x18010e7dc
cmp word [rsp + 0x8a], 0
je 0x18010e7e4
cmp word [rsp + 0x8c], 0
je 0x18010e7ec
cmp word [rsp + 0x8e], 1
mov r15d, 0x20
sbb r15, 0
jmp 0x18010e7f2
mov ebx, 1
xor esi, esi
jmp 0x18010e8a2
mov r15d, 1
jmp 0x18010e7f2
mov r15d, 2
jmp 0x18010e7f2
mov r15d, 3
jmp 0x18010e7f2
mov r15d, 4
jmp 0x18010e7f2
mov r15d, 5
jmp 0x18010e7f2
mov r15d, 6
jmp 0x18010e7f2
mov r15d, 7
jmp 0x18010e7f2
mov r15d, 8
jmp 0x18010e7f2
mov r15d, 9
jmp 0x18010e7f2
mov r15d, 0xa
jmp 0x18010e7f2
mov r15d, 0xb
jmp 0x18010e7f2
mov r15d, 0xc
jmp 0x18010e7f2
mov r15d, 0xd
jmp 0x18010e7f2
mov r15d, 0xe
jmp 0x18010e7f2
mov r15d, 0xf
jmp 0x18010e7f2
mov r15d, 0x10
jmp 0x18010e7f2
mov r15d, 0x11
jmp 0x18010e7f2
mov r15d, 0x12
jmp 0x18010e7f2
mov r15d, 0x13
jmp 0x18010e7f2
mov r15d, 0x14
jmp 0x18010e7f2
mov r15d, 0x15
jmp 0x18010e7f2
mov r15d, 0x16
jmp 0x18010e7f2
mov r15d, 0x17
jmp 0x18010e7f2
mov r15d, 0x18
jmp 0x18010e7f2
mov r15d, 0x19
jmp 0x18010e7f2
mov r15d, 0x1a
jmp 0x18010e7f2
mov r15d, 0x1b
jmp 0x18010e7f2
mov r15d, 0x1c
jmp 0x18010e7f2
mov r15d, 0x1d
jmp 0x18010e7f2
mov r15d, 0x1e
movzx eax, byte [0x180221a30]
mov rax, qword [0x1802219b8]
test rax, rax
jne 0x18010e81b
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18010f041
mov qword [0x1802219b8], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18010f041
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [r15 + rax]
and rcx, rax
cmp rcx, 0x17
jb 0x18010e878
lea rax, [rbx + rcx]
inc rax
lea rdx, [rsp + 0x52]
lea rdx, [rdx + rcx*2]
lea r8, [rsp + 0x50]
cmp r8, rax
setb al
cmp rbx, rdx
jae 0x18010ece9
test al, al
je 0x18010ece9
xor esi, esi
lea rax, [rsp + 0x50]
lea rcx, [rsp + r15*2]
add rcx, 0x50
nop word [rax + rax]
movzx edx, byte [rax]
add rax, 2
mov byte [rbx + rsi], dl
inc rsi
cmp rax, rcx
jne 0x18010e890
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x120], rax
mov word [rsp + 0x128], di
mov dword [rsp + 0x12a], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x18010ec82
mov r15, rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
xor edx, edx
lea r8, [rsp + 0xc8]
lea r9, [rsp + 0xa0]
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x18010ec7d
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x18010ec7d
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x150], 7
mov byte [rsp + 0x158], 0
mov dword [rsp + 0x118], 0
mov qword [rsp + 0x110], 0
mov dword [rsp + 0xbc], 0
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
mov rcx, r15
mov edx, 0x2d1400
lea r8, [rsp + 0x150]
mov r9d, 0xc
call qword [sym.imp.kernel32.dll_DeviceIoControl]
xor edi, edi
cmp byte [rsp + 0x118], 0
sete dil
cmp dword [rsp + 0xbc], 0xc
mov ecx, 2
cmovne rdi, rcx
test eax, eax
cmove rdi, rcx
mov eax, 1
mov qword [rsp + 0xe8], rax
mov r12d, 1
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x18010ea8b
js 0x18010f03d
movzx eax, byte [0x180221a30]
mov rax, qword [0x1802219b8]
test rax, rax
jne 0x18010ea64
call qword [sym.imp.kernel32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x98]
test rax, rax
je 0x18010f061
mov qword [0x1802219b8], rax
mov rcx, rax
xor edx, edx
mov r8, qword [rsp + 0x98]
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r8, qword [rsp + 0x98]
mov r12, rax
test rax, rax
je 0x18010f061
mov rcx, r12
mov rdx, qword [rsp + 0xf0]
call fcn.180181ff0
test rsi, rsi
je 0x18010eaee
js 0x18010f03d
movzx eax, byte [0x180221a30]
mov rax, qword [0x1802219b8]
test rax, rax
jne 0x18010eacf
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18010f070
mov qword [0x1802219b8], rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rsp + 0xe8], rax
test rax, rax
je 0x18010f070
mov rcx, qword [rsp + 0xe8]
mov rdx, rbx
mov r8, rsi
call fcn.180181ff0
movzx eax, byte [0x180221a30]
mov rax, qword [0x1802219b8]
test rax, rax
jne 0x18010eb2a
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18010f050
mov qword [0x1802219b8], rax
mov r8d, 8
mov rcx, rax
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18010f050
mov r14, rax
cmp ebp, 2
sete bpl
mov rax, qword [rsp + 0x48]
mov qword [r14], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x4e]
mov qword [rsp + 0xd0], rax
mov word [rsp + 0xd8], 0
mov qword [rsp + 0xa0], 1
lea rax, [rsp + 0xa8]
movups xmmword [rax], xmm6
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0xc8]
call fcn.1801103d0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x180], rax
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x170], xmm0
mov eax, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa3]
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0xcb], ecx
mov rcx, r15
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp word [rsp + 0x46], 0
je 0x18010ec05
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x108], 0
mov r15, qword [rsp + 0x100]
je 0x18010ec2f
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, qword [rsp + 0xf0]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x198], rax
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x1a0], rdx
cmp rdx, rax
lea rbx, [rsp + 0x190]
je 0x18010e291
mov r8, qword [rsp + 0x90]
jmp 0x18010e2b9
mov rcx, r15
jmp 0x18010ec89
mov rcx, 0xffffffffffffffff
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp word [rsp + 0x46], 0
mov r15, qword [rsp + 0x100]
lea rsi, [rsp + 0x48]
je 0x18010ecb6
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x108], 0
lea rbx, [rsp + 0x190]
je 0x18010e3c0
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, qword [rsp + 0xf0]
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x18010e3c0
inc rcx
mov rsi, rcx
and rsi, 0xfffffffffffffff0
lea rax, [rsp + rsi*2]
add rax, 0x50
xor edx, edx
nop dword [rax]
movdqu xmm0, xmmword [rsp + rdx*2 + 0x50]
movdqu xmm1, xmmword [rsp + rdx*2 + 0x60]
pand xmm0, xmm7
pand xmm1, xmm7
packuswb xmm0, xmm1
movdqu xmmword [rbx + rdx], xmm0
add rdx, 0x10
cmp rsi, rdx
jne 0x18010ed00
cmp rcx, rsi
jne 0x18010e87f
jmp 0x18010e8a2
mov rdi, qword [rsp + 0xe0]
test rdi, rdi
je 0x18010edbc
movzx eax, byte [0x180221a30]
mov rcx, qword [0x1802219b8]
test rcx, rcx
mov rsi, qword [rsp + 0x90]
jne 0x18010ed75
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18010f07f
mov rcx, rax
mov qword [0x1802219b8], rax
mov r8d, 0x28
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18010f07f
mov qword [rax], rsi
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdi
pxor xmm0, xmm0
movdqu xmmword [rax + 0x18], xmm0
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], 1
jmp 0x18010efeb
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
cmp qword [rsp + 0xc0], 0
mov r8, qword [rsp + 0x90]
je 0x18010efeb
mov rcx, qword [0x1802219b8]
xor edx, edx
movaps xmm6, xmmword [rsp + 0x3a0]
movaps xmm7, xmmword [rsp + 0x3b0]
add rsp, 0x3c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
call fcn.180077870
mov rax, qword [rax]
mov rax, qword [rax + 0x210]
shr rdi, 1
cmp rax, rdi
cmova rdi, rax
mov qword [rsp + 0x160], rdi
mov qword [rsp + 0xa0], rsi
xor eax, eax
mov ecx, r12d
sub ecx, r13d
cmovb ecx, eax
cmp rsi, rcx
ja 0x18010f03d
add esi, r13d
lea rax, [rsp + 0x148]
mov qword [rsp + 0x190], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x198], rax
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1a8], rbx
mov dword [rsp + 0x1b0], esi
mov dword [rsp + 0x1b4], r12d
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c0], rcx
mov qword [rsp + 0x1c8], rbx
mov dword [rsp + 0x1d0], r13d
mov dword [rsp + 0x1d4], esi
mov eax, dword [0x180221a34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r8, qword [rax + 0x50]
test r8, r8
jne 0x18010ef23
call fcn.180077870
mov rax, qword [rax]
lea rdx, [rax + 0x80]
mov ecx, dword [0x180221a34]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov r8, qword [rcx + 0x50]
test r8, r8
je 0x18010f00f
cmp qword [r8 + 0x110], rax
jne 0x18010f026
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x190]
xor r9d, r9d
call fcn.18010f1f0
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
test r8, r8
je 0x18010ef6d
mov rcx, qword [rsp + 0x60]
test r9, r9
je 0x18010efdd
mov qword [r8 + 0x18], r9
mov qword [r9 + 0x20], r8
add rcx, rdx
jmp 0x18010efe0
mov qword [r14], r9
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rdx
test rsi, rsi
je 0x18010efeb
mov rbx, qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x18010efa6
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, rsi
call rbx
mov rsi, r14
test r14, r14
je 0x18010efeb
mov r14, qword [rsi + 0x18]
test r14, r14
je 0x18010efb7
mov qword [r14 + 0x20], 0
mov rdi, qword [rsi]
mov rdx, qword [rsi + 0x10]
mov rcx, rdi
call fcn.18010f090
cmp qword [rsi + 8], 0
je 0x18010ef90
mov rcx, qword [0x1802219b8]
xor edx, edx
mov r8, rdi
call rbx
jmp 0x18010ef90
mov rax, r8
mov qword [r14], rsi
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rcx
movaps xmm6, xmmword [rsp + 0x3a0]
movaps xmm7, xmmword [rsp + 0x3b0]
add rsp, 0x3c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x190]
call fcn.18018c2f0
jmp 0x18010ef38
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x190]
call fcn.18018c3e0
jmp 0x18010ef38
ud2
mov ecx, 1
mov rdx, r15
call fcn.180183f50
ud2
mov ecx, 2
mov edx, 8
call fcn.180183f50
ud2
mov ecx, 1
mov rdx, r8
call fcn.180183f50
ud2
mov ecx, 1
mov rdx, rsi
call fcn.180183f50
ud2
mov ecx, 8
mov edx, 0x28
call fcn.180183f50
ud2