Function at 0x140017c50
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor edi, edi
mov qword [rbp - 0x29], r8
mov qword [rbp + 7], rdi
mov r13d, edi
mov qword [rbp - 9], rdi
mov r14, rcx
mov qword [rbp - 1], rdi
mov qword [rbp - 0x39], rdi
mov dword [0x14002ee40], edi
mov qword [rbp - 0x11], rdx
call fcn.140012620
mov r15d, eax
test eax, eax
jns 0x140017cc1
lea rcx, str.ERROR:_Unable_to_open_device_in_restore_mode_n
call fcn.1400023a0
cmp r15d, 0xfffffffe
sete dil
lea eax, [rdi - 2]
jmp 0x140018934
mov rdx, qword [r14 + 0x40]
lea rcx, str.Device__s_has_successfully_entered_restore_mode_n
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], r12
call fcn.140002320
mov rax, qword [r14 + 0x68]
lea r8, [rbp - 1]
lea rdx, str.HardwareInfo
mov r12, qword [rax + 0x38]
mov rsi, qword [rax + 0x10]
mov rcx, r12
mov qword [rbp - 0x21], rsi
call qword [sym.imp.imobiledevice.dll_restored_query_value]
test eax, eax
jne 0x140017e52
lea rcx, str.Hardware_Information:_n
mov qword [rbp - 0x19], rdi
mov byte [rbp + 0xf], dil
call fcn.140002320
mov rcx, qword [rbp - 1]
lea rdx, str.BoardID
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017d6c
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 1
jne 0x140017d6c
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_uint_val]
mov edx, dword [rbp - 0x19]
lea rcx, str.BoardID:__d_n
call fcn.140002320
mov rcx, qword [rbp - 1]
lea rdx, str.ChipID
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017daf
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 1
jne 0x140017daf
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_uint_val]
mov edx, dword [rbp - 0x19]
lea rcx, str.ChipID:__d_n
call fcn.140002320
mov rcx, qword [rbp - 1]
lea rdx, str.UniqueChipID
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017df3
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 1
jne 0x140017df3
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_uint_val]
mov rdx, qword [rbp - 0x19]
lea rcx, str.UniqueChipID:__I64u_n
call fcn.140002320
mov rcx, qword [rbp - 1]
lea rdx, str.ProductionMode
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017e48
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
test eax, eax
jne 0x140017e48
lea rdx, [rbp + 0xf]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_bool_val]
cmp byte [rbp + 0xf], 1
lea rax, str.true
lea rdx, str.false
cmove rdx, rax
lea rcx, str.ProductionMode:__s_n
call fcn.140002320
mov rcx, qword [rbp - 1]
call qword [sym.imp.plist.dll_plist_free]
lea r8, [rbp - 1]
mov rcx, r12
lea rdx, str.SavedDebugInfo
call qword [sym.imp.imobiledevice.dll_restored_query_value]
test eax, eax
jne 0x140017f72
mov rcx, qword [rbp - 1]
lea rdx, str.PreviousExitStatus
mov qword [rbp - 0x19], rdi
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017ec4
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x140017ec4
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rdx, qword [rbp - 0x19]
lea rcx, str.Previous_restore_exit_status:__s_n
call fcn.140002320
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x19], rdi
mov rcx, qword [rbp - 1]
lea rdx, str.USBLog
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017f16
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x140017f16
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rdx, qword [rbp - 0x19]
lea rcx, str.USB_log_is_available:_n_s_n
call fcn.140002320
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x19], rdi
mov rcx, qword [rbp - 1]
lea rdx, str.PanicLog
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140017f68
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x140017f68
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rdx, qword [rbp - 0x19]
lea rcx, str.Panic_log_is_available:_n_s_n
call fcn.140002320
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp - 0x19], rdi
mov rcx, qword [rbp - 1]
call qword [sym.imp.plist.dll_plist_free]
mov rcx, qword [r14 + 8]
lea rdx, str.BBTicket
call qword [sym.imp.plist.dll_plist_dict_get_item]
test rax, rax
je 0x140017f9a
mov rcx, qword [r14 + 8]
call qword [sym.imp.plist.dll_plist_copy]
mov rcx, qword [r14 + 0x68]
mov qword [rcx + 8], rax
lea rcx, str.Starting_FDR_listener_thread_n
mov qword [rbp - 0x31], rdi
call fcn.140002320
lea r8, [rbp - 0x31]
xor edx, edx
mov rcx, rsi
call fcn.140003f60
test eax, eax
jne 0x140017ffb
mov r9, qword [rbp - 0x31]
lea r8, [0x140004470]
mov qword [rsp + 0x28], rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x39], rax
mov r13, rax
test rax, rax
jne 0x140018007
lea rcx, str.ERROR:_Failed_to_start_FDR_listener_thread_n
call fcn.1400023a0
mov r13, rdi
mov qword [rbp - 0x39], rdi
jmp 0x140018007
lea rcx, str.ERROR:_Failed_to_start_FDR_Ctrl_channel_n
call fcn.1400023a0
call qword [sym.imp.plist.dll_plist_new_dict]
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, str.AutoBootDelay
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x1400180a2
call qword [sym.imp.plist.dll_plist_copy]
mov rcx, rax
lea rdx, str.FusingStatus
mov rbx, rax
call qword [sym.imp.plist.dll_plist_dict_remove_item]
lea rdx, str.PkHash
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_dict_remove_item]
mov r8, rbx
lea rdx, str.BBUpdaterState
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, qword [r14 + 0x38]
lea rdx, str.Nonce
call qword [sym.imp.plist.dll_plist_dict_get_item]
test rax, rax
je 0x1400180a2
mov rcx, rax
call qword [sym.imp.plist.dll_plist_copy]
lea rdx, str.BasebandNonce
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, str.UserOrInternal
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.BootImageType
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov cl, 1
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.CreateFilesystemPartitions
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, str.RELEASE
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.DFUFileType
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
xor ecx, ecx
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.DataImage
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, [0x14001d9fc]
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.FirmwareDirectory
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov cl, 1
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.FlashNOR
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, str.Release
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.KernelCacheType
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, str.production
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.NORImageType
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, qword [r14 + 0xa8]
test rcx, rcx
je 0x1400181b8
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.RestoreBootArgs
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, str._tmp_Per2.tmp
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.RestoreBundlePath
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
xor ecx, ecx
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.RootToInstall
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov cl, 1
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.SystemImage
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
lea rcx, str.User
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.SystemImageType
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, qword [rbp - 0x11]
lea r9, str.SystemPartitionPadding
lea r8, str.Info
mov edx, 2
call qword [sym.imp.plist.dll_plist_access_path]
test rax, rax
je 0x140018261
mov rcx, rax
call qword [sym.imp.plist.dll_plist_copy]
mov rbx, rax
jmp 0x140018300
call qword [sym.imp.plist.dll_plist_new_dict]
mov ecx, 0x500
mov rbx, rax
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, [0x140027ac0]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0xa0
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, [0x140027ac4]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0x140
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, [0x140027ac8]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0x280
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, [0x140027acc]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov ecx, 0x50
call qword [sym.imp.plist.dll_plist_new_uint]
lea rdx, [0x140027ad0]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov r8, rbx
lea rdx, str.SystemPartitionPadding
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_dict_set_item]
call fcn.140002640
mov rbx, rax
test rax, rax
je 0x140018345
mov rcx, rax
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.UUID
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.UpdateBaseband
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, qword [rbp - 0x11]
lea rax, str.Info
lea r9, [0x140023184]
mov qword [rsp + 0x20], rax
lea r8, str.Manifest
mov edx, 3
call qword [sym.imp.plist.dll_plist_access_path]
test rax, rax
je 0x1400183fb
lea rdx, str.RequiredCapacity
mov rcx, rax
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x1400183fb
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x1400183fb
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x19], rdi
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rdx, qword [rbp - 0x19]
lea rcx, str.TZ0RequiredCapacity:__s_n
call fcn.140002440
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_copy]
lea rdx, str.TZ0RequiredCapacity
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov cl, 1
call qword [sym.imp.plist.dll_plist_new_bool]
lea rdx, str.PersonalizedDuringPreflight
mov rcx, rsi
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov r8, qword [r14 + 0x68]
mov rdx, rsi
mov rcx, r12
mov r8, qword [r8 + 0x30]
call qword [sym.imp.imobiledevice.dll_restored_start_restore]
test eax, eax
je 0x140018455
lea rcx, str.ERROR:_Unable_to_start_the_restore_process_n
call fcn.1400023a0
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_free]
mov rcx, r14
call fcn.1400120f0
mov eax, 0xffffffff
jmp 0x14001891c
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_free]
mov rax, qword [r14 + 0xb8]
test rax, rax
je 0x140018480
mov r8, qword [r14 + 0xc0]
mov ecx, 1
movsd xmm1, qword [0x140029550]
call rax
test byte [r14], 1
jne 0x1400188d2
mov r13, qword [rbp - 0x11]
nop
test r15d, r15d
jns 0x1400184a5
lea rcx, str.ERROR:_Unable_to_successfully_restore_device_n
call fcn.1400023a0
or dword [r14], 1
lea rdx, [rbp - 9]
mov rcx, r12
call qword [sym.imp.imobiledevice.dll_restored_receive]
test eax, eax
je 0x1400184c7
lea rcx, str.No_data_to_read_n
call fcn.140002440
jmp 0x1400188c0
mov rcx, qword [rbp - 9]
lea rdx, str.MsgType
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x140018855
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x140018855
lea rdx, [rbp + 7]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rbx, qword [rbp + 7]
lea rdx, str.DataRequestMsg
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140018547
mov rax, qword [rbp - 0x29]
mov r8, r12
mov r9, qword [rbp - 9]
mov rcx, r14
mov rdx, qword [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call fcn.140017780
mov rcx, qword [rbp + 7]
mov r15d, eax
jmp 0x1400188b0
lea rdx, str.PreviousRestoreLogMsg
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400185d3
mov rcx, qword [rbp - 9]
lea rdx, str.PreviousRestoreLog
mov qword [rbp - 0x11], rdi
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x1400185b8
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x1400185b8
lea rdx, [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
mov rdx, qword [rbp - 0x11]
lea rcx, str.Previous_Restore_Log_Received:_n_s_n
call fcn.140002320
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 7]
mov r15d, edi
jmp 0x1400188b0
lea rcx, str.Failed_to_parse_restore_log_from_PreviousRestoreLog_plist_n
call fcn.140002440
mov rcx, qword [rbp + 7]
mov r15d, 0xffffffff
jmp 0x1400188b0
lea rdx, str.ProgressMsg
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400185fe
mov rdx, qword [rbp - 9]
mov rcx, r14
call fcn.140012b00
mov rcx, qword [rbp + 7]
mov r15d, eax
jmp 0x1400188b0
lea rdx, str.StatusMsg
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140018674
mov rdx, qword [rbp - 9]
call fcn.140012ea0
cmp dword [0x14002ee40], edi
mov r15d, eax
je 0x14001884f
call qword [sym.imp.plist.dll_plist_new_dict]
lea rcx, str.ReceivedFinalStatusMsg
mov rbx, rax
call qword [sym.imp.plist.dll_plist_new_string]
lea rdx, str.MsgType
mov rcx, rbx
mov r8, rax
call qword [sym.imp.plist.dll_plist_dict_set_item]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.imobiledevice.dll_restored_send]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_free]
or dword [r14], 1
mov rcx, qword [rbp + 7]
jmp 0x1400188b0
lea rdx, str.BBUpdateStatusMsg
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400187e0
mov rsi, qword [rbp - 9]
lea rdx, str.Accepted
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_dict_get_item]
lea rdx, [rbp + 0xf]
mov byte [rbp + 0xf], dil
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_bool_val]
cmp byte [rbp + 0xf], dil
jne 0x1400186d1
lea rcx, str.ERROR:_device_didnt_accept_BasebandData_n
call fcn.1400023a0
mov rcx, qword [rbp + 7]
mov r15d, 0xffffffff
jmp 0x1400188b0
lea r9, str.done
mov byte [rbp + 0x10], dil
lea r8, str.Output
mov edx, 2
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_access_path]
mov rbx, rax
test rax, rax
je 0x140018713
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
test eax, eax
jne 0x140018713
lea rdx, [rbp + 0x10]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_bool_val]
cmp byte [rbp + 0x10], dil
je 0x1400187c8
lea rcx, str.Updating_Baseband_completed._n
call fcn.140002320
lea r9, str.provisioning
mov edx, 2
lea r8, str.Output
mov rcx, rsi
call qword [sym.imp.plist.dll_plist_access_path]
mov rbx, rax
test rax, rax
je 0x1400187d4
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 5
jne 0x1400187d4
lea rdx, str.IMEI
mov qword [rbp - 0x11], rdi
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_dict_get_item]
mov rbx, rax
test rax, rax
je 0x1400187d4
mov rcx, rax
call qword [sym.imp.plist.dll_plist_get_node_type]
cmp eax, 3
jne 0x1400187d4
lea rdx, [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.plist.dll_plist_get_string_val]
lea rcx, str.Provisioning:_n
call fcn.140002320
mov rdx, qword [rbp - 0x11]
lea rcx, str.IMEI:_s_n
call fcn.140002320
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 7]
mov r15d, edi
jmp 0x1400188b0
lea rcx, str.Updating_Baseband_in_progress..._n
call fcn.140002320
mov rcx, qword [rbp + 7]
mov r15d, edi
jmp 0x1400188b0
lea rcx, str.Unknown_message_type_received_n
call fcn.140002440
mov rcx, qword [rbp - 9]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x11]
mov dword [rbp - 0x19], edi
mov qword [rbp - 0x11], rdi
call qword [sym.imp.plist.dll_plist_to_xml]
mov r8d, dword [rbp - 0x19]
lea rdx, str.d:_a1_sidevicerestore_srccommon.c
cmp r8d, 0x10000
ja 0x140018839
mov r9, qword [rbp - 0x11]
lea rcx, str._s:printing__i_bytes_plist:_n_s
call fcn.140002320
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 7]
jmp 0x1400188b0
lea rcx, str._s:supressed_printing__i_bytes_plist..._n
call fcn.140002320
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 7]
jmp 0x1400188b0
lea rcx, str.Unknown_message_received:_n
call fcn.140002440
mov rcx, qword [rbp - 9]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x11]
mov dword [rbp - 0x19], edi
mov qword [rbp - 0x11], rdi
call qword [sym.imp.plist.dll_plist_to_xml]
mov r8d, dword [rbp - 0x19]
lea rdx, str.d:_a1_sidevicerestore_srccommon.c
cmp r8d, 0x10000
ja 0x1400188a0
mov r9, qword [rbp - 0x11]
lea rcx, str._s:printing__i_bytes_plist:_n_s
call fcn.140002320
jmp 0x1400188ac
lea rcx, str._s:supressed_printing__i_bytes_plist..._n
call fcn.140002320
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 9]
call qword [sym.imp.plist.dll_plist_free]
test byte [r14], 1
mov qword [rbp - 9], rdi
je 0x140018490
mov r13, qword [rbp - 0x39]
test r13, r13
je 0x140018911
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140018911
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x140018911
mov rcx, qword [rax]
test rcx, rcx
je 0x140018903
mov qword [rax], rdi
call qword [sym.imp.imobiledevice.dll_idevice_disconnect]
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
call fcn.1400120f0
mov eax, r15d
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xe8]
mov r12, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14001bfa0
add rsp, 0xa0
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret