Function at 0x140057cb0
Capabilities:
Get disk information via ioctl

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1540
call fcn.1400dab40
sub rsp, rax
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x1598], rbx
mov rax, qword [0x14012ce40]
xor rax, rsp
mov qword [rsp + 0x1530], rax
mov r14, r8
mov rdi, rdx
mov r12, rcx
mov r15, qword [rsp + 0x15a0]
or esi, 0xffffffff
mov word [rsp + 0x8e0], 0
xor eax, eax
mov qword [rsp + 0x8e2], rax
mov qword [rsp + 0x8ea], rax
mov word [rsp + 0x8f2], ax
mov word [rsp + 0x1110], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x1112]
call fcn.1400b57e0
mov word [rsp + 0x1320], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x1322]
call fcn.1400b57e0
mov word [rsp + 0xf00], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xf02]
call fcn.1400b57e0
mov qword [rsp + 0x40], 0x104
lea rax, [rsp + 0xf00]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x1320]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x104
lea r9, [rsp + 0x1110]
mov r8d, 0xa
lea rdx, [rsp + 0x8e0]
mov rcx, rdi
call fcn.1400b2bc0
xor ebx, ebx
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140057e0b
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140057e01
mov rcx, rax
call fcn.140050830
jmp 0x140057e04
mov rax, rbx
mov qword [0x1401370f0], rax
mov r8, rdi
lea rdx, str.GetOurCDDevInstId__s_
mov rcx, rax
call fcn.140050c00
mov word [rsp + 0xd00], 0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0xd02]
call fcn.1400b57e0
lea r9, [rsp + 0x8e0]
lea r8, str.._s
mov edx, 0x100
lea rcx, [rsp + 0xd00]
call fcn.1400b1010
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd00]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov ebp, ebx
cmp rax, 0xffffffffffffffff
je 0x140057ee0
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140057ed7
mov ebp, dword [rsp + 0x68]
shl ebp, 8
or ebp, dword [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0xa8], 0x20
mov word [r14], 0
mov qword [r12], 0xffffffffffffffff
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ec258]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
jne 0x140057f65
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x140057f4f
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140057f45
mov rcx, rax
call fcn.140050830
jmp 0x140057f48
mov rax, rbx
mov qword [0x1401370f0], rax
lea rdx, str._m_hDevInfo__INVALID_HANDLE_VALUE.
mov rcx, rax
call fcn.140050c00
xor eax, eax
jmp 0x140058323
mov r13d, ebx
nop
nop
lea r8, [rsp + 0xa8]
mov edx, r13d
mov rcx, qword [r12]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140058309
mov word [rsp + 0x900], 0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x902]
call fcn.1400b57e0
mov word [rsp + 0xb00], 0
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0xb02]
call fcn.1400b57e0
add r13d, 1
mov qword [rsp + 0x20], rbx
mov r9d, 0x100
lea r8, [rsp + 0x900]
lea rdx, [rsp + 0xa8]
mov rcx, qword [r12]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x140057f70
lea rcx, [rsp + 0x90]
mov rax, qword [0x1400ec258]
mov qword [rcx], rax
mov rax, qword [0x1400ec260]
mov qword [rcx + 8], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, [rsp + 0xb00]
lea rdx, [rsp + 0x900]
lea rcx, [rsp + 0xd0]
call fcn.140059c80
test eax, eax
je 0x1400580d4
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb00]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov esi, ebx
cmp rax, 0xffffffffffffffff
je 0x1400580d4
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400580cb
mov esi, dword [rsp + 0x78]
shl esi, 8
or esi, dword [rsp + 0x7c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x14005818d
mov ecx, 0x310
call fcn.140084d88
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140058184
call fcn.140087bd0
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x14005827d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400f5b5c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1400f5b5c]
mov rcx, rbx
call fcn.140006070
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x1400f6478]
mov edx, 0x50
call fcn.1400b1b70
nop
jmp 0x140058186
xor ebx, ebx
mov qword [0x1401370f0], rbx
lea r8, [rsp + 0x900]
lea rdx, str.devInstanceID___s
mov rcx, rbx
call fcn.140050c00
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x14005825d
mov ecx, 0x310
call fcn.140084d88
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140058254
call fcn.140087bd0
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140058288
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400f5b5c]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x1400f5b5c]
mov rcx, rbx
call fcn.140006070
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x1400f6478]
mov edx, 0x50
call fcn.1400b1b70
nop
jmp 0x140058256
xor ebx, ebx
mov qword [0x1401370f0], rbx
mov r9d, ebp
mov r8d, esi
lea rdx, str._dev_disk__d___appdir_disk__d
mov rcx, rbx
call fcn.140050c00
cmp esi, ebp
je 0x140058293
xor ebx, ebx
jmp 0x140057f70
mov ecx, 0x80004005
call fcn.140006300
nop
mov ecx, 0x80004005
call fcn.140006300
nop
lea r8, [rsp + 0x900]
mov edx, 0x100
mov rcx, r14
call fcn.1400b1b70
lea r8, [rsp + 0xb00]
mov edx, 0x100
mov rcx, r15
call fcn.1400b1b70
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x1400582f0
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400582e7
mov rcx, rax
call fcn.140050830
jmp 0x1400582e9
xor eax, eax
mov qword [0x1401370f0], rax
mov r8, r14
lea rdx, str.Device:__s
mov rcx, rax
call fcn.140050c00
mov eax, 1
jmp 0x140058323
mov rcx, qword [r12]
cmp rcx, 0xffffffffffffffff
je 0x140058319
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov qword [r12], 0xffffffffffffffff
xor eax, eax
mov rcx, qword [rsp + 0x1530]
xor rcx, rsp
call fcn.1400b09d0
mov rbx, qword [rsp + 0x1598]
add rsp, 0x1540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret