Function at 0x180026bf0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x4e0
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
test rcx, rcx
mov rbx, rdx
mov rbp, rcx
jne 0x180026c48
call fcn.18002a370
xor esi, esi
mov dword [rax], esi
call fcn.18002a340
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], SafeArrayGetElement
mov qword [rsp + 0x20], rsi
call fcn.180026310
or eax, 0xffffffff
jmp 0x180027041
test rdx, rdx
je 0x180026c18
lea rdx, [0x180047060]
call fcn.18002e000
test rax, rax
je 0x180026c7c
call fcn.18002a340
mov dword [rax], 2
call fcn.18002a370
mov dword [rax], 2
or eax, 0xffffffff
jmp 0x180027041
cmp word [rbp + 2], 0x3a
mov qword [rsp + 0x4d0], r14
jne 0x180026cc8
movzx ecx, word [rbp]
test cx, cx
je 0x180026cb9
cmp word [rbp + 4], 0
jne 0x180026cb9
call fcn.18002a340
mov dword [rax], 2
call fcn.18002a370
mov dword [rax], 2
or eax, 0xffffffff
jmp 0x180027039
call fcn.18002dff0
movzx r14d, ax
sub r14d, 0x60
jmp 0x180026cd0
call fcn.18002dd40
mov r14d, eax
mov qword [rsp + 0x510], rdi
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x518], r12
mov qword [rsp + 0x4d8], r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x180026e3f
lea rdx, [0x180047058]
xor esi, esi
mov rcx, rbp
mov r12, rsi
call fcn.18002e000
test rax, rax
je 0x180026e24
call fcn.18002a340
mov edi, dword [rax]
call fcn.18002a340
lea rcx, [rsp + 0x2b0]
mov r8d, 0x104
mov rdx, rbp
mov dword [rax], esi
call fcn.18002d7e0
test rax, rax
mov r13, rax
je 0x180026d55
call fcn.18002a340
mov dword [rax], edi
jmp 0x180026d7d
call fcn.18002a340
cmp dword [rax], 0x22
jne 0x180026e24
call fcn.18002a340
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], edi
call fcn.18002d7e0
mov r12, rax
mov r13, rax
test r13, r13
je 0x180026e17
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 3
je 0x180026dab
mov rcx, r13
call fcn.180026b10
test eax, eax
je 0x180026e17
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180026e17
test r12, r12
je 0x180026dc6
mov rcx, r12
call fcn.180025310
mov edx, 1
mov dword [rsp + 0x30], 0xffffffff
xor r9d, r9d
mov ecx, 0x7bc
mov r8d, edx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x60], reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x7c], esi
mov dword [rsp + 0x80], esi
mov word [rsp + 0x8c], si
mov dword [rsp + 0x20], esi
call fcn.18002da30
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x28], rax
jmp 0x180026fc9
test r12, r12
je 0x180026e24
mov rcx, r12
call fcn.180025310
call fcn.18002a340
mov dword [rax], 2
call fcn.18002a370
mov dword [rax], 2
jmp 0x18002701e
cmp dword [rsp + 0x74], 0
jne 0x180026e55
cmp dword [rsp + 0x78], 0
jne 0x180026e55
xor esi, esi
mov qword [rbx + 0x20], rsi
jmp 0x180026ebe
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x180027008
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x180027008
movzx eax, word [rsp + 0x4c]
movzx edi, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.18002da30
mov qword [rbx + 0x20], rax
cmp dword [rsp + 0x6c], 0
jne 0x180026ed6
cmp dword [rsp + 0x70], 0
jne 0x180026ed6
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x18], rax
jmp 0x180026f3f
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x180027008
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x180027008
movzx eax, word [rsp + 0x4c]
movzx edi, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.18002da30
mov qword [rbx + 0x18], rax
cmp dword [rsp + 0x64], 0
jne 0x180026f57
cmp dword [rsp + 0x68], 0
jne 0x180026f57
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
jmp 0x180026fc0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x180027008
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x180027008
movzx eax, word [rsp + 0x4c]
movzx edi, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.18002da30
mov qword [rbx + 0x28], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x60]
mov rdx, rbp
call fcn.18002d940
mov word [rbx + 8], 1
mov word [rbx + 4], 0
mov word [rbx + 6], ax
mov eax, dword [rsp + 0x80]
mov word [rbx + 0xc], 0
mov dword [rbx + 0x14], eax
lea eax, [r14 - 1]
mov word [rbx + 0xa], 0
mov dword [rbx], eax
mov dword [rbx + 0x10], eax
xor eax, eax
jmp 0x180027021
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18002a3a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov r13, qword [rsp + 0x4d8]
mov r12, qword [rsp + 0x518]
mov rdi, qword [rsp + 0x510]
mov r14, qword [rsp + 0x4d0]
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.180026960
add rsp, 0x4e0
pop rsi
pop rbp
pop rbx
ret