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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x100c58c0]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push str.Page__d:
lea eax, [esp + 0x70]
push eax
push 0x64
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], edx
call sym.SQLite.Interop.dll_sqlite3_snprintf
mov edi, dword [ebx]
mov ecx, dword [edi + 0x24]
add esp, 0x10
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], ecx
je 0x1006bd05
mov edx, dword [esp + 0x1c]
push edx
mov eax, esi
mov edx, ebx
call fcn.1005ef90
add esp, 4
test eax, eax
jne 0x1006bd05
mov ecx, dword [edi]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push ecx
call fcn.100670a0
add esp, 0x10
test eax, eax
jne 0x1006bcf1
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [ebx + 0x44], eax
cmp esi, 1
setne al
sub al, 1
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x34], edi
mov esi, ebx
mov dword [esp + 0x30], ebx
and eax, 0x64
mov byte [ebx + 5], al
mov byte [ebx], 0
call fcn.100627d0
test eax, eax
je 0x1006bd1c
mov esi, dword [esp + 0x10]
push eax
push str.btreeInitPage___returns_error_code__d
lea edi, [esp + 0x70]
call fcn.1005e6f0
add esp, 8
mov eax, ebx
call fcn.10024d00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100019b7
mov esp, ebp
pop ebp
ret
push eax
push str.unable_to_get_the_page._error_code_d
lea edi, [esp + 0x70]
mov esi, ebx
call fcn.1005e6f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.100019b7
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp word [ebx + 0x10], di
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], edi
jbe 0x1006bf52
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x10], 0
je 0x1006bf52
mov edx, dword [ebp + 0xc]
push edi
push edx
push str.On_tree_page__d_cell__d:
lea eax, [esp + 0x74]
push eax
push 0x64
call sym.SQLite.Interop.dll_sqlite3_snprintf
mov ecx, dword [ebx + 0x40]
movzx edx, byte [ecx + edi*2 + 1]
mov dh, byte [ecx + edi*2]
lea eax, [ecx + edi*2]
movzx eax, word [ebx + 0x12]
add esp, 0x14
push ebx
and edx, eax
add edx, dword [ebx + 0x38]
lea eax, [esp + 0x4c]
mov esi, edx
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.100205e0
mov eax, dword [esp + 0x58]
add esp, 4
cmp byte [ebx + 2], 0
mov dword [esp + 0x2c], eax
jne 0x1006bd99
mov ecx, dword [esp + 0x48]
add eax, ecx
jmp 0x1006be06
test edi, edi
jne 0x1006bdb3
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x3c], ecx
jmp 0x1006bdfe
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x4c], edx
jg 0x1006bdf6
mov ecx, dword [esp + 0x20]
jl 0x1006bdc9
cmp dword [esp + 0x48], ecx
ja 0x1006bdf6
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x50]
push ecx
push edx
push eax
push str.Rowid__lld_out_of_order__previous_was__lld_
lea edi, [esp + 0x7c]
call fcn.1005e6f0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], edx
movzx ecx, word [esp + 0x5e]
cmp eax, ecx
jbe 0x1006be9d
mov edx, dword [esp + 0x14]
movzx ecx, word [esp + 0x60]
mov edx, dword [edx + 0x24]
add edx, dword [ebx + 0x38]
add ecx, esi
cmp ecx, edx
ja 0x1006be9d
movzx edx, word [esp + 0x5e]
sub eax, edx
mov edx, dword [esp + 0x40]
lea eax, [eax + edx - 5]
lea esi, [edx - 4]
xor edx, edx
div esi
movzx edx, byte [ecx + 2]
mov edi, eax
xor eax, eax
mov ah, byte [ecx]
mov al, byte [ecx + 1]
movzx ecx, byte [ecx + 3]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x14]
shl eax, 8
or eax, ecx
cmp byte [edx + 0x11], 0
mov esi, eax
je 0x1006be80
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x68]
push eax
mov eax, dword [ebp + 0xc]
push esi
mov bl, 3
call fcn.100685f0
mov ebx, dword [esp + 0x38]
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x68]
push ecx
push edi
push esi
push 0
call fcn.10069f80
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add esp, 0x10
cmp byte [ebx + 3], 0
jne 0x1006bf3f
movzx eax, byte [esi + 2]
movzx ecx, byte [esi + 3]
xor edx, edx
mov dh, byte [esi]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov esi, edx
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x11], 0
je 0x1006beeb
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x68]
push eax
mov eax, dword [ebp + 0xc]
push esi
mov bl, 5
call fcn.100685f0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
add esp, 8
mov ecx, edi
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x20]
and ecx, edx
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
push ecx
push esi
push edx
call fcn.1006bbe0
add esp, 0x14
test edi, edi
mov dword [esp + 0x2c], eax
jle 0x1006bf3b
cmp eax, dword [esp + 0x44]
je 0x1006bf3b
mov esi, dword [esp + 0x10]
push str.Child_page_depth_differs
lea edi, [esp + 0x6c]
call fcn.1005e6f0
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x44], eax
movzx eax, word [ebx + 0x10]
add edi, 1
cmp edi, eax
mov dword [esp + 0x18], edi
jl 0x1006bd30
cmp byte [ebx + 3], 0
jne 0x1006bfed
movzx ecx, byte [ebx + 5]
mov edx, dword [ebx + 0x38]
lea eax, [ecx + edx + 8]
movzx edx, byte [eax + 2]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov ch, byte [eax]
push edi
push str.On_page__d_at_right_child:
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov esi, ecx
lea ecx, [esp + 0x70]
push ecx
push 0x64
call sym.SQLite.Interop.dll_sqlite3_snprintf
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp byte [edx + 0x11], 0
je 0x1006bfbe
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x68]
push eax
push esi
mov eax, edi
mov bl, 5
call fcn.100685f0
mov ebx, dword [esp + 0x38]
add esp, 8
mov cx, word [ebx + 0x10]
neg cx
lea edx, [esp + 0x20]
lea eax, [esp + 0x68]
sbb ecx, ecx
and ecx, edx
push ecx
mov ecx, dword [esp + 0x14]
push 0
push eax
push esi
push ecx
call fcn.1006bbe0
add esp, 0x14
cmp byte [ebx + 3], 0
je 0x1006c0f7
cmp byte [ebx + 2], 0
je 0x1006c0f7
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1006c0bb
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x1006c03c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x24], eax
jl 0x1006c0f7
jg 0x1006c026
cmp dword [esp + 0x20], ecx
jbe 0x1006c0f7
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push str.Rowid__lld_out_of_order__max_larger_than_parent_min_of__lld_
jmp 0x1006c0e7
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x3c]
cmp esi, ecx
mov edx, dword [eax]
jg 0x1006c076
jl 0x1006c051
cmp dword [esp + 0x38], edx
ja 0x1006c076
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push esi
mov esi, dword [esp + 0x1c]
push ecx
push str.Rowid__lld_out_of_order__min_less_than_parent_min_of__lld_
lea edi, [esp + 0x7c]
call fcn.1005e6f0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
add esp, 0x14
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x24]
cmp esi, ecx
mov edx, dword [edi]
jl 0x1006c0ac
jg 0x1006c08b
cmp dword [esp + 0x20], edx
jbe 0x1006c0ac
push ecx
push edx
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x1c]
push edx
push str.Rowid__lld_out_of_order__max_larger_than_parent_max_of__lld_
lea edi, [esp + 0x7c]
call fcn.1005e6f0
mov eax, dword [esp + 0x48]
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x1006c0f7
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1006c0f7
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x3c], eax
jg 0x1006c0f7
jl 0x1006c0d6
cmp dword [esp + 0x38], ecx
ja 0x1006c0f7
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push eax
push ecx
push str.Rowid__lld_out_of_order__min_less_than_parent_max_of__lld_
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x7c]
call fcn.1005e6f0
add esp, 0x14
mov eax, dword [esp + 0x30]
movzx esi, byte [eax + 5]
mov edi, dword [eax + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x20]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], esi
call fcn.10027400
mov ebx, eax
test ebx, ebx
jne 0x1006c12c
mov eax, dword [esp + 0x10]
mov dword [eax + 0x18], 1
jmp 0x1006c2fc
mov ecx, dword [esp + 0x40]
xor eax, eax
mov ah, byte [esi + edi + 5]
mov al, byte [esi + edi + 6]
sub eax, 1
and eax, 0xffff
add eax, 1
sub ecx, eax
push ecx
mov dword [esp + 0x30], eax
add eax, ebx
push 0
push eax
call fcn.10003bb0
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
push 1
push ebx
call fcn.10003bb0
mov ecx, dword [esp + 0x3c]
movzx edx, byte [ecx + 3]
xor eax, eax
mov ah, byte [esi + edi + 3]
mov ecx, 3
sub ecx, edx
add esp, 0xc
mov dword [esp + 0x18], 0
mov al, byte [esi + edi + 4]
lea esi, [esi + ecx*4]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x1006c235
mov edx, dword [esp + 0x40]
add edx, 0xfffffffc
add esi, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + 1]
mov ch, byte [eax]
mov eax, 0x10000
mov esi, ecx
cmp esi, dword [esp + 0x2c]
jg 0x1006c1da
mov eax, dword [esp + 0x30]
lea edx, [esi + edi]
push edx
call fcn.10020510
add esp, 4
movzx eax, ax
lea eax, [eax + esi - 1]
cmp eax, dword [esp + 0x40]
jl 0x1006c206
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push ecx
push str.Corruption_detected_in_cell__d_on_page__d
xor edi, edi
call fcn.1005e6f0
mov edi, dword [esp + 0x28]
add esp, 0xc
jmp 0x1006c21b
cmp eax, esi
jl 0x1006c21b
lea ebx, [ebx]
add byte [eax + ebx], 1
sub eax, 1
cmp eax, esi
jge 0x1006c210
mov eax, dword [esp + 0x18]
add dword [esp + 0x28], 2
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jl 0x1006c1b0
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov ch, byte [eax + edi + 1]
mov cl, byte [eax + edi + 2]
test ecx, ecx
jle 0x1006c27c
jmp 0x1006c250
xor edx, edx
mov dh, byte [edi + ecx + 2]
mov dl, byte [edi + ecx + 3]
lea eax, [edx + ecx - 1]
cmp eax, ecx
jl 0x1006c26d
add byte [eax + ebx], 1
sub eax, 1
cmp eax, ecx
jge 0x1006c262
xor eax, eax
mov ah, byte [edi + ecx]
mov al, byte [edi + ecx + 1]
mov ecx, eax
test ecx, ecx
jg 0x1006c250
mov esi, dword [esp + 0x40]
xor edx, edx
xor eax, eax
test esi, esi
mov dword [esp + 0x14], edx
jle 0x1006c2d2
lea esp, [esp]
mov cl, byte [eax + ebx]
test cl, cl
jne 0x1006c29c
add edx, 1
jmp 0x1006c2a1
cmp cl, 1
jg 0x1006c2ae
add eax, 1
cmp eax, esi
jl 0x1006c290
mov dword [esp + 0x14], edx
jmp 0x1006c2d2
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
push ecx
push eax
push str.Multiple_uses_for_byte__d_of_page__d
xor edi, edi
mov dword [esp + 0x20], edx
call fcn.1005e6f0
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + edi + 7]
cmp edx, eax
je 0x1006c2fc
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push eax
push edx
push str.Fragmentation_of__d_bytes_reported_as__d_on_page__d
xor edi, edi
call fcn.1005e6f0
add esp, 0x10
mov esi, ebx
call fcn.10021880
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006c353
add dword [esi + 0x78], 0xffffffff
mov ecx, dword [esi + 0x88]
mov dword [eax + 0xc], ecx
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x88], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x98]
mov ebx, dword [edi]
push edx
cdq
push edx
push eax
sub ecx, 1
push 0
push ecx
call fcn.10008f60
push edx
mov edx, dword [ebx + 0x48]
push eax
push edi
call edx
add esp, 0x10
jmp 0x1006c358
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x1006c3b3
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006c3b3
mov al, byte [esi + 0x10]
cmp al, 6
je 0x1006c3ac
test al, al
je 0x1006c3ac
cmp al, 2
jb 0x1006c398
mov eax, dword [0x100c85ec]
test eax, eax
je 0x1006c384
call eax
mov eax, esi
call fcn.10065130
mov eax, dword [0x100c85f0]
test eax, eax
je 0x1006c3ac
call eax
jmp 0x1006c3ac
cmp byte [esi + 4], 0
jne 0x1006c3ac
push 0
push 0
mov eax, esi
call fcn.10026e00
add esp, 8
mov eax, esi
call fcn.1002aab0
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
add eax, 1
call fcn.100019b7
mov esp, ebp
pop ebp
ret