Function at 0x415b90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x50], eax
xor eax, eax
push edi
push str.About_to_send_BasebandData..._n
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], 0xffffffff
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x20], 0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], 0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], eax
call fcn.00403550
add esp, 4
push str.Arguments
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
mov edi, dword [sym.imp.plist.dll_plist_get_node_type]
mov esi, eax
add esp, 8
test esi, esi
je 0x415cef
push esi
call edi
add esp, 4
cmp eax, 5
jne 0x415cef
push str.ChipID
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x415c57
push eax
call edi
add esp, 4
cmp eax, 1
jne 0x415c57
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
call dword [sym.imp.plist.dll_plist_get_uint_val]
add esp, 8
push str.CertID
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x415c88
push eax
call edi
add esp, 4
cmp eax, 1
jne 0x415c88
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
call dword [sym.imp.plist.dll_plist_get_uint_val]
add esp, 8
push str.ChipSerialNo
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x415cbd
push eax
call edi
add esp, 4
cmp eax, 7
jne 0x415cbd
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.plist.dll_plist_get_data_val]
add esp, 0xc
push str.Nonce
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
mov esi, eax
add esp, 8
test esi, esi
je 0x415cef
push esi
call edi
add esp, 4
cmp eax, 7
jne 0x415cef
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.plist.dll_plist_get_data_val]
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x415d03
mov esi, dword [ebp - 0x44]
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], ebx
jne 0x416013
call dword [sym.imp.plist.dll_plist_new_dict]
mov ebx, dword [ebp - 0x44]
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call dword [sym.imp.plist.dll_plist_new_uint]
mov edi, dword [sym.imp.plist.dll_plist_dict_set_item]
push eax
push str.ApECID
push esi
call edi
mov eax, dword [ebp - 0x18]
add esp, 0x14
test eax, eax
je 0x415d52
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
push eax
push str.BbNonce
push esi
call edi
add esp, 0xc
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.plist.dll_plist_new_uint]
push eax
push str.BbChipID
push esi
call edi
add esp, 0x14
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.plist.dll_plist_new_uint]
push eax
push str.BbGoldCertId
push esi
call edi
add esp, 0x14
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x20]
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
push eax
push str.BbSNUM
push esi
call edi
mov edx, dword [ebp - 0x50]
add esp, 0xc
mov ecx, esi
call fcn.004197a0
call dword [sym.imp.plist.dll_plist_new_dict]
push str.en_US
mov dword [ebp - 0x14], eax
call dword [sym.imp.plist.dll_plist_new_string]
add esp, 4
push eax
push str._Locality
push dword [ebp - 0x14]
call edi
add esp, 0xc
push str.windows
call dword [sym.imp.plist.dll_plist_new_string]
add esp, 4
push eax
push str._HostPlatformInfo
push dword [ebp - 0x14]
call edi
add esp, 0xc
push str.libauthinstall_698.0.5
call dword [sym.imp.plist.dll_plist_new_string]
add esp, 4
push eax
push str._VersionInfo
push dword [ebp - 0x14]
call edi
add esp, 0xc
call fcn.004037f0
mov dword [ebp - 8], eax
test eax, eax
je 0x415e37
push eax
call dword [sym.imp.plist.dll_plist_new_string]
add esp, 4
push eax
push str._UUID
push dword [ebp - 0x14]
call edi
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x415e57
push str.ERROR:_Unable_to_create_Baseband_TSS_request_n
call fcn.004035a0
add esp, 4
push esi
call dword [sym.imp.plist.dll_plist_free]
jmp 0x416269
push 0
mov edx, esi
mov ecx, edi
call fcn.0041a2b0
mov edx, esi
mov ecx, edi
call fcn.0041aa70
add esp, 4
push str.FDRSupport
push str.Info
push 2
push dword [ebp - 0x50]
call dword [sym.imp.plist.dll_plist_access_path]
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x415eeb
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
test eax, eax
jne 0x415eeb
mov byte [ebp - 9], al
lea eax, [ebp - 9]
push eax
push dword [ebp - 8]
call dword [sym.imp.plist.dll_plist_get_bool_val]
add esp, 8
cmp byte [ebp - 9], 0
je 0x415eeb
mov esi, dword [sym.imp.plist.dll_plist_new_bool]
push 1
call esi
add esp, 4
push eax
push str.ApProductionMode
push edi
call dword [sym.imp.plist.dll_plist_dict_set_item]
add esp, 0xc
push 1
call esi
add esp, 4
push eax
push str.ApSecurityMode
push edi
call dword [sym.imp.plist.dll_plist_dict_set_item]
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [0x42c738], 0
je 0x415f55
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
call dword [sym.imp.plist.dll_plist_to_xml]
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, 0x10000
ja 0x415f36
push dword [ebp - 0x10]
push eax
push str.D:_a1_sidevicerestore_srccommon.c
push str._s:printing__i_bytes_plist:_n_s
call fcn.00403550
add esp, 0x10
jmp 0x415f49
push eax
push str.D:_a1_sidevicerestore_srccommon.c
push str._s:supressed_printing__i_bytes_plist..._n
call fcn.00403550
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push str.Sending_Baseband_TSS_request..._n
call fcn.00403550
mov edx, dword [ebx + 8]
add esp, 4
mov ecx, edi
call fcn.0041c120
push edi
mov edi, dword [sym.imp.plist.dll_plist_free]
mov ebx, eax
call edi
add esp, 4
push esi
call edi
add esp, 4
test ebx, ebx
jne 0x415f93
push str.ERROR:_Unable_to_fetch_Baseband_TSS_n
call fcn.004035a0
jmp 0x416269
push str.Received_Baseband_SHSH_blobs_n
call fcn.00403550
add esp, 4
cmp dword [0x42c738], 0
je 0x41600a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
call dword [sym.imp.plist.dll_plist_to_xml]
mov eax, dword [ebp - 8]
add esp, 0xc
cmp eax, 0x10000
ja 0x415feb
push dword [ebp - 0x10]
push eax
push str.D:_a1_sidevicerestore_srccommon.c
push str._s:printing__i_bytes_plist:_n_s
call fcn.00403550
add esp, 0x10
jmp 0x415ffe
push eax
push str.D:_a1_sidevicerestore_srccommon.c
push str._s:supressed_printing__i_bytes_plist..._n
call fcn.00403550
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov esi, dword [ebp - 0x44]
mov edi, dword [sym.imp.plist.dll_plist_get_node_type]
push str.Path
push str.Info
push str.BasebandFirmware
push str.Manifest
push 4
push dword [ebp - 0x50]
call dword [sym.imp.plist.dll_plist_access_path]
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
je 0x416254
push eax
call edi
add esp, 4
cmp eax, 3
jne 0x416254
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push dword [ebp - 8]
call dword [sym.imp.plist.dll_plist_get_string_val]
add esp, 8
cmp dword [ebp - 0x1c], 0
jne 0x416076
push str.ERROR:_Unable_to_get_baseband_path_n
jmp 0x416259
mov ecx, str.bbfw_
call fcn.00403f10
mov edi, eax
test edi, edi
jne 0x4160f8
mov esi, dword [esi + 0x28]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x416090
sub esi, ecx
xor ecx, ecx
mov eax, esi
add eax, 0xa
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [str.bbfw_]
mov dword [edi], eax
mov ax, word [0x426d88]
mov word [edi + 4], ax
mov eax, dword [ebp - 0x44]
push esi
push dword [eax + 0x28]
lea eax, [edi + 5]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str..tmp]
add esp, 0xc
mov dword [esi + edi + 5], eax
mov al, byte [0x420b78]
mov byte [esi + edi + 9], al
push edi
push str.WARNING:_Could_not_generate_temporary_filename__using__s_in_current_directory_n
call fcn.004035a0
add esp, 8
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
push ecx
push edi
mov ecx, dword [esi + 0x30]
call fcn.0040ecd0
add esp, 8
test eax, eax
je 0x41611e
push str.ERROR:_Unable_to_extract_baseband_firmware_from_ipsw_n
call fcn.004035a0
jmp 0x416205
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x416136
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], 0
jne 0x416136
mov dword [eax + 4], ebx
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x3c]
mov edx, ebx
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
test eax, eax
cmovne edx, eax
call fcn.00414aa0
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x416208
mov dword [ebp - 8], eax
lea edx, [ebp - 0x54]
lea eax, [ebp - 8]
mov dword [ebp - 0x4c], 0xffffffff
push eax
mov ecx, edi
call fcn.00403660
add esp, 4
test eax, eax
jns 0x41618a
push str.ERROR:_could_not_read_updated_bbfw_archive_n
call fcn.004035a0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
jmp 0x416205
call dword [sym.imp.plist.dll_plist_new_dict]
mov esi, dword [ebp - 0x54]
push 0
push dword [ebp - 8]
mov dword [ebp - 0x48], eax
push esi
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
push eax
push str.BasebandData
push dword [ebp - 0x48]
call dword [sym.imp.plist.dll_plist_dict_set_item]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0x58], 0
push str.Sending_BasebandData_now..._n
call fcn.00403550
add esp, 4
push dword [ebp - 0x48]
push dword [ebp - 0x5c]
call dword [sym.imp.imobiledevice.dll_restored_send]
add esp, 8
test eax, eax
je 0x4161f4
push str.ERROR:_Unable_to_send_BasebandData_data_n
call fcn.004035a0
jmp 0x416205
push str.Done_sending_BasebandData_n
call fcn.00403550
mov dword [ebp - 0x4c], 0
add esp, 4
push dword [ebp - 0x48]
mov esi, dword [sym.imp.plist.dll_plist_free]
call esi
add esp, 4
push dword [ebp - 0x58]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x41623a
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebx
call esi
mov eax, dword [ebp - 0x4c]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
push str.ERROR:_Unable_to_get_BasebandFirmware_Info_Path_node_n
call fcn.004035a0
mov eax, dword [sym.imp.plist.dll_plist_free]
add esp, 4
push ebx
call eax
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.0041c84a
mov esp, ebp
pop ebp
ret