Function at 0x180109840
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 0x180109904
cmp r13d, r12d
jae 0x18010993a
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 [0x18018bde0]
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 0x180109a9c
mov rdi, r9
test r8b, r8b
je 0x180109950
mov eax, dword [0x1802199d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x18010a4c0
add rax, 0x110
jmp 0x18010a4c5
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x18010a688
test rdi, rdi
je 0x1801098a2
shr rdi, 1
jmp 0x18010a4d9
mov rcx, rbx
call fcn.18010a7c0
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 0x18010a3e4
mov eax, dword [r15]
bt eax, r13d
jae 0x180109a90
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
lea eax, [rbp - 4]
cmp eax, 0xfffffffe
jb 0x180109a90
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.180171550
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 0x180109a90
mov eax, 2
nop
cmp word [rsp + rax*2 + 0x18c], 0
je 0x180109b64
cmp word [rsp + rax*2 + 0x18e], 0
je 0x180109b6a
cmp word [rsp + rax*2 + 0x190], 0
je 0x180109b6d
add rax, 3
cmp rax, 0x107
jne 0x180109b30
mov eax, 0x105
jmp 0x180109b79
add rax, 0xfffffffffffffffe
jmp 0x180109b6d
dec rax
cmp rax, 0x106
jae 0x18010a6da
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.18010bad0
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 0x180109da1
cmp word [rsp + 0x52], 0
je 0x180109dad
cmp word [rsp + 0x54], 0
je 0x180109db8
cmp word [rsp + 0x56], 0
je 0x180109dc3
cmp word [rsp + 0x58], 0
je 0x180109dce
cmp word [rsp + 0x5a], 0
je 0x180109dd9
cmp word [rsp + 0x5c], 0
je 0x180109de4
cmp word [rsp + 0x5e], 0
je 0x180109def
cmp word [rsp + 0x60], 0
je 0x180109dfa
cmp word [rsp + 0x62], 0
je 0x180109e05
cmp word [rsp + 0x64], 0
je 0x180109e10
cmp word [rsp + 0x66], 0
je 0x180109e1b
cmp word [rsp + 0x68], 0
je 0x180109e26
cmp word [rsp + 0x6a], 0
je 0x180109e31
cmp word [rsp + 0x6c], 0
je 0x180109e3c
cmp word [rsp + 0x6e], 0
je 0x180109e44
cmp word [rsp + 0x70], 0
je 0x180109e4c
cmp word [rsp + 0x72], 0
je 0x180109e54
cmp word [rsp + 0x74], 0
je 0x180109e5c
cmp word [rsp + 0x76], 0
je 0x180109e64
cmp word [rsp + 0x78], 0
je 0x180109e6c
cmp word [rsp + 0x7a], 0
je 0x180109e74
cmp word [rsp + 0x7c], 0
je 0x180109e7c
cmp word [rsp + 0x7e], 0
je 0x180109e84
cmp word [rsp + 0x80], 0
je 0x180109e8c
cmp word [rsp + 0x82], 0
je 0x180109e94
cmp word [rsp + 0x84], 0
je 0x180109e9c
cmp word [rsp + 0x86], 0
je 0x180109ea4
cmp word [rsp + 0x88], 0
je 0x180109eac
cmp word [rsp + 0x8a], 0
je 0x180109eb4
cmp word [rsp + 0x8c], 0
je 0x180109ebc
cmp word [rsp + 0x8e], 1
mov r15d, 0x20
sbb r15, 0
jmp 0x180109ec2
mov ebx, 1
xor esi, esi
jmp 0x180109f62
mov r15d, 1
jmp 0x180109ec2
mov r15d, 2
jmp 0x180109ec2
mov r15d, 3
jmp 0x180109ec2
mov r15d, 4
jmp 0x180109ec2
mov r15d, 5
jmp 0x180109ec2
mov r15d, 6
jmp 0x180109ec2
mov r15d, 7
jmp 0x180109ec2
mov r15d, 8
jmp 0x180109ec2
mov r15d, 9
jmp 0x180109ec2
mov r15d, 0xa
jmp 0x180109ec2
mov r15d, 0xb
jmp 0x180109ec2
mov r15d, 0xc
jmp 0x180109ec2
mov r15d, 0xd
jmp 0x180109ec2
mov r15d, 0xe
jmp 0x180109ec2
mov r15d, 0xf
jmp 0x180109ec2
mov r15d, 0x10
jmp 0x180109ec2
mov r15d, 0x11
jmp 0x180109ec2
mov r15d, 0x12
jmp 0x180109ec2
mov r15d, 0x13
jmp 0x180109ec2
mov r15d, 0x14
jmp 0x180109ec2
mov r15d, 0x15
jmp 0x180109ec2
mov r15d, 0x16
jmp 0x180109ec2
mov r15d, 0x17
jmp 0x180109ec2
mov r15d, 0x18
jmp 0x180109ec2
mov r15d, 0x19
jmp 0x180109ec2
mov r15d, 0x1a
jmp 0x180109ec2
mov r15d, 0x1b
jmp 0x180109ec2
mov r15d, 0x1c
jmp 0x180109ec2
mov r15d, 0x1d
jmp 0x180109ec2
mov r15d, 0x1e
mov rax, qword [0x180219958]
test rax, rax
jne 0x180109ee4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a6de
mov qword [0x180219958], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010a6de
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [r15 + rax]
and rcx, rax
cmp rcx, 0x17
jb 0x180109f41
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 0x18010a394
test al, al
je 0x18010a394
xor esi, esi
lea rax, [rsp + 0x50]
lea rcx, [rsp + r15*2]
add rcx, 0x50
movzx edx, byte [rax]
add rax, 2
mov byte [rbx + rsi], dl
inc rsi
cmp rax, rcx
jne 0x180109f50
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 0x18010a32d
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 0x18010a328
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x18010a328
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 0x18010a144
js 0x18010a6da
mov rax, qword [0x180219958]
test rax, rax
jne 0x18010a11d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x98]
test rax, rax
je 0x18010a6fe
mov qword [0x180219958], 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 0x18010a6fe
mov rcx, r12
mov rdx, qword [rsp + 0xf0]
call fcn.180170ea0
test rsi, rsi
je 0x18010a1a0
js 0x18010a6da
mov rax, qword [0x180219958]
test rax, rax
jne 0x18010a181
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a70d
mov qword [0x180219958], 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 0x18010a70d
mov rcx, qword [rsp + 0xe8]
mov rdx, rbx
mov r8, rsi
call fcn.180170ea0
mov rax, qword [0x180219958]
test rax, rax
jne 0x18010a1d5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a6ed
mov qword [0x180219958], rax
mov r8d, 8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010a6ed
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.18010bad0
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 0x18010a2b0
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x108], 0
mov r15, qword [rsp + 0x100]
je 0x18010a2da
mov rcx, qword [0x180219958]
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 0x180109961
mov r8, qword [rsp + 0x90]
jmp 0x180109989
mov rcx, r15
jmp 0x18010a334
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 0x18010a361
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x108], 0
lea rbx, [rsp + 0x190]
je 0x180109a90
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180109a90
inc rcx
mov rsi, rcx
and rsi, 0xfffffffffffffff0
lea rax, [rsp + rsi*2]
add rax, 0x50
xor edx, edx
nop dword [rax + 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 0x18010a3b0
cmp rcx, rsi
jne 0x180109f48
jmp 0x180109f62
mov rdi, qword [rsp + 0xe0]
test rdi, rdi
je 0x18010a465
mov rcx, qword [0x180219958]
test rcx, rcx
mov rsi, qword [rsp + 0x90]
jne 0x18010a41e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a71c
mov rcx, rax
mov qword [0x180219958], rax
mov r8d, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010a71c
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 0x18010a688
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
cmp qword [rsp + 0xc0], 0
mov r8, qword [rsp + 0x90]
je 0x18010a688
mov rcx, qword [0x180219958]
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.180075650
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 0x18010a6da
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 [0x1802199d0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r8, qword [rax + 0x50]
test r8, r8
jne 0x18010a5cc
call fcn.180075650
mov rax, qword [rax]
lea rdx, [rax + 0x80]
mov ecx, dword [0x1802199d0]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov r8, qword [rcx + 0x50]
test r8, r8
je 0x18010a6ac
cmp qword [r8 + 0x110], rax
jne 0x18010a6c3
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x190]
xor r9d, r9d
call fcn.18010a890
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 0x18010a616
mov rcx, qword [rsp + 0x60]
test r9, r9
je 0x18010a67a
mov qword [r8 + 0x18], r9
mov qword [r9 + 0x20], r8
add rcx, rdx
jmp 0x18010a67d
mov qword [r14], r9
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rdx
test rsi, rsi
je 0x18010a688
mov rdi, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010a646
mov rcx, qword [0x180219958]
xor edx, edx
mov r8, rsi
call rdi
mov rsi, rbx
test rbx, rbx
je 0x18010a688
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x18010a657
mov qword [rbx + 0x20], 0
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x10]
call fcn.18010a730
cmp qword [rsi + 8], 0
je 0x18010a630
mov r8, qword [rsi]
mov rcx, qword [0x180219958]
xor edx, edx
call rdi
jmp 0x18010a630
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.180186b30
jmp 0x18010a5e1
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x190]
call fcn.180186c20
jmp 0x18010a5e1
ud2
mov ecx, 1
mov rdx, r15
call fcn.18017ea70
ud2
mov ecx, 2
mov edx, 8
call fcn.18017ea70
ud2
mov ecx, 1
mov rdx, r8
call fcn.18017ea70
ud2
mov ecx, 1
mov rdx, rsi
call fcn.18017ea70
ud2
mov ecx, 8
mov edx, 0x28
call fcn.18017ea70
ud2