Function at 0x180109600
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 0x1801096c4
cmp r13d, r12d
jae 0x1801096fa
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 [0x18018cde0]
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 0x18010985c
mov rdi, r9
test r8b, r8b
je 0x180109710
mov eax, dword [0x18021a9d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x18010a280
add rax, 0x110
jmp 0x18010a285
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x18010a448
test rdi, rdi
je 0x180109662
shr rdi, 1
jmp 0x18010a299
mov rcx, rbx
call fcn.18010a580
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 0x18010a1a4
mov eax, dword [r15]
bt eax, r13d
jae 0x180109850
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 0x180109850
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call fcn.1801723c0
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 0x180109850
mov eax, 2
nop
cmp word [rsp + rax*2 + 0x18c], 0
je 0x180109924
cmp word [rsp + rax*2 + 0x18e], 0
je 0x18010992a
cmp word [rsp + rax*2 + 0x190], 0
je 0x18010992d
add rax, 3
cmp rax, 0x107
jne 0x1801098f0
mov eax, 0x105
jmp 0x180109939
add rax, 0xfffffffffffffffe
jmp 0x18010992d
dec rax
cmp rax, 0x106
jae 0x18010a49a
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.18010bd90
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 0x180109b61
cmp word [rsp + 0x52], 0
je 0x180109b6d
cmp word [rsp + 0x54], 0
je 0x180109b78
cmp word [rsp + 0x56], 0
je 0x180109b83
cmp word [rsp + 0x58], 0
je 0x180109b8e
cmp word [rsp + 0x5a], 0
je 0x180109b99
cmp word [rsp + 0x5c], 0
je 0x180109ba4
cmp word [rsp + 0x5e], 0
je 0x180109baf
cmp word [rsp + 0x60], 0
je 0x180109bba
cmp word [rsp + 0x62], 0
je 0x180109bc5
cmp word [rsp + 0x64], 0
je 0x180109bd0
cmp word [rsp + 0x66], 0
je 0x180109bdb
cmp word [rsp + 0x68], 0
je 0x180109be6
cmp word [rsp + 0x6a], 0
je 0x180109bf1
cmp word [rsp + 0x6c], 0
je 0x180109bfc
cmp word [rsp + 0x6e], 0
je 0x180109c04
cmp word [rsp + 0x70], 0
je 0x180109c0c
cmp word [rsp + 0x72], 0
je 0x180109c14
cmp word [rsp + 0x74], 0
je 0x180109c1c
cmp word [rsp + 0x76], 0
je 0x180109c24
cmp word [rsp + 0x78], 0
je 0x180109c2c
cmp word [rsp + 0x7a], 0
je 0x180109c34
cmp word [rsp + 0x7c], 0
je 0x180109c3c
cmp word [rsp + 0x7e], 0
je 0x180109c44
cmp word [rsp + 0x80], 0
je 0x180109c4c
cmp word [rsp + 0x82], 0
je 0x180109c54
cmp word [rsp + 0x84], 0
je 0x180109c5c
cmp word [rsp + 0x86], 0
je 0x180109c64
cmp word [rsp + 0x88], 0
je 0x180109c6c
cmp word [rsp + 0x8a], 0
je 0x180109c74
cmp word [rsp + 0x8c], 0
je 0x180109c7c
cmp word [rsp + 0x8e], 1
mov r15d, 0x20
sbb r15, 0
jmp 0x180109c82
mov ebx, 1
xor esi, esi
jmp 0x180109d22
mov r15d, 1
jmp 0x180109c82
mov r15d, 2
jmp 0x180109c82
mov r15d, 3
jmp 0x180109c82
mov r15d, 4
jmp 0x180109c82
mov r15d, 5
jmp 0x180109c82
mov r15d, 6
jmp 0x180109c82
mov r15d, 7
jmp 0x180109c82
mov r15d, 8
jmp 0x180109c82
mov r15d, 9
jmp 0x180109c82
mov r15d, 0xa
jmp 0x180109c82
mov r15d, 0xb
jmp 0x180109c82
mov r15d, 0xc
jmp 0x180109c82
mov r15d, 0xd
jmp 0x180109c82
mov r15d, 0xe
jmp 0x180109c82
mov r15d, 0xf
jmp 0x180109c82
mov r15d, 0x10
jmp 0x180109c82
mov r15d, 0x11
jmp 0x180109c82
mov r15d, 0x12
jmp 0x180109c82
mov r15d, 0x13
jmp 0x180109c82
mov r15d, 0x14
jmp 0x180109c82
mov r15d, 0x15
jmp 0x180109c82
mov r15d, 0x16
jmp 0x180109c82
mov r15d, 0x17
jmp 0x180109c82
mov r15d, 0x18
jmp 0x180109c82
mov r15d, 0x19
jmp 0x180109c82
mov r15d, 0x1a
jmp 0x180109c82
mov r15d, 0x1b
jmp 0x180109c82
mov r15d, 0x1c
jmp 0x180109c82
mov r15d, 0x1d
jmp 0x180109c82
mov r15d, 0x1e
mov rax, qword [0x18021a960]
test rax, rax
jne 0x180109ca4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a49e
mov qword [0x18021a960], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010a49e
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [r15 + rax]
and rcx, rax
cmp rcx, 0x17
jb 0x180109d01
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 0x18010a154
test al, al
je 0x18010a154
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 0x180109d10
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 0x18010a0ed
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 0x18010a0e8
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x18010a0e8
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 0x180109f04
js 0x18010a49a
mov rax, qword [0x18021a960]
test rax, rax
jne 0x180109edd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x98]
test rax, rax
je 0x18010a4be
mov qword [0x18021a960], 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 0x18010a4be
mov rcx, r12
mov rdx, qword [rsp + 0xf0]
call fcn.180171d20
test rsi, rsi
je 0x180109f60
js 0x18010a49a
mov rax, qword [0x18021a960]
test rax, rax
jne 0x180109f41
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a4cd
mov qword [0x18021a960], 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 0x18010a4cd
mov rcx, qword [rsp + 0xe8]
mov rdx, rbx
mov r8, rsi
call fcn.180171d20
mov rax, qword [0x18021a960]
test rax, rax
jne 0x180109f95
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a4ad
mov qword [0x18021a960], rax
mov r8d, 8
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010a4ad
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.18010bd90
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 0x18010a070
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x108], 0
mov r15, qword [rsp + 0x100]
je 0x18010a09a
mov rcx, qword [0x18021a960]
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 0x180109721
mov r8, qword [rsp + 0x90]
jmp 0x180109749
mov rcx, r15
jmp 0x18010a0f4
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 0x18010a121
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x108], 0
lea rbx, [rsp + 0x190]
je 0x180109850
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180109850
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 0x18010a170
cmp rcx, rsi
jne 0x180109d08
jmp 0x180109d22
mov rdi, qword [rsp + 0xe0]
test rdi, rdi
je 0x18010a225
mov rcx, qword [0x18021a960]
test rcx, rcx
mov rsi, qword [rsp + 0x90]
jne 0x18010a1de
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010a4dc
mov rcx, rax
mov qword [0x18021a960], rax
mov r8d, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010a4dc
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 0x18010a448
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
cmp qword [rsp + 0xc0], 0
mov r8, qword [rsp + 0x90]
je 0x18010a448
mov rcx, qword [0x18021a960]
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.180075750
mov rax, qword [rax]
mov rax, qword [rax + 0x1f0]
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 0x18010a49a
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 [0x18021a9d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov r8, qword [rax + 0x50]
test r8, r8
jne 0x18010a38c
call fcn.180075750
mov rax, qword [rax]
lea rdx, [rax + 0x80]
mov ecx, dword [0x18021a9d8]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov r8, qword [rcx + 0x50]
test r8, r8
je 0x18010a46c
cmp qword [r8 + 0x110], rax
jne 0x18010a483
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x190]
xor r9d, r9d
call fcn.18010a650
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 0x18010a3d6
mov rcx, qword [rsp + 0x60]
test r9, r9
je 0x18010a43a
mov qword [r8 + 0x18], r9
mov qword [r9 + 0x20], r8
add rcx, rdx
jmp 0x18010a43d
mov qword [r14], r9
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rdx
test rsi, rsi
je 0x18010a448
mov rdi, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010a406
mov rcx, qword [0x18021a960]
xor edx, edx
mov r8, rsi
call rdi
mov rsi, rbx
test rbx, rbx
je 0x18010a448
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x18010a417
mov qword [rbx + 0x20], 0
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x10]
call fcn.18010a4f0
cmp qword [rsi + 8], 0
je 0x18010a3f0
mov r8, qword [rsi]
mov rcx, qword [0x18021a960]
xor edx, edx
call rdi
jmp 0x18010a3f0
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.180188290
jmp 0x18010a3a1
lea rcx, [rsp + 0x50]
lea r9, [rsp + 0x190]
call fcn.180188380
jmp 0x18010a3a1
ud2
mov ecx, 1
mov rdx, r15
call fcn.18017f950
ud2
mov ecx, 2
mov edx, 8
call fcn.18017f950
ud2
mov ecx, 1
mov rdx, r8
call fcn.18017f950
ud2
mov ecx, 1
mov rdx, rsi
call fcn.18017f950
ud2
mov ecx, 8
mov edx, 0x28
call fcn.18017f950
ud2