Function at 0x498030
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 0x49812b
mov esi, dword [ebp + 0x10]
mov eax, ebx
lea ebx, [esp + 0x70]
push eax
push ebx
call fcn.0046b020
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.004988f0
add esp, 8
test al, al
je 0x498140
push 0
push dword [esp + 8]
call fcn.0046b280
add esp, 8
test al, al
jne 0x4980c2
call fcn.00479070
cmp eax, 3
jle 0x4986c6
push 0x1010
call fcn.00416880
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 + 0x10]
call fcn.0046aa60
add esp, 0x10
test edx, edx
js 0x498169
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
movzx eax, byte [esp + 0x14]
test al, 1
je 0x4981d6
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x4981dc
call fcn.00479070
cmp eax, 4
jle 0x498643
xor ebx, ebx
jmp 0x49860f
xor ebx, ebx
test byte [esp + 0x58], 1
je 0x4985fc
push dword [esp + 0x60]
call fcn.00416a20
add esp, 4
test byte [esp + 0x70], 1
jne 0x498603
jmp 0x49860f
call fcn.00479070
cmp eax, 4
jg 0x498367
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 0
push 0x110
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00479090
mov ecx, esi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 0x17
push str._lseek_failed:_offset_0
jmp 0x498833
shr eax, 1
lea ecx, [esp + 0x15]
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call fcn.00422200
add esp, 0xc
mov ebx, eax
call fcn.00479070
test bl, bl
je 0x49835e
cmp eax, 3
jle 0x498745
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.0046abc0
add esp, 0xc
push 0x40
call fcn.00416880
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.0041c6b0
mov edi, dword [esp + 4]
call fcn.0046aa70
push 0
push edx
push eax
push edi
call fcn.0046aa60
add esp, 0x10
test edx, edx
js 0x498390
mov eax, dword [esp + 4]
lea edi, [esp + 9]
mov dword [esp + 0x68], eax
movzx eax, byte [esp + 8]
test al, 1
je 0x4983fd
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x498401
cmp eax, 4
jle 0x4987af
xor ebx, ebx
test byte [esp + 0x14], 1
je 0x4985f1
push dword [esp + 0x1c]
call fcn.00416a20
add esp, 4
test byte [esp + 0x58], 1
jne 0x49814d
jmp 0x4985fc
call fcn.00479070
cmp eax, 4
jg 0x4985bb
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 0
push 0x11d
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00479090
mov ecx, esi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 0x1f
push str._lseek_failed:_primary_geometry
jmp 0x4988d0
shr eax, 1
mov ecx, edi
mov edx, dword [esp + 0x68]
push eax
push ecx
push edx
call fcn.00422200
add esp, 0xc
test al, al
je 0x498454
mov ebx, dword [esp + 4]
call fcn.0046aa80
push 0
push edx
push eax
push ebx
call fcn.0046aa60
add esp, 0x10
test edx, edx
js 0x4984c1
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
movzx eax, byte [esp + 8]
test al, 1
je 0x49852e
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x498530
call fcn.00479070
cmp eax, 4
jg 0x4985bb
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 0
push 0x121
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00479090
mov ecx, esi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 7
push 0x51c9d3
jmp 0x4988a6
call fcn.00479070
cmp eax, 4
jg 0x4985bb
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 0
push 0x125
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00479090
mov ecx, esi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 0x1e
push str._lseek_failed:_backup_geometry
jmp 0x4988d0
shr eax, 1
mov ecx, dword [esp + 0x64]
push eax
push edi
push ecx
call fcn.00422200
add esp, 0xc
test al, al
je 0x4985ad
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x2c], 0
je 0x4985dd
mov bl, 1
xor edi, edi
jmp 0x49856f
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]
jae 0x4985df
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], 0x51d0b8
mov dword [esp + 0x24], 0x499130
mov dword [esp + 0x30], esi
push esi
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.00499080
add esp, 0xc
mov ecx, dword [esp + 0x30]
cmp esi, ecx
je 0x498556
test ecx, ecx
je 0x498564
mov byte [esp + 3], al
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x49855f
call fcn.00479070
cmp eax, 4
jle 0x49884c
xor ebx, ebx
test byte [esp + 8], 1
je 0x4985e6
push dword [esp + 0x10]
call fcn.00416a20
add esp, 4
test byte [esp + 0x14], 1
jne 0x498374
jmp 0x4985f1
mov bl, 1
test byte [esp + 8], 1
jne 0x4985c4
test byte [esp + 0x14], 1
jne 0x498374
test byte [esp + 0x58], 1
jne 0x49814d
test byte [esp + 0x70], 1
je 0x49860f
push dword [esp + 0x78]
call fcn.00416a20
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 + 4]
cmp eax, 0xffffffff
je 0x498629
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp + 4], 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 edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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.00479090
mov ecx, edi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 0xe
push str._open_failed:
push eax
call fcn.00422660
add esp, 0xc
push esi
push eax
call fcn.00469a80
add esp, 8
mov ecx, edi
call fcn.00479180
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
jmp 0x498139
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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.00479090
mov ecx, edi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 0x14
push str._BLKROSET_0_failed:
push eax
call fcn.00422660
add esp, 0xc
push dword [ebp + 0xc]
push eax
call fcn.00469a80
add esp, 8
mov ecx, edi
call fcn.00479180
call esi
mov dword [eax], ebx
jmp 0x4980c2
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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.00479090
mov ecx, edi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
add esp, 0xc
push 0x2b
push str.Flashing_new_logical_partition_geometry_to
push eax
call fcn.00422660
add esp, 0xc
push dword [ebp + 0xc]
push eax
call fcn.00469a80
add esp, 8
mov ecx, edi
call fcn.00479180
call esi
mov dword [eax], ebx
jmp 0x498203
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 0
push 0x114
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00479090
mov ecx, esi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 7
push 0x51c9d3
push eax
call fcn.00422660
add esp, 0xc
movzx edx, byte [esp + 0x14]
test dl, 1
je 0x498822
mov edx, dword [esp + 0x18]
jmp 0x498824
shr edx, 1
mov ecx, eax
push edx
call fcn.00484950
push 0xd
push str._bytes_failed
push eax
call fcn.00422660
add esp, 0xc
mov ecx, esi
call fcn.00479180
call edi
mov dword [eax], ebx
jmp 0x498367
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 0
push 0x129
push str.system_core_fs_mgr_liblp_writer.cpp
call fcn.00479090
mov ecx, esi
call fcn.00479080
push 7
push 0x51c900
push eax
call fcn.00422660
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.00422660
add esp, 0xc
push 0xe
push str._backup_write
push eax
call fcn.00422660
add esp, 0xc
movzx edx, byte [esp + 8]
test dl, 1
je 0x4988bf
mov edx, dword [esp + 0xc]
jmp 0x4988c1
shr edx, 1
mov ecx, eax
push edx
call fcn.00484950
push 0xd
push str._bytes_failed
push eax
call fcn.00422660
add esp, 0xc
mov ecx, esi
call fcn.00479180
call edi
mov dword [eax], ebx
jmp 0x4985bb