Function at 0x4189c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
push str.About_to_send_BasebandData..._n
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffff
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 8], 0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], edi
call fcn.00404cb0
add esp, 4
push 0x4431ec
push esi
call sym.fixios.exe_plist_dict_get_item
mov esi, eax
add esp, 8
test esi, esi
je 0x418b0e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418b0e
cmp dword [eax + 0x10], 5
jne 0x418b0e
push 0x4431f8
push esi
call sym.fixios.exe_plist_dict_get_item
add esp, 8
test eax, eax
je 0x418a71
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x418a71
cmp dword [ecx + 0x10], 1
jne 0x418a71
lea ecx, [ebp - 0x30]
push ecx
push eax
call sym.fixios.exe_plist_get_uint_val
add esp, 8
push str.CertID
push esi
call sym.fixios.exe_plist_dict_get_item
add esp, 8
test eax, eax
je 0x418a9d
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x418a9d
cmp dword [ecx + 0x10], 1
jne 0x418a9d
lea ecx, [ebp - 0x38]
push ecx
push eax
call sym.fixios.exe_plist_get_uint_val
add esp, 8
push str.ChipSerialNo
push esi
call sym.fixios.exe_plist_dict_get_item
add esp, 8
test eax, eax
je 0x418acd
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x418acd
cmp dword [ecx + 0x10], 7
jne 0x418acd
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call sym.fixios.exe_plist_get_data_val
add esp, 0xc
push 0x443218
push esi
call sym.fixios.exe_plist_dict_get_item
add esp, 8
test eax, eax
je 0x418b0e
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x418b0e
cmp dword [ecx + 0x10], 7
jne 0x418b0e
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call sym.fixios.exe_plist_get_data_val
add esp, 0xc
cmp dword [ebp - 0x10], edi
je 0x418b0e
mov eax, dword [ebx + 0x3c]
cmp dword [eax + 4], edi
jne 0x418dc0
push 1
push 0x18
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, eax
mov dword [eax + 0x10], 5
call fcn.0042c770
mov ebx, eax
mov eax, dword [ebp - 0xc]
push 1
push 0x18
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edx, eax
mov dword [eax + 0x10], 1
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], 8
mov dword [eax + 0xc], 0
call fcn.0042c770
push eax
push 0x443220
push ebx
call sym.fixios.exe_plist_dict_set_item
add esp, 0x1c
cmp dword [ebp - 0x10], 0
je 0x418bbf
push 1
push 0x18
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, dword [ebp - 0x28]
mov edi, eax
push esi
mov dword [edi + 0x10], 7
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0xc
mov dword [edi], eax
push esi
push dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov edx, edi
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
call fcn.0042c770
push eax
push 0x443228
push ebx
call sym.fixios.exe_plist_dict_set_item
add esp, 0xc
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push 1
push 0x18
call esi
mov edx, eax
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x10], 1
mov dword [edx + 4], eax
mov dword [edx + 8], 8
mov dword [edx + 0xc], 0
call fcn.0042c770
push eax
push 0x443230
push ebx
call sym.fixios.exe_plist_dict_set_item
add esp, 0x14
push 1
push 0x18
call esi
mov edx, eax
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x10], 1
mov dword [edx + 4], eax
mov dword [edx + 8], 8
mov dword [edx + 0xc], 0
call fcn.0042c770
push eax
push 0x44323c
push ebx
call sym.fixios.exe_plist_dict_set_item
add esp, 0x14
push 1
push 0x18
call esi
mov esi, dword [ebp - 0x40]
mov edi, eax
push esi
mov dword [edi + 0x10], 7
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0xc
mov dword [edi], eax
push esi
push dword [ebp - 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov edx, edi
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
call fcn.0042c770
push eax
push 0x44324c
push ebx
call sym.fixios.exe_plist_dict_set_item
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.0041c270
call fcn.0041c0f0
mov esi, eax
test esi, esi
jne 0x418cc4
push str.ERROR:_Unable_to_create_Baseband_TSS_request_n
call fcn.00404d10
add esp, 4
test ebx, ebx
je 0x419002
mov ecx, ebx
call fcn.00427a00
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov edx, ebx
mov ecx, esi
call fcn.0041cf50
mov edx, ebx
mov ecx, esi
call fcn.0041d890
add esp, 4
push str.FDRSupport
push 0x443290
push 2
push edi
call sym.fixios.exe_plist_access_path
add esp, 0x10
test eax, eax
je 0x418d4a
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x418d4a
cmp dword [ecx + 0x10], 0
jne 0x418d4a
lea ecx, [ebp - 1]
mov byte [ebp - 1], 0
push ecx
push eax
call sym.fixios.exe_plist_get_bool_val
add esp, 8
cmp byte [ebp - 1], 0
je 0x418d4a
push 1
call sym.fixios.exe_plist_new_bool
add esp, 4
push eax
push 0x443298
push esi
call sym.fixios.exe_plist_dict_set_item
add esp, 0xc
push 1
call sym.fixios.exe_plist_new_bool
add esp, 4
push eax
push 0x4432ac
push esi
call sym.fixios.exe_plist_dict_set_item
add esp, 0xc
cmp dword [0x4486c4], 0
je 0x418d5a
mov ecx, esi
call fcn.00405000
push str.Sending_Baseband_TSS_request..._n
call fcn.00404cb0
mov edx, dword [ebp - 0xc]
add esp, 4
mov ecx, esi
mov edx, dword [edx + 8]
call fcn.0041f450
mov ecx, esi
mov edi, eax
call fcn.00427a00
test ebx, ebx
je 0x418d88
mov ecx, ebx
call fcn.00427a00
test edi, edi
jne 0x418da3
push str.ERROR:_Unable_to_fetch_Baseband_TSS_n
call fcn.00404d10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_Baseband_SHSH_blobs_n
call fcn.00404cb0
add esp, 4
cmp dword [0x4486c4], 0
je 0x418dc0
mov ecx, edi
call fcn.00405000
push 0x443328
push 0x443330
push 0x443338
push 0x44334c
push 4
push dword [ebp - 0x14]
call sym.fixios.exe_plist_access_path
add esp, 0x18
test eax, eax
je 0x418fea
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x418fea
cmp dword [ecx + 0x10], 3
jne 0x418fea
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call sym.fixios.exe_plist_get_string_val
add esp, 8
cmp dword [ebp - 8], 0
jne 0x418e22
push str.ERROR:_Unable_to_get_baseband_path_n
jmp 0x418fef
mov ecx, 0x4433b4
call fcn.004128b0
mov ebx, eax
test ebx, ebx
jne 0x418e9d
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x28]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x418e40
sub esi, ecx
lea eax, [esi + 0xa]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov eax, dword [str.bbfw_]
mov dword [ebx], eax
mov ax, word [0x4433c0]
mov word [ebx + 4], ax
mov eax, dword [ebp - 0xc]
push esi
push dword [eax + 0x28]
lea eax, [ebx + 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 + ebx + 5], eax
mov al, byte [0x4433c8]
mov byte [esi + ebx + 9], al
push ebx
push str.WARNING:_Could_not_generate_temporary_filename__using__s_in_current_directory_n
call fcn.00404d10
add esp, 8
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push 0
push ebx
mov ecx, dword [esi + 0x30]
call fcn.0040f330
add esp, 8
test eax, eax
je 0x418ec7
push str.ERROR:_Unable_to_extract_baseband_firmware_from_ipsw_n
call fcn.00404d10
add esp, 4
jmp 0x418fb3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x418edc
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], 0
jne 0x418edc
mov dword [eax + 4], edi
xor edi, edi
mov eax, dword [esi + 0x3c]
mov edx, edi
push ecx
mov ecx, ebx
mov eax, dword [eax + 4]
test eax, eax
cmovne edx, eax
call fcn.00417c80
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x418fb3
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0xffffffff
push eax
mov ecx, ebx
call fcn.00404e80
add esp, 4
test eax, eax
jns 0x418f33
push str.ERROR:_could_not_read_updated_bbfw_archive_n
call fcn.00404d10
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x418fb5
call sym.fixios.exe_plist_new_dict
mov esi, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push esi
call sym.fixios.exe_plist_new_data
add esp, 0xc
push eax
push 0x443480
push dword [ebp - 8]
call sym.fixios.exe_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
push str.Sending_BasebandData_now..._n
call fcn.00404cb0
mov esi, dword [ebp - 8]
add esp, 4
push esi
push dword [ebp - 0x20]
call dword [sym.imp.imobiledevice.dll_restored_send]
add esp, 8
test eax, eax
je 0x418f94
push str.ERROR:_Unable_to_send_BasebandData_data_n
call fcn.00404d10
jmp 0x418fa5
push str.Done_sending_BasebandData_n
call fcn.00404cb0
mov dword [ebp - 0x18], 0
add esp, 4
test esi, esi
je 0x418fb3
mov ecx, esi
call fcn.00427a00
xor eax, eax
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call esi
add esp, 4
test ebx, ebx
je 0x418fd5
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
push ebx
call esi
add esp, 4
test edi, edi
je 0x418fe0
mov ecx, edi
call fcn.00427a00
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ERROR:_Unable_to_get_BasebandFirmware_Info_Path_node_n
call fcn.00404d10
add esp, 4
test edi, edi
je 0x419002
mov ecx, edi
call fcn.00427a00
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret