Function at 0x4a1720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
mov dword [esp], 0
mov ebx, dword [ebp + 0xc]
mov ecx, esp
mov edx, dword [eax]
push 2
push ebx
push eax
call dword [edx + 8]
cmp dword [esp], 0
js 0x4a183c
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
lea edi, [esp + 0x68]
push ebx
push edi
call fcn.00470b30
add esp, 8
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov ecx, esi
mov edx, edi
push eax
call fcn.004a2030
add esp, 4
test al, al
je 0x4a1857
push 0
push dword [esp + 4]
call fcn.00470db0
add esp, 8
test al, al
jne 0x4a17d1
push 0
push 3
call fcn.004813c0
add esp, 8
test al, al
jne 0x4a1dfa
push 0x1010
call fcn.00417780
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x1011
mov dword [esp + 0x18], 0x1000
push 0x1001
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0
push 0
push 0
push dword [esp + 0xc]
call fcn.00470490
add esp, 0x10
test edx, edx
js 0x4a1880
mov eax, dword [esp]
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x14]
test al, 1
je 0x4a18f1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x4a18f7
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
jne 0x4a1d7b
xor ebx, ebx
jmp 0x4a1d49
xor ebx, ebx
test byte [esp + 0x58], 1
je 0x4a1d36
push dword [esp + 0x60]
call fcn.00417920
add esp, 4
test byte [esp + 0x68], 1
jne 0x4a1d3d
jmp 0x4a1d49
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
je 0x4a1a8d
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov ebx, dword [eax]
call edi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0x116
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 0x17
push str._lseek_failed:_offset_0
jmp 0x4a1f73
shr eax, 1
lea ecx, [esp + 0x15]
mov edx, dword [esp + 0x80]
push eax
push ecx
push edx
call fcn.00423000
add esp, 0xc
test al, al
je 0x4a1a79
push 0
push 3
call fcn.004813c0
add esp, 8
test al, al
jne 0x4a1e81
movsd xmm1, qword [esi + 8]
movsd xmm0, qword [esi]
lea ecx, [esp + 0x20]
movsd qword [esp + 0x28], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x30], xmm1
movsd xmm1, qword [esi + 0x18]
movsd qword [esp + 0x38], xmm1
movsd xmm1, qword [esi + 0x20]
movsd qword [esp + 0x40], xmm1
mov eax, dword [esi + 0x30]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x28]
movsd xmm1, qword [esi + 0x28]
movsd qword [esp + 0x20], xmm0
movsd qword [esp + 0x48], xmm1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
push eax
push 0x34
push ecx
call fcn.004705f0
add esp, 0xc
push 0x40
call fcn.00417780
add esp, 4
movsd xmm1, qword [esp + 0x40]
movsd xmm2, qword [esp + 0x38]
mov ecx, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x48]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x41
mov dword [esp + 0xc], 0x34
movsd qword [eax + 0x20], xmm1
movsd xmm1, qword [esp + 0x30]
movsd qword [eax + 0x18], xmm2
movsd xmm2, qword [esp + 0x20]
mov dword [eax + 0x30], ecx
movsd qword [eax + 0x28], xmm0
lea ecx, [esp + 8]
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 0x28]
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
mov byte [eax + 0x34], 0
push 0
push 0x1000
call fcn.0041d570
mov edi, dword [esp]
call fcn.004704a0
push 0
push edx
push eax
push edi
call fcn.00470490
add esp, 0x10
test edx, edx
js 0x4a1ab6
mov eax, dword [esp]
lea ebx, [esp + 9]
mov dword [esp + 0x7c], eax
movzx eax, byte [esp + 8]
test al, 1
je 0x4a1b27
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x4a1b2b
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
jne 0x4a1ef1
xor ebx, ebx
test byte [esp + 0x14], 1
je 0x4a1d2b
push dword [esp + 0x1c]
call fcn.00417920
add esp, 4
test byte [esp + 0x58], 1
jne 0x4a1864
jmp 0x4a1d36
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
je 0x4a1cf5
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov ebx, dword [eax]
call edi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0x123
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 0x1f
push str._lseek_failed:_primary_geometry
jmp 0x4a200e
shr eax, 1
mov ecx, ebx
mov edx, dword [esp + 0x7c]
push eax
push ecx
push edx
call fcn.00423000
add esp, 0xc
test al, al
je 0x4a1b7c
mov edi, dword [esp]
call fcn.004704b0
push 0
push edx
push eax
push edi
call fcn.00470490
add esp, 0x10
test edx, edx
js 0x4a1bed
mov eax, dword [esp]
mov dword [esp + 0x78], eax
movzx eax, byte [esp + 8]
test al, 1
je 0x4a1c5e
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x4a1c60
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
je 0x4a1cf5
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov ebx, dword [eax]
call edi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0x127
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 7
push 0x531ba3
jmp 0x4a1fe4
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
je 0x4a1cf5
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov ebx, dword [eax]
call edi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0x12b
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 0x1e
push str._lseek_failed:_backup_geometry
jmp 0x4a200e
shr eax, 1
mov ecx, dword [esp + 0x78]
push eax
push ebx
push ecx
call fcn.00423000
add esp, 0xc
test al, al
je 0x4a1ce1
cmp dword [esi + 0x2c], 0
je 0x4a1d17
mov bl, 1
xor edi, edi
jmp 0x4a1c9c
mov esi, dword [ecx]
mov byte [esp + 4], al
call dword [esi + 0x10]
movzx eax, byte [esp + 4]
mov esi, dword [ebp + 0x10]
inc edi
and bl, al
cmp edi, dword [esi + 0x2c]
jae 0x4a1d19
mov ecx, dword [esp]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x53225c
mov dword [esp + 0x24], 0x4a26e0
mov edx, esi
mov esi, eax
mov dword [esp + 0x30], eax
push eax
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.004a2630
add esp, 0xc
mov ecx, dword [esp + 0x30]
cmp esi, ecx
je 0x4a1c83
test ecx, ecx
je 0x4a1c91
mov esi, dword [ecx]
mov byte [esp + 4], al
call dword [esi + 0x14]
jmp 0x4a1c8c
push 0
push 4
call fcn.004813c0
add esp, 8
test al, al
jne 0x4a1f8c
xor ebx, ebx
test byte [esp + 8], 1
je 0x4a1d20
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
test byte [esp + 0x14], 1
jne 0x4a1a9a
jmp 0x4a1d2b
mov bl, 1
test byte [esp + 8], 1
jne 0x4a1cfe
test byte [esp + 0x14], 1
jne 0x4a1a9a
test byte [esp + 0x58], 1
jne 0x4a1864
test byte [esp + 0x68], 1
je 0x4a1d49
push dword [esp + 0x70]
call fcn.00417920
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp]
cmp eax, 0xffffffff
je 0x4a1d62
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp], 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0xfc
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 0xe
push str._open_failed:
push eax
call fcn.004234b0
add esp, 0xc
push ebx
push eax
call fcn.0046f4b0
add esp, 8
mov ecx, esi
call fcn.00481540
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x4a1850
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp + 4], eax
call edi
lea edi, [esp + 0x20]
mov ecx, edi
push dword [eax]
push 0
push 3
push 0x110
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, edi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 0x14
push str._BLKROSET_0_failed:
push eax
call fcn.004234b0
add esp, 0xc
push ebx
push eax
call fcn.0046f4b0
add esp, 8
mov ecx, edi
call fcn.00481540
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
jmp 0x4a17d1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
lea edi, [esp + 0x20]
mov ecx, edi
mov dword [esp + 4], eax
push 0xffffffffffffffff
push 0
push 3
push 0x11e
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, edi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x2b
push str.Flashing_new_logical_partition_geometry_to
push eax
call fcn.004234b0
add esp, 0xc
push ebx
push eax
call fcn.0046f4b0
add esp, 8
mov ecx, edi
call fcn.00481540
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
jmp 0x4a1925
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov ebx, dword [eax]
call edi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0x11a
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 7
push 0x531ba3
push eax
call fcn.004234b0
add esp, 0xc
movzx edx, byte [esp + 0x14]
test dl, 1
je 0x4a1f62
mov edx, dword [esp + 0x18]
jmp 0x4a1f64
shr edx, 1
mov ecx, eax
push edx
call fcn.0048ceb0
push 0xd
push str._bytes_failed
push eax
call fcn.004234b0
add esp, 0xc
mov ecx, esi
call fcn.00481540
call edi
mov dword [eax], ebx
jmp 0x4a1a8d
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov ebx, dword [eax]
call edi
lea esi, [esp + 0x20]
mov ecx, esi
push dword [eax]
push 0
push 4
push 0x12f
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00481460
mov ecx, esi
call fcn.00481430
push 7
push 0x531ad0
push eax
call fcn.004234b0
add esp, 0xc
push 0x8e
push str.bool_android::fs_mgr::FlashPartitionTable_const_android::fs_mgr::IPartitionOpener___const_std::string___const_android::fs_mgr::LpMetadata__
push eax
call fcn.004234b0
add esp, 0xc
push 0xe
push str._backup_write
push eax
call fcn.004234b0
add esp, 0xc
movzx edx, byte [esp + 8]
test dl, 1
je 0x4a1ffd
mov edx, dword [esp + 0xc]
jmp 0x4a1fff
shr edx, 1
mov ecx, eax
push edx
call fcn.0048ceb0
push 0xd
push str._bytes_failed
push eax
call fcn.004234b0
add esp, 0xc
mov ecx, esi
call fcn.00481540
call edi
mov dword [eax], ebx
jmp 0x4a1cf5