Function at 0x100116a70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x100176150]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r13, rcx
xor r15d, r15d
lea rcx, [0x1000428c0]
mov rdi, r8
mov qword [rsp + 0x60], r8
mov ebx, r15d
lea ebp, [r15 + 1]
call fcn.10011c978
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x50], r15
mov r12, r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov r14, r15
mov word [rsp + 0x70], r15w
call sub.msvcrt.dll_memset
cmp rdi, r15
jne 0x100116b2e
mov ebp, r15d
lea ebx, [r15 + 0x57]
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x100116dc1
test byte [rcx + 0x1c], 8
je 0x100116dc1
lea edx, [rbx - 0x23]
lea rax, [0x1000428f8]
mov r9d, ebx
jmp 0x100116dac
lea rax, [rsp + 0x70]
mov esi, 0x105
mov qword [rdi], r15
lea rdx, [rsp + 0x70]
mov edi, r15d
sub r13, rax
mov rcx, rsi
lea rax, [rcx + 0x7ffffef9]
cmp rax, r15
je 0x100116b6c
movzx eax, word [rdx + r13]
cmp ax, r15w
je 0x100116b6c
mov word [rdx], ax
add rdx, 2
sub rcx, rbp
jne 0x100116b49
cmp rcx, r15
jne 0x100116b7a
sub rdx, 2
mov edi, 0x8007007a
cmp edi, r15d
mov word [rdx], r15w
jge 0x100116c19
mov ecx, edi
mov ebp, r15d
call fcn.10011ca20
mov ebx, eax
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x100116dc1
test byte [rcx + 0x1c], 8
je 0x100116dc1
lea rdx, [rsp + 0x70]
mov r9d, r15d
lea rax, [rsi + 0x7ffffef9]
cmp rax, r15
je 0x100116be0
movzx eax, word [rdx + r13]
cmp ax, r15w
je 0x100116be0
mov word [rdx], ax
add rdx, 2
sub rsi, 1
jne 0x100116bbc
cmp rsi, r15
jne 0x100116bef
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], r15w
mov rcx, qword [rcx + 0x10]
lea rax, [0x100042910]
lea r8, [0x1000038e0]
mov edx, 0x35
mov qword [rsp + 0x20], rax
call fcn.100106904
jmp 0x100116dc1
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r15d
ja 0x100116c7f
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100177368]
lea rdi, [0x100177368]
cmp rax, rdi
je 0x100116dc1
test byte [rax + 0x1c], 8
je 0x100116dc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
mov edx, 0x36
mov r9d, eax
lea rax, [0x100042950]
jmp 0x100116dac
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x70], 0x5c
jne 0x100116c90
mov word [rsp + rax*2 + 0x70], r15w
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov r8d, 2
mov dl, bpl
call fcn.100116710
cmp eax, r15d
jne 0x100116d0c
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100177368]
lea rdi, [0x100177368]
cmp rax, rdi
je 0x100116d02
test byte [rax + 0x1c], 8
je 0x100116d02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
lea r8, [0x1000038e0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x100042960]
mov edx, 0x37
mov qword [rsp + 0x20], rax
call fcn.100106904
mov r12, qword [rsp + 0x48]
jmp 0x100116dc1
mov r12, qword [rsp + 0x48]
cmp r12, r15
je 0x1001170eb
mov ecx, 0x10
call fcn.10011ce34
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, r15
jne 0x100116d63
mov r9d, 0xe
mov ebp, r15d
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x100116dc1
test byte [rcx + 0x1c], 8
je 0x100116dc1
lea edx, [r9 + 0x2a]
lea rax, [0x100042898]
jmp 0x100116dac
mov dword [rax + 0xc], r15d
mov ecx, dword [r12 + 4]
shl ecx, 5
call fcn.10011ce34
mov qword [rsi], rax
cmp rax, r15
jne 0x100116dc9
mov r9d, 0xe
mov ebp, r15d
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x100116dc1
test byte [rcx + 0x1c], 8
je 0x100116dc1
lea edx, [r9 + 0x2b]
lea rax, [0x1000429c0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000038e0]
mov qword [rsp + 0x20], rax
call fcn.100106904
mov rdi, rbp
jmp 0x1001170ee
mov eax, dword [r12 + 4]
mov dword [rsp + 0x48], r15d
mov dword [rsi + 8], eax
cmp dword [r12 + 4], r15d
jbe 0x100116f96
mov qword [rsp + 0x58], r15
lea r15, [r12 + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x40], rbx
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdx, qword [r15]
mov r13, qword [r15 + 0x10]
test rdx, rdx
je 0x100116e80
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x100116e80
mov rcx, qword [r15]
mov rdx, r13
call fcn.10011cf04
mov r14, rax
test rax, rax
jne 0x100116ef4
lea r9d, [rax + 0xe]
xor ebp, ebp
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001170ba
test byte [rcx + 0x1c], 8
je 0x1001170ba
lea edx, [rax + 0x3c]
lea rax, [0x100042a20]
jmp 0x1001170a5
lea rcx, [0x1000429e8]
mov r8d, 8
mov rdx, r13
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x100116ee0
lea rcx, [0x100042a00]
mov rdx, r13
call fcn.10011cf04
mov r14, rax
test rax, rax
jne 0x100116ef4
lea r9d, [rax + 0xe]
xor ebp, ebp
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001170ba
test byte [rcx + 0x1c], 8
je 0x1001170ba
lea edx, [rax + 0x3a]
jmp 0x100116e74
mov rcx, r13
call fcn.10011ce74
mov r14, rax
test rax, rax
je 0x1001170c1
mov r13d, dword [rsp + 0x48]
mov rcx, r14
mov rdx, r13
shl rdx, 5
add rdx, qword [rsi]
lea r8, [rdx + 8]
call fcn.10012044c
test eax, eax
je 0x10011702d
mov rcx, qword [rsi]
mov rdi, qword [rsp + 0x58]
lea rdx, [0x1000021a0]
mov rcx, qword [rdi + rcx]
call fcn.10011cf04
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100116fc1
mov rax, qword [rsi]
inc r13d
add r15, 0x40
mov rcx, qword [rdi + rax]
mov eax, 0x3f
add rdi, 0x20
mov word [rcx + 2], ax
mov rax, qword [rsi]
mov qword [rsp + 0x58], rdi
mov dword [rdi + rax - 0xc], 0x200000
mov eax, dword [r15 - 0x68]
mov rcx, qword [rsi]
mov dword [rdi + rcx - 0x10], eax
mov eax, dword [r15 - 0x4c]
mov rcx, qword [rsi]
mov dword [rdi + rcx - 8], eax
mov dword [rsp + 0x48], r13d
cmp r13d, dword [r12 + 4]
jb 0x100116deb
xor r15d, r15d
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
lea r9, [0x1001164e4]
mov r8d, 0x20
call qword [sym.imp.msvcrt.dll_qsort]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r15
mov qword [rdx], rsi
jmp 0x1001170ba
xor ebp, ebp
lea ebx, [rbp + 0x32]
mov r10, qword [0x100177368]
lea rdi, [0x100177368]
cmp r10, rdi
je 0x1001170ba
test byte [r10 + 0x1c], 8
mov rdi, qword [rsp + 0x40]
je 0x1001170ee
mov rax, qword [rsi]
mov rcx, r13
lea edx, [rbp + 0x3f]
shl rcx, 5
lea r8, [0x1000038e0]
mov r9d, ebx
mov rax, qword [rcx + rax + 8]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [0x100042220]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.10010d030
jmp 0x1001170ee
mov rax, qword [0x100177368]
lea rdi, [0x100177368]
cmp rax, rdi
je 0x10011706f
test byte [rax + 0x1c], 2
je 0x10011706f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
lea r8, [0x1000038e0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.100109c00
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100177368]
cmp rax, rdi
je 0x1001170ba
test byte [rax + 0x1c], 8
je 0x1001170ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
lea edx, [rbp + 0x3e]
mov r9d, eax
lea rax, [0x10003ffd8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000038e0]
mov qword [rsp + 0x20], rax
call fcn.100106904
mov rdi, qword [rsp + 0x40]
jmp 0x1001170ee
xor ebp, ebp
lea r9d, [rbp + 0xe]
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001170ba
test byte [rcx + 0x1c], 8
je 0x1001170ba
lea edx, [rbp + 0x3b]
jmp 0x100116e74
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rsp + 0x50]
call fcn.100116654
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [0x1000428c0]
call fcn.10011c9b8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100130830
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret