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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x6c
mov edi, dword [eax]
mov eax, dword [edi + 4]
mov dword [ebp - 0x44], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x3c], eax
add eax, eax
add eax, ebx
mov dword [ebp - 0x54], eax
movzx eax, word [eax + 0x50]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea eax, [ebx + eax*4]
mov esi, dword [eax + 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x40]
movzx eax, word [eax + ecx*2]
xchg al, ah
and eax, dword [esi + 0x18]
movzx eax, ax
add eax, dword [esi + 0x38]
mov dword [ebp - 0x4c], eax
mov al, dl
and al, 2
mov byte [ebp - 0x55], al
jne 0x61e416b7
mov dword [ebp - 0x48], 0
jmp 0x61e4170a
cmp byte [esi + 8], 0
je 0x61e416f0
mov eax, dword [ebp - 0x4c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._cellSizePtr
movzx edx, word [esi + 0x14]
movzx eax, ax
mov ecx, 3
lea eax, [edx + eax + 1]
xor edx, edx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x24]
add eax, eax
div ecx
cmp dword [ebp - 0x48], eax
jl 0x61e41703
mov eax, ebx
call sym._saveCursorKey
test eax, eax
mov dword [ebp - 0x34], eax
je 0x61e416ae
jmp 0x61e41908
mov dword [ebp - 0x48], 1
cmp byte [esi + 8], 0
jne 0x61e41731
lea eax, [ebp - 0x30]
mov dword [esp], ebx
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
call sym._sqlite3BtreePrevious
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x61e41908
test byte [ebx + 0x40], 0x20
jne 0x61e41753
cmp dword [ebx + 0x48], 0
jne 0x61e4176f
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov eax, edi
mov dword [esp], 0
call sym._invalidateIncrblobCursors
jmp 0x61e4176f
mov eax, dword [ebp - 0x44]
mov edx, dword [ebx + 0x34]
mov ecx, ebx
mov eax, dword [eax + 8]
call sym._saveAllCursors.isra.465
test eax, eax
mov dword [ebp - 0x34], eax
je 0x61e41737
jmp 0x61e41908
mov eax, dword [esi + 0x48]
call sym._sqlite3PagerWrite
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x61e41908
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x30]
mov eax, esi
call sym._clearCell
movzx ecx, word [ebp - 0x1e]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, esi
call sym._dropCell
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x61e41908
cmp byte [esi + 8], 0
je 0x61e417ce
mov eax, ebx
call sym._balance
test eax, eax
mov dword [ebp - 0x34], eax
je 0x61e4188f
jmp 0x61e418bc
movsx eax, byte [ebx + 0x44]
mov edi, dword [ebx + eax*4 + 0x78]
movzx ecx, word [edi + 0x16]
mov edx, dword [edi + 0x40]
movzx eax, word [edx + ecx*2 - 2]
xchg al, ah
and eax, dword [edi + 0x18]
movzx eax, ax
add eax, dword [edi + 0x38]
mov edx, eax
mov eax, dword [edi + 0x38]
add eax, 4
cmp edx, eax
jae 0x61e41808
mov eax, 0x1059e
call sym._sqlite3CorruptError
jmp 0x61e41908
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], edx
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 4]
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [ebp - 0x50], eax
call dword [edi + 0x4c]
movzx eax, ax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x48]
call sym._sqlite3PagerWrite
test eax, eax
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x5c]
jne 0x61e4186d
lea eax, [ebp - 0x34]
lea ecx, [edx - 4]
mov edx, dword [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
add eax, 4
mov dword [esp], eax
mov eax, esi
call sym._insertCell
movzx edx, word [edi + 0x16]
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, edi
dec edx
call sym._dropCell
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x61e417b7
jmp 0x61e41908
movsx eax, byte [ebx + 0x44]
cmp dword [ebp - 0x3c], eax
jge 0x61e418bc
movsx edx, byte [ebx + 0x44]
cmp dword [ebp - 0x3c], edx
mov eax, edx
jge 0x61e418b2
dec eax
mov byte [ebx + 0x44], al
mov eax, dword [ebx + edx*4 + 0x78]
call sym._releasePage
jmp 0x61e41898
mov eax, ebx
call sym._balance
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x61e41905
cmp dword [ebp - 0x48], 0
je 0x61e418f1
mov byte [ebx + 0x42], 2
movzx edx, word [esi + 0x16]
cmp dword [ebp - 0x40], edx
mov eax, edx
jl 0x61e418e8
mov esi, dword [ebp - 0x54]
dec eax
mov dword [ebx + 0x3c], 0xffffffff
mov word [esi + 0x50], ax
jmp 0x61e41905
mov dword [ebx + 0x3c], 1
jmp 0x61e41905
mov eax, ebx
call sym._moveToRoot
cmp byte [ebp - 0x55], 0
mov dword [ebp - 0x34], eax
je 0x61e41905
mov byte [ebx + 0x42], 3
mov eax, dword [ebp - 0x34]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret