Function at 0x1400107d0
Capabilities:
Get disk information via ioctl

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9d, 0x12
xor edx, edx
xor r8d, r8d
mov rax, qword [rdi]
mov qword [rsp + 0x98], rax
xor eax, eax
mov rbx, rcx
lea rcx, [0x14008b0a0]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140010b36
mov edx, pe_nt_image_headers64
xor ecx, ecx
lea r13, [rsp + 0x70]
xor r12d, r12d
lea r8, str.enumerating_devices
call sym.g_log
mov dword [rsp + 0x70], 0x20
mov r14, qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
mov qword [rsp + 0x48], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
xor edx, edx
mov qword [rsp + 0x20], r13
mov r9d, r12d
mov rcx, rdi
lea r8, [0x14008b0a0]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140010b00
lea r8, str.__getting_device_path
mov edx, pe_nt_image_headers64
xor ecx, ecx
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x54], 0
call sym.g_log
mov esi, 2
xor ebx, ebx
lea rbp, [rsp + 0x54]
mov qword [rsp + 0x20], rbp
mov r9d, dword [rsp + 0x54]
mov r8, rbx
mov rdx, r13
mov qword [rsp + 0x28], 0
mov rcx, rdi
call r14
test eax, eax
jne 0x140010910
call r15
cmp eax, 0x7a
jne 0x140010a78
mov edx, dword [rsp + 0x54]
mov rcx, rbx
call sym.g_realloc
mov dword [rax], 8
mov rbx, rax
cmp esi, 1
je 0x140010a90
mov esi, 1
jmp 0x1400108b2
lea rsi, [rbx + 4]
lea r8, str.__device:__s
mov edx, pe_nt_image_headers64
xor ecx, ecx
mov r9, rsi
call sym.g_log
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
je 0x140010ab0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x38
call sym.g_malloc0
mov edx, dword [rsp + 0x68]
lea rcx, str..PhysicalDrive_lu
mov rbp, rax
call sym.g_strdup_printf
mov qword [rbp], rax
mov r9d, dword [rsp + 0x68]
mov edx, pe_nt_image_headers64
xor ecx, ecx
lea r8, str.__number:__lu
call sym.g_log
mov ecx, 0x58
call sym.g_malloc0
mov byte [rax + 0x38], 1
mov rcx, qword [rbp]
mov rsi, rax
call sym.g_strdup
mov qword [rsi + 0x40], rax
mov ecx, dword [rsp + 0x68]
lea r8, [rsp + 0x58]
mov rdx, rsi
call dbg.get_single_disk_info
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140010af0
call sym.error_get_pretty
mov r9, rax
lea r8, str.failed_to_get_disk_info:__s
mov edx, pe_nt_image_headers64
xor ecx, ecx
call sym.g_log
mov rcx, qword [rsp + 0x58]
call sym.error_free
mov rcx, rsi
call dbg.qapi_free_GuestDiskAddress
mov ecx, 0x10
call sym.g_malloc
mov qword [rax + 8], rbp
mov rsi, rax
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rsi], rax
call sym.g_free
mov qword [rsp + 0x48], rsi
add r12d, 1
jmp 0x140010860
lea r8, str.failed_to_get_device_interface_details
mov edx, pe_nt_image_headers64
xor ecx, ecx
call sym.g_log
nop dword [rax + rax]
lea r8, str.skipping_device
mov edx, pe_nt_image_headers64
xor ecx, ecx
call sym.g_log
mov rcx, rbx
call sym.g_free
jmp 0x140010a68
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.g_win32_error_message
mov qword [rsp + 0x20], rax
mov edx, pe_nt_image_headers64
xor ecx, ecx
mov rsi, rax
lea r9, str.failed_to_get_storage_device_number
lea r8, [0x14008990f]
call sym.g_log
mov rcx, rsi
call sym.g_free
jmp 0x140010aa3
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x18], 1
jmp 0x140010a42
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsp + 0x98]
sub rax, qword [rdi]
jne 0x140010b73
mov rax, qword [rsp + 0x48]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, str.failed_to_get_device_tree
mov rcx, rbx
lea r9, global___func__.126
mov qword [rsp + 0x28], rdi
mov r8d, 0x3fe
lea rdx, str..._qga_commands_win32.c
mov dword [rsp + 0x20], eax
call dbg.error_setg_win32_internal
mov qword [rsp + 0x48], 0
jmp 0x140010b09
call sym.__stack_chk_fail
mov rsi, rax
mov rcx, rbx
call sym.g_free
mov rcx, rsi
call dbg._Unwind_Resume
mov rsi, rax
xor ebx, ebx
jmp 0x140010b7b