Function at 0x140016700
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x298
mov rax, qword [0x14007a8d0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rdx], 4
mov rax, qword [rcx]
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
mov edi, 4
call qword [rax + 0x50]
mov ecx, dword [rbx + 0x684]
mov edx, eax
cmp ecx, 5
jne 0x140016752
test ebp, ebp
jne 0x140016752
mov dword [rsi], edi
xor eax, eax
jmp 0x140016afb
mov qword [rsp + 0x290], r15
xor r15d, r15d
cmp dword [rbx + 0x34], 2
jl 0x140016772
cmp ecx, edi
je 0x140016772
test ebp, ebp
jne 0x140016772
mov dword [rsi], ecx
jmp 0x140016ae9
mov rax, qword [rbx + 0x50]
movzx ecx, byte [rax + 0x262]
test cl, cl
je 0x1400168f8
cmp edx, 6
jbe 0x1400168f8
movzx r8d, cl
lea rdx, str._c:_
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov r8d, 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x140016892
mov r9d, dword [rbx + 0x30]
lea rax, [rsp + 0x60]
lea r8, str.__d__OS_says_filesystem_is__s
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, edi
mov qword [rsp + 0x20], rax
call fcn.140028400
lea rdx, str.FAT32
lea rcx, [rsp + 0x60]
call fcn.14003fb54
test rax, rax
je 0x14001683a
mov edi, r15d
mov dword [rsi], r15d
jmp 0x140016ad9
lea rdx, [0x14005b8e0]
lea rcx, [rsp + 0x60]
call fcn.14003fb54
test rax, rax
jne 0x140016ae9
lea rdx, str.HSFJ
lea rcx, [rsp + 0x60]
call fcn.14003fb54
test rax, rax
je 0x1400168f8
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__OS_says_filesystem_is_HFS.__MacDrive_must_be_running.
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, edi
call fcn.140028400
mov edi, r15d
mov dword [rsi], r15d
jmp 0x140016ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1400168b5
cmp eax, 0x3ed
je 0x1400168b5
cmp eax, 0x54e
je 0x1400168b5
add eax, 0xfffffa90
cmp eax, 1
ja 0x1400168ba
mov edi, 5
mov dword [rbx + 0x680], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__GetVolumeInformation___failed_with_error__d
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, 4
mov dword [rsp + 0x20], eax
call fcn.140028400
cmp edi, 5
je 0x140016ae9
cmp edi, 4
jne 0x140016905
cmp dword [rbx + 0x680], r15d
je 0x14001690c
test ebp, ebp
jne 0x14001690c
mov dword [rsi], edi
jmp 0x140016ad9
cmp byte [rbx + 0x1d1], 2
jne 0x140016948
mov eax, dword [rbx + 0x684]
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__flash_iPod_not_mounted__returning_cached_format__d
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, 4
mov dword [rsp + 0x20], eax
call fcn.140028400
mov eax, dword [rbx + 0x684]
mov dword [rsi], eax
jmp 0x140016ad9
cmp qword [rbx + 0x50], r15
je 0x140016ad9
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__still_dont_know_format__scanning...
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, 4
mov qword [rsp + 0x2d0], r12
mov qword [rsp + 0x2d8], r14
call fcn.140028400
mov rcx, qword [rbx + 0x50]
call fcn.140023f20
mov ebp, r15d
mov r12d, eax
nop dword [rax]
mov r14d, r15d
mov rcx, qword [rbx + 0x50]
call fcn.140023f20
test eax, eax
jne 0x1400169cf
mov rcx, qword [rbx + 0x50]
call fcn.140024110
mov edi, eax
test eax, eax
jne 0x1400169cf
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__Failed_to_open_disk___Try__d
lea rdx, str.CIpodDevice::GetFormatType__
lea ecx, [rax + 8]
mov dword [rsp + 0x20], ebp
call fcn.140028400
jmp 0x1400169e6
mov rcx, qword [rbx + 0x50]
mov rdx, rsi
call fcn.140023680
mov edi, eax
test eax, eax
je 0x1400169e6
cmp dword [rsi], 4
jne 0x140016a4e
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x50]
call fcn.140023ae0
test eax, eax
je 0x140016a34
cmp dword [rbx + 0xa0], 3
je 0x140016a34
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__disk_util_found_unknown_format__retry__d
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, 4
mov dword [rsp + 0x20], ebp
call fcn.140028400
inc r14d
cmp r14d, 0x28
jl 0x140016993
cmp dword [rsi], 4
jne 0x140016a4e
mov rcx, rbx
call fcn.1400196d0
inc ebp
cmp ebp, 5
jl 0x140016990
jmp 0x140016a70
mov eax, dword [rsi]
mov r9d, dword [rbx + 0x30]
lea r8, str.__d__format_scan_detection_finished__format_is__d
lea rdx, str.CIpodDevice::GetFormatType__
mov ecx, 4
mov dword [rsp + 0x20], eax
call fcn.140028400
mov r14, qword [rsp + 0x2d8]
test r12d, r12d
mov r12, qword [rsp + 0x2d0]
je 0x140016abd
mov rcx, qword [rbx + 0x50]
call fcn.140023f20
test eax, eax
jne 0x140016abd
mov rcx, qword [rbx + 0x50]
call fcn.140024110
test eax, eax
jne 0x140016ac6
lea rdx, str.DeviceManagementiPodDevice.cpp
lea rcx, str.m_pDiskUtil__Open__
xor r9d, r9d
mov r8d, 0x665
call fcn.140027a80
jmp 0x140016ac6
mov rcx, qword [rbx + 0x50]
call fcn.1400229f0
test edi, edi
jne 0x140016ad9
cmp dword [rsi], 4
jne 0x140016ad9
mov dword [rbx + 0x680], 1
mov edx, dword [rsi]
lea ecx, [rdx - 4]
cmp ecx, 1
jbe 0x140016ae9
mov dword [rbx + 0x684], edx
cmp dword [rsi], 4
setne r15b
mov eax, r15d
mov r15, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x298
pop rdi
pop rsi
pop rbp
pop rbx
ret