Function at 0x100116660
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 [0x100175150]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r13, rcx
xor r15d, r15d
lea rcx, [0x100042760]
mov rdi, r8
mov qword [rsp + 0x60], r8
mov ebx, r15d
lea ebp, [r15 + 1]
call fcn.10011c52c
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 0x10011671e
mov ebp, r15d
lea ebx, [r15 + 0x57]
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x1001169b1
test byte [rcx + 0x1c], 8
je 0x1001169b1
lea edx, [rbx - 0x23]
lea rax, [0x100042798]
mov r9d, ebx
jmp 0x10011699c
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 0x10011675c
movzx eax, word [rdx + r13]
cmp ax, r15w
je 0x10011675c
mov word [rdx], ax
add rdx, 2
sub rcx, rbp
jne 0x100116739
cmp rcx, r15
jne 0x10011676a
sub rdx, 2
mov edi, 0x8007007a
cmp edi, r15d
mov word [rdx], r15w
jge 0x100116809
mov ecx, edi
mov ebp, r15d
call fcn.10011c5d4
mov ebx, eax
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x1001169b1
test byte [rcx + 0x1c], 8
je 0x1001169b1
lea rdx, [rsp + 0x70]
mov r9d, r15d
lea rax, [rsi + 0x7ffffef9]
cmp rax, r15
je 0x1001167d0
movzx eax, word [rdx + r13]
cmp ax, r15w
je 0x1001167d0
mov word [rdx], ax
add rdx, 2
sub rsi, 1
jne 0x1001167ac
cmp rsi, r15
jne 0x1001167df
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], r15w
mov rcx, qword [rcx + 0x10]
lea rax, [0x1000427b0]
lea r8, [0x1000038e0]
mov edx, 0x35
mov qword [rsp + 0x20], rax
call fcn.1001062ec
jmp 0x1001169b1
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r15d
ja 0x10011686f
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100176368]
lea rdi, [0x100176368]
cmp rax, rdi
je 0x1001169b1
test byte [rax + 0x1c], 8
je 0x1001169b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100176368]
mov edx, 0x36
mov r9d, eax
lea rax, [0x1000427f0]
jmp 0x10011699c
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x70], 0x5c
jne 0x100116880
mov word [rsp + rax*2 + 0x70], r15w
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov r8d, 2
mov dl, bpl
call fcn.100116300
cmp eax, r15d
jne 0x1001168fc
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100176368]
lea rdi, [0x100176368]
cmp rax, rdi
je 0x1001168f2
test byte [rax + 0x1c], 8
je 0x1001168f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100176368]
lea r8, [0x1000038e0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x100042800]
mov edx, 0x37
mov qword [rsp + 0x20], rax
call fcn.1001062ec
mov r12, qword [rsp + 0x48]
jmp 0x1001169b1
mov r12, qword [rsp + 0x48]
cmp r12, r15
je 0x100116cdb
mov ecx, 0x10
call fcn.10011c9e8
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, r15
jne 0x100116953
mov r9d, 0xe
mov ebp, r15d
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x1001169b1
test byte [rcx + 0x1c], 8
je 0x1001169b1
lea edx, [r9 + 0x2a]
lea rax, [0x100042738]
jmp 0x10011699c
mov dword [rax + 0xc], r15d
mov ecx, dword [r12 + 4]
shl ecx, 5
call fcn.10011c9e8
mov qword [rsi], rax
cmp rax, r15
jne 0x1001169b9
mov r9d, 0xe
mov ebp, r15d
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x1001169b1
test byte [rcx + 0x1c], 8
je 0x1001169b1
lea edx, [r9 + 0x2b]
lea rax, [0x100042860]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000038e0]
mov qword [rsp + 0x20], rax
call fcn.1001062ec
mov rdi, rbp
jmp 0x100116cde
mov eax, dword [r12 + 4]
mov dword [rsp + 0x48], r15d
mov dword [rsi + 8], eax
cmp dword [r12 + 4], r15d
jbe 0x100116b86
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 0x100116a70
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 0x100116a70
mov rcx, qword [r15]
mov rdx, r13
call fcn.10011cab8
mov r14, rax
test rax, rax
jne 0x100116ae4
lea r9d, [rax + 0xe]
xor ebp, ebp
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x100116caa
test byte [rcx + 0x1c], 8
je 0x100116caa
lea edx, [rax + 0x3c]
lea rax, [0x1000428c0]
jmp 0x100116c95
lea rcx, [0x100042888]
mov r8d, 8
mov rdx, r13
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x100116ad0
lea rcx, [0x1000428a0]
mov rdx, r13
call fcn.10011cab8
mov r14, rax
test rax, rax
jne 0x100116ae4
lea r9d, [rax + 0xe]
xor ebp, ebp
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x100116caa
test byte [rcx + 0x1c], 8
je 0x100116caa
lea edx, [rax + 0x3a]
jmp 0x100116a64
mov rcx, r13
call fcn.10011ca28
mov r14, rax
test rax, rax
je 0x100116cb1
mov r13d, dword [rsp + 0x48]
mov rcx, r14
mov rdx, r13
shl rdx, 5
add rdx, qword [rsi]
lea r8, [rdx + 8]
call fcn.100120000
test eax, eax
je 0x100116c1d
mov rcx, qword [rsi]
mov rdi, qword [rsp + 0x58]
lea rdx, [0x1000021a0]
mov rcx, qword [rdi + rcx]
call fcn.10011cab8
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100116bb1
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 0x1001169db
xor r15d, r15d
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
lea r9, [0x1001160d4]
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 0x100116caa
xor ebp, ebp
lea ebx, [rbp + 0x32]
mov r10, qword [0x100176368]
lea rdi, [0x100176368]
cmp r10, rdi
je 0x100116caa
test byte [r10 + 0x1c], 8
mov rdi, qword [rsp + 0x40]
je 0x100116cde
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, [0x1000420c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.10010cc00
jmp 0x100116cde
mov rax, qword [0x100176368]
lea rdi, [0x100176368]
cmp rax, rdi
je 0x100116c5f
test byte [rax + 0x1c], 2
je 0x100116c5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100176368]
lea r8, [0x1000038e0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r9, r14
mov dword [rsp + 0x20], eax
call fcn.1001064e0
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100176368]
cmp rax, rdi
je 0x100116caa
test byte [rax + 0x1c], 8
je 0x100116caa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100176368]
lea edx, [rbp + 0x3e]
mov r9d, eax
lea rax, [0x10003fe78]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000038e0]
mov qword [rsp + 0x20], rax
call fcn.1001062ec
mov rdi, qword [rsp + 0x40]
jmp 0x100116cde
xor ebp, ebp
lea r9d, [rbp + 0xe]
mov ebx, r9d
mov rcx, qword [0x100176368]
lea rdi, [0x100176368]
cmp rcx, rdi
je 0x100116caa
test byte [rcx + 0x1c], 8
je 0x100116caa
lea edx, [rbp + 0x3b]
jmp 0x100116a64
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rsp + 0x50]
call fcn.100116244
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [0x100042760]
call fcn.10011c56c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1001303c0
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