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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
test edx, edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
jne 0x665c00d0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, eax
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x44], ecx
mov edi, dword [ebp]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x28], eax
mov eax, ebp
call sym._checkRef
test eax, eax
mov dword [esp + 0x20], eax
jne 0x665c00b6
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x50]
mov dword [ebp + 0x1c], str.Page__d:
mov dword [ebp + 0x20], eax
mov edx, eax
mov dword [esp], 0
mov eax, edi
call sym._btreeGetPage
test eax, eax
je 0x665c0170
mov dword [esp + 8], eax
mov dword [esp + 4], str.unable_to_get_the_page._error_code_d
mov dword [esp], ebp
call sym._checkAppendMsg
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x20]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x50]
mov byte [eax], 0
call sym._btreeInitPage.part.376
test eax, eax
jne 0x665c0720
mov eax, dword [esp + 0x50]
cmp word [eax + 0x12], 0
je 0x665c0359
lea ebx, [esp + 0x68]
mov edx, dword [ebp + 0x10]
xor esi, esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x28]
sub ebx, 4
test edx, edx
mov dword [esp + 0x4c], ebx
je 0x665c0359
mov dword [esp + 0x2c], edi
jmp 0x665c02aa
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
movzx edi, word [esp + 0x78]
cmp ebx, edi
jbe 0x665c022a
mov edx, dword [esp + 0x2c]
movzx ecx, word [esp + 0x7a]
add ecx, dword [esp + 0x20]
mov edx, dword [edx + 0x24]
add edx, dword [eax + 0x38]
cmp ecx, edx
ja 0x665c022a
mov eax, dword [esp + 0x28]
xor edx, edx
lea eax, [eax + ebx - 5]
mov ebx, dword [ecx]
sub eax, edi
div dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
bswap ebx
cmp byte [edx + 0x11], 0
mov edi, eax
jne 0x665c05e4
mov eax, ebp
mov dword [esp], edi
mov ecx, ebx
xor edx, edx
call sym._checkList
mov eax, dword [esp + 0x50]
cmp byte [eax + 5], 0
jne 0x665c0290
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x11], 0
bswap ebx
jne 0x665c05b1
test esi, esi
je 0x665c0590
lea eax, [esp + 0x60]
lea ecx, [esp + 0x58]
mov edx, ebx
mov dword [esp], eax
mov eax, ebp
call sym._checkTreePage
cmp eax, dword [esp + 0x40]
mov ebx, eax
je 0x665c05a8
mov dword [esp + 4], str.Child_page_depth_differs
mov dword [esp], ebp
call sym._checkAppendMsg
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], ebx
lea esi, [esi]
lea edi, [edi]
movzx edx, word [eax + 0x12]
add esi, 1
cmp edx, esi
jle 0x665c05d0
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x665c05d0
mov ecx, dword [eax + 0x40]
mov edi, dword [esp + 0x24]
mov dword [ebp + 0x1c], str.On_tree_page__d_cell__d:
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x20], edi
movzx edx, byte [ecx + esi*2]
movzx ecx, byte [ecx + esi*2 + 1]
shl edx, 8
or edx, ecx
movzx ecx, word [eax + 0x14]
and edx, ecx
add edx, dword [eax + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
call sym._btreeParseCellPtr
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x74]
cmp byte [eax + 2], 0
je 0x665c01d4
test esi, esi
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
je 0x665c01c4
mov edi, dword [esp + 0x60]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x64]
cmp edx, edi
jg 0x665c01cc
jl 0x665c0324
cmp ecx, dword [esp + 0x48]
ja 0x665c01cc
mov eax, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
mov dword [esp + 4], str.Rowid__lld_out_of_order__previous_was__lld_
mov dword [esp], ebp
mov dword [esp + 0x10], eax
call sym._checkAppendMsg
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
jmp 0x665c01cc
mov dword [esp + 0x20], 1
cmp byte [eax + 5], 0
jne 0x665c03af
movzx edx, byte [eax + 6]
mov ecx, dword [eax + 0x38]
mov esi, dword [esp + 0x24]
mov ebx, dword [ecx + edx + 8]
mov dword [ebp + 0x1c], str.On_page__d_at_right_child:
mov dword [ebp + 0x20], esi
cmp byte [edi + 0x11], 0
bswap ebx
jne 0x665c077c
cmp word [eax + 0x12], 0
lea edx, [esp + 0x60]
mov eax, 0
cmovne eax, edx
xor ecx, ecx
mov edx, ebx
mov dword [esp], eax
mov eax, ebp
call sym._checkTreePage
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x24]
mov dword [ebp + 0x1c], str.Page__d:
mov dword [ebp + 0x20], esi
cmp byte [eax + 5], 0
je 0x665c0480
cmp byte [eax + 2], 0
je 0x665c0480
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x665c0796
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x665c07f4
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x5c]
cmp edx, eax
jl 0x665c0427
jg 0x665c0407
cmp ecx, ebx
jb 0x665c0427
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
mov dword [esp], ebp
call sym._checkAppendMsg
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
mov eax, dword [esp + 0x64]
cmp ecx, eax
jg 0x665c046d
jl 0x665c0445
cmp ebx, edx
jae 0x665c046d
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
mov dword [esp], ebp
call sym._checkAppendMsg
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x44]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esi], edx
lea esi, [esi]
mov esi, dword [eax + 0x38]
movzx ebx, byte [eax + 6]
mov eax, dword [edi + 0x20]
call sym._pcache1Alloc
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [ebp + 0x1c], 0
je 0x665c0770
movzx eax, bl
movzx edx, byte [esi + eax + 5]
mov edi, eax
mov dword [esp + 0x48], eax
movzx eax, byte [esi + eax + 6]
lea ebx, [edi + 0xc]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x2c]
sub edx, 1
movzx edx, dx
mov dword [eax], 0
call sym._btreeHeapInsert
mov edx, dword [esp + 0x50]
movzx ecx, byte [esi + edi + 3]
movzx eax, byte [esi + edi + 4]
mov edi, dword [esp + 0x28]
movzx edx, byte [edx + 5]
sub edi, 3
shl ecx, 8
mov dword [esp + 0x40], edi
shl edx, 2
sub ebx, edx
lea edi, [esi + ebx]
xor ebx, ebx
or ecx, eax
mov dword [esp + 0x30], ecx
je 0x665c0604
mov dword [esp + 0x44], esi
mov esi, edi
mov edi, ebx
jmp 0x665c0545
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x1c], 0
mov dword [esp + 8], edi
mov dword [esp + 4], str.Corruption_detected_in_cell__d_on_page__d
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sym._checkAppendMsg
add edi, 1
add esi, 2
cmp dword [esp + 0x30], edi
je 0x665c0600
movzx ebx, byte [esi]
movzx edx, byte [esi + 1]
mov eax, 0x10000
shl ebx, 8
or ebx, edx
cmp ebx, dword [esp + 0x40]
jge 0x665c056f
mov eax, dword [esp + 0x44]
lea edx, [eax + ebx]
mov eax, dword [esp + 0x50]
call sym._cellSizePtr
movzx eax, ax
lea edx, [eax + ebx - 1]
cmp dword [esp + 0x28], edx
jle 0x665c0512
mov eax, dword [esp + 0x2c]
shl ebx, 0x10
or edx, ebx
call sym._btreeHeapInsert
jmp 0x665c0535
lea ecx, [esp + 0x58]
mov dword [esp], 0
mov edx, ebx
mov eax, ebp
call sym._checkTreePage
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x50]
jmp 0x665c0290
mov eax, dword [esp + 0x24]
mov ecx, 5
mov edx, ebx
mov dword [esp], eax
mov eax, ebp
call sym._checkPtrmap
jmp 0x665c0246
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add esi, 1
mov dword [esp + 0x20], esi
jmp 0x665c0361
mov eax, dword [esp + 0x24]
mov ecx, 3
mov edx, ebx
mov dword [esp], eax
mov eax, ebp
call sym._checkPtrmap
jmp 0x665c0218
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
movzx ebx, byte [esi + eax + 1]
movzx eax, byte [esi + eax + 2]
shl ebx, 8
or ebx, eax
je 0x665c0651
lea esi, [esi]
movzx eax, byte [esi + ebx + 2]
movzx edx, byte [esi + ebx + 3]
shl eax, 8
or eax, edx
lea edx, [ebx + eax - 1]
mov eax, ebx
shl eax, 0x10
or edx, eax
mov eax, edi
call sym._btreeHeapInsert
movzx eax, byte [esi + ebx]
movzx ebx, byte [esi + ebx + 1]
shl eax, 8
or ebx, eax
jne 0x665c0620
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x54]
xor ebx, ebx
mov eax, edi
call sym._btreeHeapPull
lea eax, [esp + 0x68]
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], ebp
mov esi, edi
mov edi, eax
jmp 0x665c0698
movzx ecx, word [esp + 0x54]
mov edx, dword [esp + 0x68]
mov eax, edx
lea ebp, [ecx + 1]
shr eax, 0x10
cmp ebp, eax
ja 0x665c0741
sub eax, 1
mov dword [esp + 0x54], edx
sub eax, ecx
add ebx, eax
mov edx, edi
mov eax, esi
call sym._btreeHeapPull
test eax, eax
jne 0x665c0674
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
jne 0x665c06f4
mov eax, dword [esp + 0x28]
movzx edx, word [esp + 0x54]
sub eax, 1
sub eax, edx
add ebx, eax
mov eax, dword [esp + 0x48]
movzx eax, byte [esi + eax + 7]
cmp ebx, eax
je 0x665c06f4
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
mov dword [esp], ebp
mov dword [esp + 0x10], edi
call sym._checkAppendMsg
mov eax, dword [esp + 0x2c]
call sym._pcache1Free
mov eax, dword [esp + 0x50]
test eax, eax
je 0x665c0142
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerUnrefNotNull
jmp 0x665c0142
mov dword [esp + 8], eax
mov dword [esp + 4], str.btreeInitPage___returns_error_code__d
mov dword [esp], ebp
call sym._checkAppendMsg
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x665c0709
jmp 0x665c0142
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Multiple_uses_for_byte__u_of_page__d
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], edi
mov dword [esp], ebp
call sym._checkAppendMsg
jmp 0x665c06ad
mov dword [ebp + 0x18], 1
jmp 0x665c06f4
mov eax, ebp
mov dword [esp], esi
mov ecx, 5
mov edx, ebx
call sym._checkPtrmap
mov eax, dword [esp + 0x50]
jmp 0x665c038c
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x665c0480
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0x58]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov esi, dword [esp + 0x5c]
cmp edx, esi
jl 0x665c0480
jg 0x665c07cb
cmp ecx, ebx
jb 0x665c0480
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
mov dword [esp], ebp
call sym._checkAppendMsg
mov eax, dword [esp + 0x50]
jmp 0x665c0480
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x60]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov esi, dword [esp + 0x64]
cmp edx, esi
jg 0x665c0480
jl 0x665c0817
cmp ecx, ebx
jae 0x665c0480
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
mov dword [esp], ebp
call sym._checkAppendMsg
mov eax, dword [esp + 0x50]
jmp 0x665c0480