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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov ebx, dword [eax + 0x74]
cmp dword [ebx + 0x14], 0
js 0x100f9ed5
cmp byte [ebx + 0xc], 0
je 0x100f9f05
jmp 0x100f9ee5
mov eax, ebx
call sym._btreeComputeFreeSpace
test eax, eax
je 0x100f9ecd
jmp 0x100fa38f
mov eax, dword [ebp - 0x8c]
movsx ecx, byte [eax + 0x44]
test ecx, ecx
jne 0x100fa07e
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 8]
jmp 0x100f9f41
mov eax, dword [ebp - 0x8c]
imul edx, dword [ebx + 0x14], 3
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x28]
add eax, eax
cmp edx, eax
jle 0x100fa38f
mov eax, dword [ebp - 0x8c]
movsx ecx, byte [eax + 0x44]
test ecx, ecx
je 0x100fa38f
jmp 0x100fa07e
cmp dword [ebp - 0x8c], eax
jne 0x100f9f47
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100f9f36
jmp 0x100f9f6e
cmp byte [eax], 0
jne 0x100f9f3e
mov edi, dword [ebp - 0x8c]
mov edi, dword [edi + 0x74]
cmp dword [eax + 0x74], edi
jne 0x100f9f3e
mov eax, 0x1270f
call sym._sqlite3CorruptError
mov esi, eax
test eax, eax
jne 0x100fa391
xor eax, eax
mov esi, dword [ebx + 0x34]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x48]
call sym._sqlite3PagerWrite
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100f9fd7
xor edi, edi
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x6c]
mov dword [esp + 4], edi
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov eax, esi
call sym._allocateBtreePage
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100f9fb5
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x70]
mov eax, ebx
call sym._copyNodeContent.part.0
cmp byte [esi + 0x11], 0
je 0x100f9fd7
lea eax, [ebp - 0x70]
mov ecx, 5
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov edx, dword [ebp - 0x58]
mov eax, esi
call sym._ptrmapPut
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x90], eax
test esi, esi
je 0x100fa002
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
mov dword [eax + 0x7c], ecx
mov eax, dword [ebp - 0x90]
call sym._releasePage
jmp 0x100fa391
mov eax, dword [ebp - 0x90]
movzx ecx, byte [ebx + 0xc]
lea esi, [ebx + 0x1c]
add eax, 0x1c
add ecx, ecx
mov edi, eax
mov eax, dword [ebp - 0x90]
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x24]
add eax, 0x24
movzx ecx, byte [ebx + 0xc]
mov edi, eax
shl ecx, 2
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x90]
mov al, byte [ebx + 0xc]
mov byte [edi + 0xc], al
mov eax, dword [edi + 0x38]
movzx edx, byte [eax]
mov eax, ebx
and edx, 0xfffffff7
call sym._zeroPage
movzx edx, byte [ebx + 9]
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x90]
bswap eax
mov dword [ecx + edx + 8], eax
mov eax, dword [ebp - 0x8c]
xor edx, edx
mov dword [eax + 0x7c], edi
mov byte [eax + 0x44], 1
mov dword [eax + 0x46], edx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x74], edi
jmp 0x100f9ebe
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], ecx
mov edi, dword [eax + ecx*4 + 0x74]
mov ax, word [eax + ecx*2 + 0x46]
mov word [ebp - 0x90], ax
mov eax, dword [edi + 0x48]
call sym._sqlite3PagerWrite
mov esi, eax
test eax, eax
jne 0x100fa357
cmp dword [edi + 0x14], 0
mov ecx, dword [ebp - 0x98]
js 0x100fa0c3
cmp byte [ebx + 2], 0
jne 0x100fa0e2
jmp 0x100fa2e1
mov eax, edi
mov dword [ebp - 0x98], ecx
call sym._btreeComputeFreeSpace
mov ecx, dword [ebp - 0x98]
test eax, eax
mov esi, eax
jne 0x100fa357
jmp 0x100fa0b8
cmp byte [ebx + 0xc], 1
jne 0x100fa2e1
mov eax, dword [ebx + 0x18]
cmp word [ebx + 0x1c], ax
jne 0x100fa2e1
cmp dword [edi + 4], 1
je 0x100fa2e1
mov esi, dword [ebp - 0x90]
cmp si, word [edi + 0x18]
jne 0x100fa2e1
mov esi, dword [ebx + 0x34]
mov dword [ebp - 0x98], esi
test ax, ax
jne 0x100fa132
mov eax, 0x122ce
call sym._sqlite3CorruptError
mov esi, eax
jmp 0x100fa357
xor eax, eax
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x98]
call sym._allocateBtreePage
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x100fa2dc
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x6c], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebx + 0x4c]
mov edx, 0xd
mov word [ebp - 0x7a], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
call sym._zeroPage
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x54], ebx
mov ecx, 1
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x7a]
xor edx, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x30], 2
mov dword [esp], eax
lea eax, [ebp - 0x58]
call sym._rebuildPage
mov dword [ebp - 0x74], eax
mov esi, eax
test eax, eax
je 0x100fa1d2
mov eax, dword [ebp - 0x90]
call sym._releasePage
jmp 0x100fa357
movzx edx, word [ebp - 0x7a]
mov esi, dword [ebp - 0x90]
mov eax, 0xfffffffe
sub eax, edx
movzx edx, word [esi + 0x12]
sub eax, edx
mov edx, dword [ebp - 0x98]
add eax, dword [edx + 0x28]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x70]
cmp byte [edx + 0x11], 0
mov dword [ebp - 0x9c], eax
je 0x100fa244
lea esi, [ebp - 0x74]
mov ecx, 5
mov dword [esp + 4], esi
mov eax, dword [edi + 4]
mov dword [esp], eax
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
call sym._ptrmapPut
mov eax, dword [ebp - 0x90]
mov dx, word [ebp - 0x7a]
cmp word [eax + 0x10], dx
jae 0x100fa244
mov dword [esp], esi
mov ecx, dword [ebp - 0x6c]
mov edx, eax
call sym._ptrmapPutOvflPtr
movzx edx, word [ebx + 0x18]
mov eax, dword [ebx + 0x40]
movzx eax, word [eax + edx*2 - 2]
xchg al, ah
and ax, word [ebx + 0x1a]
movzx eax, ax
add eax, dword [ebx + 0x38]
mov dword [ebp - 0x6c], eax
add eax, 9
mov edx, dword [ebp - 0x6c]
lea ecx, [edx + 1]
mov dword [ebp - 0x6c], ecx
cmp byte [edx], 0
jns 0x100fa274
cmp ecx, eax
jb 0x100fa262
lea esi, [edx + 0xa]
lea eax, [ebp - 0x61]
mov ecx, dword [ebp - 0x6c]
inc eax
lea edx, [ecx + 1]
mov dword [ebp - 0x6c], edx
mov cl, byte [ecx]
mov byte [eax - 1], cl
cmp edx, esi
jae 0x100fa291
test cl, cl
js 0x100fa27a
cmp dword [ebp - 0x74], 0
jne 0x100fa2be
lea esi, [ebp - 0x74]
movzx edx, word [edi + 0x18]
lea ecx, [ebp - 0x65]
mov dword [esp + 0xc], esi
mov esi, dword [ebx + 4]
sub eax, ecx
mov dword [esp], eax
mov eax, edi
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], esi
call sym._insertCell
mov eax, dword [ebp - 0x9c]
movzx edx, byte [edi + 9]
mov ecx, dword [edi + 0x38]
bswap eax
mov dword [ecx + edx + 8], eax
mov eax, dword [ebp - 0x90]
call sym._releasePage
mov esi, dword [ebp - 0x74]
jmp 0x100fa357
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], ecx
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x24]
call sym._pcache1Alloc
movzx edx, word [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
mov al, byte [eax + 3]
and eax, 1
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x9c]
xor eax, eax
dec ecx
sete al
mov dword [esp], eax
mov ecx, dword [ebp - 0x98]
mov eax, edi
call sym._balance_nonroot
cmp dword [ebp - 0x94], 0
mov esi, eax
jne 0x100fa34a
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
jmp 0x100fa357
mov eax, dword [ebp - 0x94]
call sym._pcache1Free
jmp 0x100fa33c
mov byte [ebx + 0xc], 0
mov eax, ebx
call sym._releasePage
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x8c]
mov al, byte [eax + 0x44]
mov byte [ebp - 0x90], al
dec eax
mov byte [edi + 0x44], al
movsx eax, al
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
test esi, esi
je 0x100f9ebe
jmp 0x100fa391
xor esi, esi
cmp dword [ebp - 0x94], 0
je 0x100fa3a5
mov eax, dword [ebp - 0x94]
call sym._pcache1Free
add esp, 0xac
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret