Function at 0x100117068
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, [0x100042a20]
mov rdi, r8
mov qword [rsp + 0x60], r8
mov ebx, r15d
lea ebp, [r15 + 1]
call fcn.10011cf34
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 0x100117126
mov ebp, r15d
lea ebx, [r15 + 0x57]
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001173b9
test byte [rcx + 0x1c], 8
je 0x1001173b9
lea edx, [rbx - 0x23]
lea rax, [0x100042a58]
mov r9d, ebx
jmp 0x1001173a4
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 0x100117164
movzx eax, word [rdx + r13]
cmp ax, r15w
je 0x100117164
mov word [rdx], ax
add rdx, 2
sub rcx, rbp
jne 0x100117141
cmp rcx, r15
jne 0x100117172
sub rdx, 2
mov edi, 0x8007007a
cmp edi, r15d
mov word [rdx], r15w
jge 0x100117211
mov ecx, edi
mov ebp, r15d
call fcn.10011cfdc
mov ebx, eax
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001173b9
test byte [rcx + 0x1c], 8
je 0x1001173b9
lea rdx, [rsp + 0x70]
mov r9d, r15d
lea rax, [rsi + 0x7ffffef9]
cmp rax, r15
je 0x1001171d8
movzx eax, word [rdx + r13]
cmp ax, r15w
je 0x1001171d8
mov word [rdx], ax
add rdx, 2
sub rsi, 1
jne 0x1001171b4
cmp rsi, r15
jne 0x1001171e7
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], r15w
mov rcx, qword [rcx + 0x10]
lea rax, [0x100042a70]
lea r8, [0x1000038e0]
mov edx, 0x35
mov qword [rsp + 0x20], rax
call fcn.100106f14
jmp 0x1001173b9
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r15d
ja 0x100117277
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100177368]
lea rdi, [0x100177368]
cmp rax, rdi
je 0x1001173b9
test byte [rax + 0x1c], 8
je 0x1001173b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
mov edx, AtlModuleAddTermFunc
mov r9d, eax
lea rax, [0x100042ab0]
jmp 0x1001173a4
lea eax, [rcx - 1]
cmp word [rsp + rax*2 + 0x70], 0x5c
jne 0x100117288
mov word [rsp + rax*2 + 0x70], r15w
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov r8d, 2
mov dl, bpl
call fcn.100116d08
cmp eax, r15d
jne 0x100117304
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100177368]
lea rdi, [0x100177368]
cmp rax, rdi
je 0x1001172fa
test byte [rax + 0x1c], 8
je 0x1001172fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
lea r8, [0x1000038e0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x100042ac0]
mov edx, AtlModuleAddTermFunc
mov qword [rsp + 0x20], rax
call fcn.100106f14
mov r12, qword [rsp + 0x48]
jmp 0x1001173b9
mov r12, qword [rsp + 0x48]
cmp r12, r15
je 0x1001176e3
mov ecx, reloc.ATL.DLL_AtlModuleInit
call fcn.10011d3f0
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp rax, r15
jne 0x10011735b
mov r9d, AtlModuleInit
mov ebp, r15d
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001173b9
test byte [rcx + 0x1c], 8
je 0x1001173b9
lea edx, [r9 + 0x2a]
lea rax, [0x1000429f8]
jmp 0x1001173a4
mov dword [rax + 0xc], r15d
mov ecx, dword [r12 + 4]
shl ecx, 5
call fcn.10011d3f0
mov qword [rsi], rax
cmp rax, r15
jne 0x1001173c1
mov r9d, AtlModuleInit
mov ebp, r15d
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001173b9
test byte [rcx + 0x1c], 8
je 0x1001173b9
lea edx, [r9 + 0x2b]
lea rax, [0x100042b20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000038e0]
mov qword [rsp + 0x20], rax
call fcn.100106f14
mov rdi, rbp
jmp 0x1001176e6
mov eax, dword [r12 + 4]
mov dword [rsp + 0x48], r15d
mov dword [rsi + 8], eax
cmp dword [r12 + 4], r15d
jbe 0x10011758e
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 0x100117478
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 0x100117478
mov rcx, qword [r15]
mov rdx, r13
call fcn.10011d4c0
mov r14, rax
test rax, rax
jne 0x1001174ec
lea r9d, [rax + 0xe]
xor ebp, ebp
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001176b2
test byte [rcx + 0x1c], 8
je 0x1001176b2
lea edx, [rax + 0x3c]
lea rax, [0x100042b80]
jmp 0x10011769d
lea rcx, [0x100042b48]
mov r8d, 8
mov rdx, r13
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1001174d8
lea rcx, [0x100042b60]
mov rdx, r13
call fcn.10011d4c0
mov r14, rax
test rax, rax
jne 0x1001174ec
lea r9d, [rax + 0xe]
xor ebp, ebp
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001176b2
test byte [rcx + 0x1c], 8
je 0x1001176b2
lea edx, [rax + 0x3a]
jmp 0x10011746c
mov rcx, r13
call fcn.10011d430
mov r14, rax
test rax, rax
je 0x1001176b9
mov r13d, dword [rsp + 0x48]
mov rcx, r14
mov rdx, r13
shl rdx, 5
add rdx, qword [rsi]
lea r8, [rdx + 8]
call fcn.100120a08
test eax, eax
je 0x100117625
mov rcx, qword [rsi]
mov rdi, qword [rsp + 0x58]
lea rdx, [0x1000021a0]
mov rcx, qword [rdi + rcx]
call fcn.10011d4c0
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1001175b9
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 0x1001173e3
xor r15d, r15d
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
lea r9, [0x100116adc]
mov r8d, reloc.ATL.DLL_AtlInternalQueryInterface
call qword [sym.imp.msvcrt.dll_qsort]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r15
mov qword [rdx], rsi
jmp 0x1001176b2
xor ebp, ebp
lea ebx, [rbp + 0x32]
mov r10, qword [0x100177368]
lea rdi, [0x100177368]
cmp r10, rdi
je 0x1001176b2
test byte [r10 + 0x1c], 8
mov rdi, qword [rsp + 0x40]
je 0x1001176e6
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, [0x100042380]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.10010d62c
jmp 0x1001176e6
mov rax, qword [0x100177368]
lea rdi, [0x100177368]
cmp rax, rdi
je 0x100117667
test byte [rax + 0x1c], 2
je 0x100117667
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.10010a1fc
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x100177368]
cmp rax, rdi
je 0x1001176b2
test byte [rax + 0x1c], 8
je 0x1001176b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100177368]
lea edx, [rbp + 0x3e]
mov r9d, eax
lea rax, [0x100040138]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000038e0]
mov qword [rsp + 0x20], rax
call fcn.100106f14
mov rdi, qword [rsp + 0x40]
jmp 0x1001176e6
xor ebp, ebp
lea r9d, [rbp + 0xe]
mov ebx, r9d
mov rcx, qword [0x100177368]
lea rdi, [0x100177368]
cmp rcx, rdi
je 0x1001176b2
test byte [rcx + 0x1c], 8
je 0x1001176b2
lea edx, [rbp + 0x3b]
jmp 0x10011746c
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rsp + 0x50]
call fcn.100116c4c
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [0x100042a20]
call fcn.10011cf74
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100130df0
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