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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 4]
mov eax, dword [edi]
push 2
push ebx
push edi
call dword [eax + 8]
cmp dword [esp + 4], 0
js 0x452c59
mov esi, dword [ebp + 0x10]
mov eax, ebx
lea ebx, [esp + 0x70]
push eax
push ebx
call fcn.00435440
add esp, 8
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov ecx, edi
mov edx, esi
push eax
push ebx
call fcn.00453420
add esp, 8
test al, al
je 0x452c6e
push 0
push dword [esp + 8]
call fcn.00435660
add esp, 8
test al, al
jne 0x452bf2
call fcn.004427c0
cmp eax, 3
jle 0x4531f2
push 0x1010
call fcn.0040bb60
add esp, 4
movsd xmm0, qword [0x51e4f0]
mov dword [esp + 0x1c], eax
movsd qword [esp + 0x14], xmm0
push 0x1001
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push 0
push 0
push dword [esp + 0x10]
call fcn.00434e90
add esp, 0x10
test edx, edx
js 0x452c97
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
movzx eax, byte [esp + 0x14]
test al, 1
je 0x452d04
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x452d0a
call fcn.004427c0
cmp eax, 4
jle 0x45316f
xor ebx, ebx
jmp 0x45313b
xor ebx, ebx
test byte [esp + 0x58], 1
je 0x453128
push dword [esp + 0x60]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x70], 1
jne 0x45312f
jmp 0x45313b
call fcn.004427c0
cmp eax, 4
jg 0x452e93
mov edi, dword [sym.imp.msvcrt.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 0
push 0x110
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, esi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 0x17
push str._lseek_failed:_offset_0
jmp 0x45335f
shr eax, 1
lea ecx, [esp + 0x15]
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call fcn.004128d0
add esp, 0xc
mov ebx, eax
call fcn.004427c0
test bl, bl
je 0x452e8a
cmp eax, 3
jle 0x453271
mov eax, dword [ebp + 0x10]
lea esi, [esp + 0x20]
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
mov ecx, eax
movsd qword [esp + 0x28], xmm1
movsd xmm1, qword [eax + 0x10]
movsd qword [esp + 0x30], xmm1
movsd xmm1, qword [eax + 0x18]
movsd qword [esp + 0x38], xmm1
movsd xmm1, qword [eax + 0x20]
movsd qword [esp + 0x40], xmm1
mov eax, dword [eax + 0x30]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x28]
movsd xmm1, qword [ecx + 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 esi
call fcn.00434ff0
add esp, 0xc
push 0x40
call fcn.0040bb60
add esp, 4
movsd xmm2, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
mov ecx, dword [esp + 0x50]
movsd xmm0, qword [0x51e500]
mov dword [esp + 0x10], eax
movsd qword [eax + 0x28], xmm2
movsd qword [eax + 0x20], xmm1
movsd xmm2, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x30]
mov dword [eax + 0x30], ecx
movsd qword [esp + 8], xmm0
lea ecx, [esp + 8]
movsd qword [eax + 0x18], xmm2
movsd qword [eax + 0x10], xmm1
movsd xmm2, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm2
mov byte [eax + 0x34], 0
push 0
push 0x1000
call fcn.004e8710
mov edi, dword [esp + 4]
call fcn.00434ea0
push 0
push edx
push eax
push edi
call fcn.00434e90
add esp, 0x10
test edx, edx
js 0x452ebc
mov eax, dword [esp + 4]
lea edi, [esp + 9]
mov dword [esp + 0x68], eax
movzx eax, byte [esp + 8]
test al, 1
je 0x452f29
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x452f2d
cmp eax, 4
jle 0x4532db
xor ebx, ebx
test byte [esp + 0x14], 1
je 0x45311d
push dword [esp + 0x1c]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x58], 1
jne 0x452c7b
jmp 0x453128
call fcn.004427c0
cmp eax, 4
jg 0x4530e7
mov edi, dword [sym.imp.msvcrt.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 0
push 0x11d
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, esi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 0x1f
push str._lseek_failed:_primary_geometry
jmp 0x4533fc
shr eax, 1
mov ecx, edi
mov edx, dword [esp + 0x68]
push eax
push ecx
push edx
call fcn.004128d0
add esp, 0xc
test al, al
je 0x452f80
mov ebx, dword [esp + 4]
call fcn.00434eb0
push 0
push edx
push eax
push ebx
call fcn.00434e90
add esp, 0x10
test edx, edx
js 0x452fed
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 8]
test al, 1
je 0x45305a
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x45305c
call fcn.004427c0
cmp eax, 4
jg 0x4530e7
mov edi, dword [sym.imp.msvcrt.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 0
push 0x121
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, esi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 7
push 0x51e607
jmp 0x4533d2
call fcn.004427c0
cmp eax, 4
jg 0x4530e7
mov edi, dword [sym.imp.msvcrt.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 0
push 0x125
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, esi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 0x1e
push str._lseek_failed:_backup_geometry
jmp 0x4533fc
shr eax, 1
mov ecx, dword [esp + 0x64]
push eax
push edi
push ecx
call fcn.004128d0
add esp, 0xc
test al, al
je 0x4530d9
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x2c], 0
je 0x453109
mov bl, 1
xor edi, edi
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], 0x5339f4
mov dword [esp + 0x24], 0x453c40
mov dword [esp + 0x30], esi
push esi
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.00453b90
add esp, 0xc
mov ecx, dword [esp + 0x30]
cmp esi, ecx
je 0x4530be
test ecx, ecx
je 0x4530cc
mov byte [esp + 3], al
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x4530c7
mov byte [esp + 3], al
mov eax, dword [ecx]
call dword [eax + 0x10]
movzx eax, byte [esp + 3]
mov edx, dword [ebp + 0x10]
inc edi
and bl, al
cmp edi, dword [edx + 0x2c]
jb 0x453080
jmp 0x45310b
call fcn.004427c0
cmp eax, 4
jle 0x453378
xor ebx, ebx
test byte [esp + 8], 1
je 0x453112
push dword [esp + 0x10]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x14], 1
jne 0x452ea0
jmp 0x45311d
mov bl, 1
test byte [esp + 8], 1
jne 0x4530f0
test byte [esp + 0x14], 1
jne 0x452ea0
test byte [esp + 0x58], 1
jne 0x452c7b
test byte [esp + 0x70], 1
je 0x45313b
push dword [esp + 0x78]
call fcn.0040bd10
add esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x453155
push eax
call sub.msvcrt.dll__close
add esp, 4
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov esi, ebx
mov ebx, dword [eax]
call edi
lea edi, [esp + 0x20]
mov ecx, edi
push dword [eax]
push 0
push 4
push 0
push 0xf6
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, edi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 0xe
push str._open_failed:
push eax
call fcn.004ffbe0
add esp, 0xc
push esi
push eax
call fcn.0050f9b0
add esp, 8
mov ecx, edi
call fcn.004428d0
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x452c67
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebx, dword [eax]
call esi
lea edi, [esp + 0x20]
mov ecx, edi
push dword [eax]
push 0
push 3
push 0
push 0x10a
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, edi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 0x14
push str._BLKROSET_0_failed:
push eax
call fcn.004ffbe0
add esp, 0xc
push dword [ebp + 0xc]
push eax
call fcn.0050f9b0
add esp, 8
mov ecx, edi
call fcn.004428d0
call esi
mov dword [eax], ebx
jmp 0x452bf2
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebx, dword [eax]
lea edi, [esp + 0x20]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 3
push 0
push 0x118
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, edi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
add esp, 0xc
push 0x2b
push str.Flashing_new_logical_partition_geometry_to
push eax
call fcn.004ffbe0
add esp, 0xc
push dword [ebp + 0xc]
push eax
call fcn.0050f9b0
add esp, 8
mov ecx, edi
call fcn.004428d0
call esi
mov dword [eax], ebx
jmp 0x452d31
mov edi, dword [sym.imp.msvcrt.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 0
push 0x114
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, esi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 7
push 0x51e607
push eax
call fcn.004ffbe0
add esp, 0xc
movzx edx, byte [esp + 0x14]
test dl, 1
je 0x45334e
mov edx, dword [esp + 0x18]
jmp 0x453350
shr edx, 1
mov ecx, eax
push edx
call fcn.004f3200
push 0xd
push str._bytes_failed
push eax
call fcn.004ffbe0
add esp, 0xc
mov ecx, esi
call fcn.004428d0
call edi
mov dword [eax], ebx
jmp 0x452e93
mov edi, dword [sym.imp.msvcrt.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 0
push 0x129
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.004427e0
mov ecx, esi
call fcn.004427d0
push 7
push 0x51e534
push eax
call fcn.004ffbe0
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.004ffbe0
add esp, 0xc
push 0xe
push str._backup_write
push eax
call fcn.004ffbe0
add esp, 0xc
movzx edx, byte [esp + 8]
test dl, 1
je 0x4533eb
mov edx, dword [esp + 0xc]
jmp 0x4533ed
shr edx, 1
mov ecx, eax
push edx
call fcn.004f3200
push 0xd
push str._bytes_failed
push eax
call fcn.004ffbe0
add esp, 0xc
mov ecx, esi
call fcn.004428d0
call edi
mov dword [eax], ebx
jmp 0x4530e7