Function at 0x40b5d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x454], edx
mov dword [eax], 0
push edi
mov dword [ebp - 0x45c], esi
cmp dword [esi + 0x58], 8
mov dword [ebp - 0x458], eax
jle 0x40b612
test byte [esi], 8
je 0x40b806
push str.checking_for_local_shsh_n
call fcn.004035a0
mov ecx, dword [esi + 0x50]
add esp, 4
test ecx, ecx
je 0x40b7ce
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x60]
mov edi, dword [esi + 0x10]
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x40c]
push edx
push edi
test ebx, ebx
je 0x40b657
push ebx
push str._s_shsh__llu__s__s.shsh
push eax
call fcn.00406ee0
add esp, 0x1c
jmp 0x40b665
push str.shsh__llu__s__s.shsh
push eax
call fcn.00406ee0
add esp, 0x18
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
lea eax, [ebp - 0x40c]
jne 0x40b7be
push 0x41e700
push eax
call dword [sym.imp.zlib1.dll_gzopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b7db
push 0x4000
xor edi, edi
mov dword [ebp - 0x448], 0x4000
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
nop
push 0x4000
push eax
push ebx
call dword [sym.imp.zlib1.dll_gzread]
add esp, 0xc
test eax, eax
js 0x40b79d
add edi, eax
cmp eax, 0x4000
jge 0x40b6ef
push ebx
call dword [sym.imp.zlib1.dll_gzeof]
add esp, 4
test eax, eax
jne 0x40b71b
mov eax, dword [ebp - 0x448]
add eax, 0x4000
push eax
push esi
mov dword [ebp - 0x448], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
push ebx
mov esi, eax
call dword [sym.imp.zlib1.dll_gzeof]
add esp, 0xc
test eax, eax
lea eax, [esi + edi]
je 0x40b6c0
push ebx
call dword [sym.imp.zlib1.dll_gzclose]
add esp, 4
test edi, edi
jle 0x40b785
cmp dword [esi], 0x696c7062
jne 0x40b761
cmp dword [esi + 4], 0x30307473
jne 0x40b761
mov ebx, dword [ebp - 0x458]
push ebx
push edi
push esi
call dword [sym.imp.plist.dll_plist_from_bin]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp - 0x45c]
add esp, 4
jmp 0x40b7e1
mov ebx, dword [ebp - 0x458]
push ebx
push edi
push esi
call dword [sym.imp.plist.dll_plist_from_xml]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp - 0x45c]
add esp, 4
jmp 0x40b7e1
mov ebx, dword [ebp - 0x458]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp - 0x45c]
add esp, 4
jmp 0x40b7e1
push str.Error_reading_gz_compressed_data_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00406e70
add esp, 8
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push eax
push str.no_local_file__s_n
call fcn.004035a0
add esp, 8
jmp 0x40b7db
push str.No_version_found___n
call fcn.004035a0
add esp, 4
mov ebx, dword [ebp - 0x458]
cmp dword [ebx], 0
je 0x40b806
push str.Using_cached_SHSH_n
call fcn.00403550
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
push str.Trying_to_fetch_new_SHSH_blob_n
call fcn.00403550
add esp, 4
call dword [sym.imp.plist.dll_plist_new_dict]
push dword [esi + 0x14]
mov edi, eax
push dword [esi + 0x10]
call dword [sym.imp.plist.dll_plist_new_uint]
mov ebx, dword [sym.imp.plist.dll_plist_dict_set_item]
push eax
push str.ApECID
push edi
call ebx
mov ecx, dword [esi + 0x18]
add esp, 0x14
test ecx, ecx
je 0x40b85c
mov eax, dword [esi + 0x1c]
cdq
push edx
push eax
push ecx
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
push eax
push str.ApNonce
push edi
call ebx
add esp, 0xc
lea eax, [ebp - 0x448]
mov dword [ebp - 0x44c], 0
push eax
lea edx, [ebp - 0x44c]
mov dword [ebp - 0x448], 0
mov ecx, esi
call fcn.0040b010
mov ecx, dword [ebp - 0x44c]
add esp, 4
test ecx, ecx
je 0x40b8bf
mov eax, dword [ebp - 0x448]
cdq
push edx
push eax
push ecx
call dword [sym.imp.plist.dll_plist_new_data]
add esp, 0xc
push eax
push str.ApSepNonce
push edi
call ebx
add esp, 0xc
push dword [ebp - 0x44c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 1
call dword [sym.imp.plist.dll_plist_new_bool]
add esp, 4
push eax
push str.ApProductionMode
push edi
call ebx
add esp, 0xc
cmp dword [esi + 0x20], 0
je 0x40b8fb
mov esi, dword [sym.imp.plist.dll_plist_new_bool]
push 1
call esi
add esp, 4
push eax
push str.ApSecurityMode
push edi
call ebx
add esp, 0xc
push 1
call esi
jmp 0x40b903
push 0
call dword [sym.imp.plist.dll_plist_new_bool]
add esp, 4
push eax
push str.ApSupportsImg4
push edi
call ebx
mov edx, dword [ebp - 0x454]
add esp, 0xc
mov ecx, edi
call fcn.004197a0
call dword [sym.imp.plist.dll_plist_new_dict]
mov esi, dword [sym.imp.plist.dll_plist_new_string]
push str.en_US
mov dword [ebp - 0x448], eax
call esi
add esp, 4
push eax
push str._Locality
push dword [ebp - 0x448]
call ebx
add esp, 0xc
push str.windows
call esi
add esp, 4
push eax
push str._HostPlatformInfo
push dword [ebp - 0x448]
call ebx
add esp, 0xc
push str.libauthinstall_698.0.5
call esi
add esp, 4
push eax
push str._VersionInfo
push dword [ebp - 0x448]
call ebx
add esp, 0xc
call fcn.004037f0
mov esi, eax
test esi, esi
je 0x40b9b2
push esi
call dword [sym.imp.plist.dll_plist_new_string]
add esp, 4
push eax
push str._UUID
push dword [ebp - 0x448]
call ebx
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov esi, dword [ebp - 0x448]
test esi, esi
jne 0x40b9d5
push str.ERROR:_Unable_to_create_TSS_request_n
call fcn.004035a0
add esp, 4
push edi
call dword [sym.imp.plist.dll_plist_free]
jmp 0x40bebc
push 0
mov edx, edi
mov ecx, esi
call fcn.0041a2b0
add esp, 4
test eax, eax
js 0x40bea0
push ecx
mov edx, edi
mov ecx, esi
call fcn.0041a770
add esp, 4
test eax, eax
js 0x40bea0
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x20], 0
je 0x40ba27
mov edx, edi
mov ecx, esi
call fcn.0041a0a0
test eax, eax
jns 0x40bb7d
push str.ERROR:_Unable_to_add_img4_tags_to_TSS_request_n
jmp 0x40bea5
test edi, edi
jne 0x40ba43
mov eax, str.ERROR:_Missing_required_AP_parameters_n
push eax
call fcn.004035a0
add esp, 4
push str.ERROR:_Unable_to_add_img3_tags_to_TSS_request_n
jmp 0x40bea5
push str.ApNonce
push edi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
mov dword [ebp - 0x454], eax
test eax, eax
je 0x40ba9e
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 7
je 0x40ba83
mov eax, str.ERROR:_Unable_to_find_required_ApNonce_in_parameters_n
push eax
call fcn.004035a0
add esp, 4
push str.ERROR:_Unable_to_add_img3_tags_to_TSS_request_n
jmp 0x40bea5
push dword [ebp - 0x454]
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.ApNonce
push esi
call ebx
add esp, 0xc
push 1
call dword [sym.imp.plist.dll_plist_new_bool]
add esp, 4
push eax
push str._APTicket
push esi
call ebx
add esp, 0xc
push str.ApBoardID
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40be8b
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 1
jne 0x40be8b
push str.ApChipID
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40be76
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 1
jne 0x40be76
push str.ApSecurityDomain
push esi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40be61
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 1
jne 0x40be61
push str.ApProductionMode
push edi
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
mov dword [ebp - 0x454], eax
test eax, eax
je 0x40be4c
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
test eax, eax
jne 0x40be4c
push dword [ebp - 0x454]
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.ApProductionMode
push esi
call ebx
add esp, 0xc
mov ecx, dword [ebp - 0x45c]
mov eax, dword [ecx + 0x4c]
cmp dword [eax], 4
jne 0x40bdf3
push str.FirmwarePreflightInfo
mov dword [ebp - 0x454], 0
call fcn.004115c0
add esp, 4
mov dword [ebp - 0x450], eax
test eax, eax
je 0x40bdd7
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 5
jne 0x40bdd7
mov eax, dword [ebp - 0x450]
push str.Nonce
push eax
mov dword [ebp - 0x454], eax
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bbfc
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.BbNonce
push edi
call ebx
add esp, 0xc
push str.ChipID
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bc2a
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.BbChipID
push edi
call ebx
add esp, 0xc
push str.CertID
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bc58
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.BbGoldCertId
push edi
call ebx
add esp, 0xc
push str.ChipSerialNo
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bc86
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.BbSNUM
push edi
call ebx
add esp, 0xc
push ecx
mov edx, edi
mov ecx, esi
call fcn.0041aa70
add esp, 4
push str.EUICCChipID
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
mov dword [ebp - 0x460], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x414], xmm0
test eax, eax
je 0x40bde4
push eax
call dword [sym.imp.plist.dll_plist_get_node_type]
add esp, 4
cmp eax, 1
jne 0x40bcfd
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.plist.dll_plist_get_uint_val]
push dword [ebp - 0x460]
call dword [sym.imp.plist.dll_plist_copy]
add esp, 0xc
push eax
push str.eUICC_ChipID
push edi
call ebx
add esp, 0xc
cmp dword [ebp - 0x410], 0
ja 0x40bd13
cmp dword [ebp - 0x414], 5
jb 0x40bde4
push str.EUICCCSN
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bd41
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.eUICC_EID
push edi
call ebx
add esp, 0xc
push str.EUICCCertIdentifier
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bd6f
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.eUICC_RootKeyIdentifier
push edi
call ebx
add esp, 0xc
push str.EUICCGoldNonce
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bd9d
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.EUICCGoldNonce
push edi
call ebx
add esp, 0xc
push str.EUICCMainNonce
push dword [ebp - 0x450]
call dword [sym.imp.plist.dll_plist_dict_get_item]
add esp, 8
test eax, eax
je 0x40bdcb
push eax
call dword [sym.imp.plist.dll_plist_copy]
add esp, 4
push eax
push str.EUICCMainNonce
push edi
call ebx
add esp, 0xc
push ecx
mov edx, edi
mov ecx, esi
call fcn.0041b8e0
jmp 0x40bde1
push str.ERROR:_Unable_to_get_FirmwarePreflightInfo_n
call fcn.004035a0
add esp, 4
mov ecx, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x454]
mov dword [ecx + 0x24], eax
mov edx, dword [ecx + 8]
mov ecx, esi
call fcn.0041c120
mov ebx, eax
test ebx, ebx
jne 0x40be12
push str.ERROR:_Unable_to_send_TSS_request_n
call fcn.00403550
jmp 0x40beaa
push str.Received_SHSH_blobs_n
call fcn.00403550
add esp, 4
push esi
mov esi, dword [sym.imp.plist.dll_plist_free]
call esi
add esp, 4
push edi
call esi
mov eax, dword [ebp - 0x458]
add esp, 4
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041c84a
mov esp, ebp
pop ebp
ret
mov eax, str.ERROR:_Unable_to_find_required_ApProductionMode_in_parameters_n
push eax
call fcn.004035a0
add esp, 4
push str.ERROR:_Unable_to_add_img3_tags_to_TSS_request_n
jmp 0x40bea5
mov eax, str.ERROR:_Unable_to_find_required_ApSecurityDomain_in_request_n
push eax
call fcn.004035a0
add esp, 4
push str.ERROR:_Unable_to_add_img3_tags_to_TSS_request_n
jmp 0x40bea5
mov eax, str.ERROR:_Unable_to_find_required_ApChipID_in_request_n
push eax
call fcn.004035a0
add esp, 4
push str.ERROR:_Unable_to_add_img3_tags_to_TSS_request_n
jmp 0x40bea5
mov eax, str.ERROR:_Unable_to_find_required_ApBoardID_in_request_n
push eax
call fcn.004035a0
add esp, 4
push str.ERROR:_Unable_to_add_img3_tags_to_TSS_request_n
jmp 0x40bea5
push str.ERROR:_Unable_to_add_common_tags_to_TSS_request_n
call fcn.004035a0
add esp, 4
push esi
mov esi, dword [sym.imp.plist.dll_plist_free]
call esi
add esp, 4
push edi
call esi
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.0041c84a
mov esp, ebp
pop ebp
ret