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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov edx, 0xaaaaaaab
sub esp, 0x16c
mov dword [esp + 0x38], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x50], 0
mov eax, dword [eax + 0x24]
add eax, eax
mul edx
mov eax, edi
movsx edi, word [edi + 0x4c]
shr edx, 1
mov eax, dword [eax + edi*4 + 0x78]
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], eax
nop
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x665c34bd
mov eax, dword [esp + 0x24]
cmp byte [eax + 1], 0
je 0x665c40a1
mov dword [esp + 0x134], 0
mov esi, dword [eax + 0x34]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x148], 0
call sym._sqlite3PagerWrite
test eax, eax
mov dword [esp + 0x120], eax
je 0x665c3884
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x38]
test edx, edx
mov dword [eax + 0x7c], 0
je 0x665c38e0
mov eax, dword [edx + 0x44]
call sym._sqlite3PagerUnrefNotNull
mov edi, dword [esp + 0x120]
test edi, edi
je 0x665c3491
mov eax, dword [esp + 0x50]
test eax, eax
je 0x665c3484
call sym._pcache1Free
add esp, 0x16c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ebx, 1
xor esi, esi
xor edi, edi
mov dword [esp + 0x3c], 1
mov word [eax + 0x4c], bx
mov word [eax + 0x4e], si
mov word [eax + 0x50], di
mov eax, dword [esp + 0x24]
cmp byte [eax + 1], 0
jne 0x665c34d5
movzx eax, word [eax + 0x10]
cmp dword [esp + 0x58], eax
jge 0x665c40a1
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebp, dword [eax + edi*4 + 0x74]
movzx ebx, word [eax + edi*2 + 0x4c]
mov eax, dword [ebp + 0x44]
call sym._sqlite3PagerWrite
mov edi, eax
mov eax, dword [esp + 0x24]
test edi, edi
jne 0x665c3770
cmp byte [eax + 3], 0
je 0x665c350c
cmp byte [eax + 1], 1
je 0x665c3ea7
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
call sym._pcache1Alloc
mov esi, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x90], 0
test esi, esi
movzx eax, byte [edi + 0x4a]
mov dword [esp + 0x9b], 0
mov byte [esp + 0x9f], 0
mov edi, 7
je 0x665c382d
and eax, 1
movzx edx, byte [ebp + 1]
mov dword [esp + 0x2c], 0
movzx ecx, al
movzx eax, word [ebp + 0x12]
mov byte [esp + 0x28], cl
lea edi, [edx + eax]
cmp edi, 1
mov dword [esp + 0x40], edi
jle 0x665c3597
test ebx, ebx
je 0x665c358c
cmp ebx, dword [esp + 0x40]
lea esi, [ebx + ecx - 2]
lea edi, [ebx - 1]
cmovne esi, edi
mov dword [esp + 0x2c], esi
mov ebx, 2
sub ebx, ecx
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
add ecx, edi
lea esi, [edi + 1]
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x44], esi
mov edx, ecx
je 0x665c3e93
mov ebx, dword [ebp + 0x40]
movzx ecx, byte [ebx + ecx*2]
movzx eax, byte [ebx + edx*2 + 1]
shl ecx, 8
or ecx, eax
movzx eax, word [ebp + 0x14]
and eax, ecx
add eax, dword [ebp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x34]
mov esi, dword [esp + 0x40]
lea edi, [esp + 0xb4]
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], esi
mov ebx, dword [eax]
mov eax, esi
shl eax, 2
mov dword [esp + 0x5c], eax
add edi, eax
bswap ebx
mov dword [esp + 0x94], ebx
jmp 0x665c36d7
mov ebx, dword [esp + 0x10]
mov edx, dword [ebp + 0x40]
sub ebx, eax
movzx eax, byte [edx + ebx*2]
movzx edx, byte [edx + ebx*2 + 1]
mov dword [esp + 0x18], ebx
mov ebx, dword [ebp + 0x38]
shl eax, 8
or eax, edx
movzx edx, word [ebp + 0x14]
and eax, edx
add ebx, eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov edx, ebx
mov dword [esp + esi*4 + 0xa0], ebx
bswap eax
mov dword [esp + 0x94], eax
mov eax, ebp
call sym._cellSizePtr
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov dword [esp + esi*4 + 0x10c], ecx
test byte [edx + 0x16], 4
je 0x665c36b4
mov eax, dword [esp + 0x20]
add eax, ecx
cmp eax, dword [edx + 0x24]
jg 0x665c4066
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call sym._memcpy
sub ebx, dword [ebp + 0x38]
movzx eax, byte [ebp + 1]
add ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esp + esi*4 + 0xa0], ebx
mov ebx, dword [esp + 0x10]
sub ebx, eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x90]
mov edx, dword [esp + 0x18]
mov dword [esp], eax
mov eax, ebp
call sym._dropCell.part.377
mov ebx, dword [esp + 0x94]
sub edi, 4
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
mov dword [esp], 0
mov ecx, edi
mov edx, ebx
call sym._getAndInitPage
test eax, eax
mov dword [esp + 0x90], eax
jne 0x665c378a
mov eax, dword [edi]
movzx edx, word [eax + 0x12]
movzx eax, byte [eax + 1]
lea eax, [edx + eax + 1]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
lea esi, [eax - 1]
cmp esi, 0xffffffff
je 0x665c38ec
mov eax, dword [esp + 0x2c]
add eax, esi
mov ecx, eax
mov dword [esp + 0x10], eax
movzx eax, word [ebp + 0x16]
cmp eax, ecx
movzx eax, byte [ebp + 1]
jne 0x665c3610
test al, al
je 0x665c3610
mov edx, dword [ebp + 0x20]
mov eax, ebp
mov ebx, dword [edx]
mov dword [esp + esi*4 + 0xa0], edx
bswap ebx
mov dword [esp + 0x94], ebx
call sym._cellSizePtr
movzx eax, ax
mov dword [esp + esi*4 + 0x10c], eax
mov byte [ebp + 1], 0
jmp 0x665c36d0
mov byte [eax + 1], 0
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerUnrefNotNull
mov eax, dword [esp + 0x38]
sub word [eax + 0x4c], 1
jmp 0x665c3477
mov eax, dword [esp + 0x14]
lea eax, [eax*4 + 4]
mov dword [esp + 8], eax
lea eax, [esp + 0xb4]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x5c]
lea ebx, [eax + 4]
mov eax, dword [esp + 0x48]
lea esi, [esp + 0xb4]
add ebx, esi
call sym._sqlite3ScratchFree
mov eax, dword [esi]
test eax, eax
je 0x665c37e7
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerUnrefNotNull
add esi, 4
cmp ebx, esi
jne 0x665c37d9
lea eax, [esp + 0xd0]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x665c3826
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
nop
lea esi, [esi]
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x665c381f
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerUnrefNotNull
add ebx, 1
cmp ebx, esi
jne 0x665c3810
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x665c383a
call sym._pcache1Free
mov eax, dword [esp + 0x24]
mov byte [eax + 1], 0
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerUnrefNotNull
mov ebx, dword [esp + 0x38]
movzx eax, word [ebx + 0x4c]
mov word [esp + 0x10], ax
sub eax, 1
test edi, edi
mov word [ebx + 0x4c], ax
jne 0x665c43d9
mov edi, dword [esp + 0x38]
cwde
mov dword [esp + 0x3c], eax
mov eax, dword [edi + eax*4 + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
jmp 0x665c3400
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0
lea edx, [esp + 0x134]
lea ecx, [esp + 0x148]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov eax, esi
call sym._allocateBtreePage
test eax, eax
mov dword [esp + 0x120], eax
mov edx, dword [esp + 0x134]
je 0x665c3f10
cmp byte [esi + 0x11], 0
je 0x665c3451
lea eax, [esp + 0x120]
mov dword [esp + 0x28], eax
jmp 0x665c3f2c
mov edi, dword [esp + 0x120]
jmp 0x665c3477
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
add ebx, 3
mov eax, dword [eax + 0x20]
and ebx, 0xfffffffc
lea esi, [ebx + ebx]
lea edx, [esi + ebx]
lea eax, [eax + edx*2]
call sym._sqlite3ScratchMalloc
test eax, eax
mov dword [esp + 0x48], eax
je 0x665c4150
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], ebp
lea edi, [eax + ebx*4]
lea eax, [edi + esi]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x64], edi
mov dword [esp + 0x78], eax
movzx eax, byte [esi + 5]
shl eax, 2
mov ebx, eax
mov word [esp + 0x76], ax
movzx eax, byte [esi + 3]
test eax, eax
mov dword [esp + 0x10], eax
movzx eax, bx
mov dword [esp + 0x70], eax
lea eax, [esp + 0xf8]
sete byte [esp + 0x68]
mov dword [esp + 0x4c], eax
movzx eax, byte [esi + 1]
movzx ecx, word [esi + 0x12]
lea edi, [ecx + eax]
test al, al
mov dword [esp + 0x14], edi
je 0x665c3a61
test edi, edi
je 0x665c3a1e
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
lea edi, [ecx + ebx*4]
mov ecx, dword [esp + 0x64]
lea ebx, [ecx + ebx*2]
nop
sub eax, 1
mov ecx, ebp
cmp eax, 0xffffffff
je 0x665c39d6
lea esi, [esi]
movzx edx, word [esi + eax*2 + 0x16]
cmp edx, ecx
jg 0x665c39ce
je 0x665c3a10
sub ecx, 1
sub eax, 1
cmp eax, 0xffffffff
jne 0x665c39c0
mov edx, dword [esi + 0x40]
movzx eax, byte [edx + ecx*2]
movzx edx, byte [edx + ecx*2 + 1]
movzx ecx, word [esi + 0x14]
shl eax, 8
or eax, edx
and eax, ecx
add eax, dword [esi + 0x38]
mov edx, eax
mov dword [edi + ebp*4], edx
mov eax, esi
call sym._cellSizePtr
mov word [ebx + ebp*2], ax
add ebp, 1
cmp dword [esp + 0x14], ebp
je 0x665c3a16
movzx eax, byte [esi + 1]
jmp 0x665c39b0
mov edx, dword [esi + eax*4 + 0x20]
jmp 0x665c39f2
mov edi, dword [esp + 0x14]
add dword [esp + 0x18], edi
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x40], ecx
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x18]
mov eax, ecx
mov dword [ebx + eax*4], ebp
jle 0x665c3a40
cmp byte [esp + 0x68], 0
jne 0x665c3e26
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x40], eax
je 0x665c3ae6
mov esi, dword [esp + eax*4 + 0xb8]
add eax, 1
mov dword [esp + 0x54], eax
jmp 0x665c397b
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x38]
movzx ebx, word [esi + 0xe]
test ecx, ecx
mov edx, eax
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0x14]
je 0x665c3a1e
add ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, ecx
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x64]
add eax, edx
mov dword [esp + 0x18], eax
lea eax, [ecx + eax*4]
lea edi, [edi + edx*4]
lea ebp, [ebp + edx*2]
mov dword [esp + 0x14], eax
lea esi, [esi]
lea edi, [edi]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
add edi, 4
add ebx, 2
add ebp, 2
shl edx, 8
or edx, eax
and edx, dword [esp + 0x30]
mov eax, esi
add edx, dword [esp + 0x20]
mov dword [edi - 4], edx
call sym._cellSizePtr
mov word [ebp - 2], ax
cmp edi, dword [esp + 0x14]
jne 0x665c3ab0
jmp 0x665c3a1e
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
mov eax, dword [eax + 0x24]
test ecx, ecx
lea eax, [eax + esi - 0xc]
mov esi, eax
mov dword [esp + 0x54], eax
je 0x665c419b
mov dword [esp + 0x14], ebp
xor ebx, ebx
xor edx, edx
xor eax, eax
mov ebp, ecx
nop
lea esi, [esi]
movzx ecx, word [edi + eax*2]
lea edx, [ecx + edx + 2]
cmp esi, edx
jge 0x665c3b55
sub edx, ecx
mov dword [esp + ebx*4 + 0xe4], eax
sub edx, 2
cmp dword [esp + 0x10], 1
mov dword [esp + ebx*4 + 0x10c], edx
adc eax, 0xffffffff
add ebx, 1
cmp ebx, 4
jg 0x665c40d2
xor edx, edx
add eax, 1
cmp eax, ebp
jl 0x665c3b20
mov esi, dword [esp + 0x18]
test ebx, ebx
mov ebp, dword [esp + 0x14]
mov eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + ebx*4 + 0x10c], edx
mov dword [esp + ebx*4 + 0xe4], esi
je 0x665c3c3c
lea esi, [esp + 0x10c]
shl eax, 2
mov dword [esp + 0x40], ebp
add esi, eax
lea eax, [esp + eax + 0xe4]
mov dword [esp + 0x30], esi
mov ebp, eax
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], ebp
mov ebx, dword [eax - 4]
mov eax, dword [ebp - 4]
mov ecx, eax
lea esi, [eax - 1]
sub ecx, dword [esp + 0x10]
jmp 0x665c3bfb
cmp byte [esp + 0x28], 0
jne 0x665c3c10
movzx esi, word [edi + esi*2]
movzx ecx, word [edi + ecx*2]
mov ebp, ebx
add esi, 2
sub ebp, esi
mov esi, ebp
lea ebp, [edx + ecx + 1]
cmp ebp, esi
jge 0x665c3c10
mov ebx, esi
lea edx, [edx + ecx + 2]
mov ecx, dword [esp + 0x14]
mov esi, eax
sub eax, 1
sub esi, 2
mov dword [ecx - 4], eax
mov ecx, eax
sub ecx, dword [esp + 0x10]
test edx, edx
jne 0x665c3bc0
movzx esi, word [edi + esi*2]
movzx ecx, word [edi + ecx*2]
add esi, 2
sub ebx, esi
jmp 0x665c3be2
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
lea esi, [esp + 0x10c]
mov dword [eax], edx
mov dword [eax - 4], ebx
sub eax, 4
sub ebp, 4
cmp eax, esi
mov dword [esp + 0x30], eax
mov edx, ebx
jne 0x665c3ba0
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0xb4]
cmp dword [eax + 0x48], 1
jbe 0x665c416f
mov eax, dword [eax + 0x38]
mov dword [esp + 0x40], ebp
xor ebx, ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
movzx eax, byte [eax]
mov byte [esp + 0x64], al
mov dword [esp + 0x30], eax
jmp 0x665c3cf6
cmp byte [esp + 0x28], 0
mov eax, 1
lea ecx, [esp + 0x94]
cmove eax, dword [esp + 0x94]
lea edx, [esp + 0x148]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, ebp
call sym._allocateBtreePage
test eax, eax
mov dword [esp + 0x90], eax
jne 0x665c3d3f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x148]
lea edi, [esp + 0xd0]
lea esi, [ebx + 1]
call sym._zeroPage
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x148]
mov dword [esp + 0x14], esi
mov dword [ecx + ebx*4], edx
cmp byte [ebp + 0x11], 0
mov dword [edi + ebx*4], eax
jne 0x665c3d50
cmp esi, dword [esp + 0x20]
jg 0x665c3d89
mov ebx, esi
cmp dword [esp + 0x44], ebx
jle 0x665c3c70
mov eax, dword [esp + ebx*4 + 0xb4]
lea edi, [esp + 0xd0]
lea esi, [ebx + 1]
mov dword [esp + ebx*4 + 0xb4], 0
mov dword [edi + ebx*4], eax
mov dword [esp + 0x148], eax
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerWrite
test eax, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x14], esi
je 0x665c3cea
mov ebx, esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], ebx
lea ebx, [eax + 4]
jmp 0x665c37c7
mov edx, dword [eax + 0x48]
lea eax, [esp + 0x90]
mov ecx, 5
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov eax, ebp
call sym._ptrmapPut
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x665c3d3d
cmp esi, dword [esp + 0x20]
jle 0x665c3cf4
mov eax, dword [esp + 0xd0]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x6c]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x30], ebp
movzx eax, word [eax + 0x18]
mov dword [esp + 0x120], edx
mov dword [esp + 0x134], edx
mov word [esp + 0xaa], ax
lea eax, [esp + 0x120]
mov dword [esp + 0x28], eax
mov ecx, eax
xor eax, eax
mov ebp, eax
add ebp, 1
cmp ebp, esi
je 0x665c43e6
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebp*4]
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
mov dword [ecx + 4], edx
movzx eax, word [eax + 0x18]
cmp dword [esp + 0x120], edx
mov dword [esp + ebp*4 + 0x134], edx
mov word [esp + ebp*2 + 0xaa], ax
je 0x665c4115
mov eax, dword [esp + 0x28]
jmp 0x665c3e1d
add eax, 4
cmp edx, dword [eax]
je 0x665c4115
cmp eax, ecx
jne 0x665c3e12
add ecx, 4
jmp 0x665c3dd1
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + ecx*4 + 0x10c]
mov edx, dword [esp + 0x6c]
lea edi, [ebx + ebp*2]
mov ebx, dword [esp + 0x78]
mov word [edi], ax
movzx eax, ax
add ebx, edx
add edx, eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + ecx*4 + 0xa0]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sym._memcpy
movzx eax, word [edi]
add ebx, dword [esp + 0x70]
sub ax, word [esp + 0x76]
mov ecx, dword [esp + 0x48]
mov dword [ecx + ebp*4], ebx
mov word [edi], ax
cmp byte [esi + 5], 0
jne 0x665c40a8
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
mov dword [ebx], eax
add dword [esp + 0x18], 1
jmp 0x665c3a40
movzx eax, byte [ebp + 6]
mov edx, dword [ebp + 0x38]
lea eax, [edx + eax + 8]
mov dword [esp + 0x60], eax
jmp 0x665c35d2
mov edi, eax
movzx eax, word [eax + 0x16]
cmp ax, word [edi + 0x12]
jne 0x665c350c
cmp dword [ebp + 0x48], 1
je 0x665c350c
movzx edx, word [ebp + 0x12]
cmp ebx, edx
jne 0x665c350c
test ax, ax
jne 0x665c41be
mov dword [esp + 0xc], 0x6661a358
mov dword [esp + 8], 0xe86b
mov edi, 0xb
mov dword [esp + 4], str.database_corruption_at_line__d_of___.10s_
mov dword [esp], 0xb
call sym.libsqlite3_0.dll_sqlite3_log
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
jmp 0x665c383a
lea eax, [esp + 0x120]
mov dword [esp + 0x28], eax
mov ecx, eax
mov eax, dword [esp + 0x24]
call sym._copyNodeContent.part.477
cmp byte [esi + 0x11], 0
je 0x665c3f51
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x148]
mov ecx, 5
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov eax, esi
call sym._ptrmapPut
mov ebp, dword [esp + 0x120]
mov edx, dword [esp + 0x134]
test ebp, ebp
jne 0x665c3451
mov edi, dword [esp + 0x24]
lea ecx, [edx + 0x16]
movzx eax, byte [edi + 1]
lea esi, [edi + 0x16]
lea ebx, [eax + eax]
cmp ebx, 4
jae 0x665c403a
test ebx, ebx
je 0x665c3f98
movzx eax, byte [esi]
test bl, 2
mov byte [edx + 0x16], al
jne 0x665c4184
movzx eax, byte [edi + 1]
mov edi, dword [esp + 0x24]
shl eax, 2
lea ecx, [edx + 0x20]
cmp eax, 4
lea esi, [edi + 0x20]
jae 0x665c4012
test eax, eax
je 0x665c3fb4
movzx eax, byte [esi]
mov byte [edx + 0x20], al
mov edi, dword [esp + 0x24]
movzx eax, byte [edi + 1]
mov byte [edx + 1], al
mov eax, dword [edx + 0x38]
movzx edx, byte [eax]
mov eax, edi
and edx, 0xfffffff7
call sym._zeroPage
movzx eax, byte [edi + 6]
mov edx, dword [esp + 0x148]
mov ecx, dword [edi + 0x38]
mov edi, dword [esp + 0x38]
lea eax, [ecx + eax + 8]
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
mov byte [eax + 3], dl
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esp + 0x134]
mov dword [esp + 0x24], eax
mov dword [edi + 0x7c], eax
jmp 0x665c349c
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + 0x20]
lea edi, [edx + 0x24]
and edi, 0xfffffffc
mov dword [edx + 0x20], ebx
mov ebx, dword [esi + eax - 4]
mov dword [ecx + eax - 4], ebx
sub ecx, edi
sub esi, ecx
add ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x665c3fb4
mov ebp, dword [esp + 0x24]
lea edi, [edx + 0x1a]
and edi, 0xfffffffc
mov eax, dword [ebp + 0x16]
mov dword [edx + 0x16], eax
mov eax, dword [esi + ebx - 4]
mov dword [ecx + ebx - 4], eax
sub ecx, edi
sub esi, ecx
add ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
movzx eax, byte [ebp + 1]
jmp 0x665c3f98
mov dword [esp + 0xc], 0x6661a358
mov dword [esp + 8], 0xe9c1
mov dword [esp + 4], str.database_corruption_at_line__d_of___.10s_
mov dword [esp], 0xb
call sym.libsqlite3_0.dll_sqlite3_log
mov eax, dword [esp + 0x14]
mov dword [esp + 0x90], 0xb
shl eax, 2
jmp 0x665c3795
xor edi, edi
jmp 0x665c3477
cmp ax, 3
ja 0x665c3e89
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x78]
mov edx, 4
mov byte [esi + eax], 0
add eax, 1
mov word [edi], dx
mov dword [esp + 0x6c], eax
jmp 0x665c3e89
mov dword [esp + 0xc], 0x6661a358
mov dword [esp + 8], 0xea4b
mov dword [esp + 4], str.database_corruption_at_line__d_of___.10s_
mov dword [esp], 0xb
call sym.libsqlite3_0.dll_sqlite3_log
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], 0xb
mov dword [esp + 0x14], 0
lea ebx, [eax + 4]
jmp 0x665c37c7
mov dword [esp + 0xc], 0x6661a358
mov dword [esp + 8], 0xeabd
mov dword [esp + 4], str.database_corruption_at_line__d_of___.10s_
mov dword [esp], 0xb
call sym.libsqlite3_0.dll_sqlite3_log
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], 0xb
lea ebx, [eax + 4]
jmp 0x665c37c7
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], 7
mov dword [esp + 0x14], 0
lea ebx, [eax + 4]
jmp 0x665c37c7
mov dword [esp + 0xc], 0x6661a358
mov dword [esp + 8], 0xea86
jmp 0x665c40e2
movzx eax, word [esi + ebx - 2]
mov word [ecx + ebx - 2], ax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax + 1]
jmp 0x665c3f98
mov dword [esp + 0x10c], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x20], 0
jmp 0x665c3c3c
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x134]
mov ecx, edx
lea edx, [esp + 0x10c]
mov esi, dword [eax + 0x34]
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, esi
call sym._allocateBtreePage
test eax, eax
mov dword [esp + 0x120], eax
mov edi, eax
jne 0x665c3eff
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x20]
mov dword [esp + 0x148], edx
call sym._cellSizePtr
mov word [esp + 0xf8], ax
mov eax, dword [esp + 0x10c]
mov edx, 0xd
call sym._zeroPage
lea eax, [esp + 0xf8]
lea ecx, [esp + 0x148]
mov edx, 1
mov dword [esp], eax
mov eax, dword [esp + 0x10c]
call sym._rebuildPage
mov edx, dword [esp + 0x10c]
mov eax, dword [esi + 0x24]
sub ax, word [edx + 0xe]
sub eax, 2
sub ax, word [esp + 0xf8]
mov word [edx + 0x10], ax
cmp byte [esi + 0x11], 0
lea eax, [esp + 0x120]
mov dword [esp + 0x28], eax
jne 0x665c437f
mov edi, dword [esp + 0x24]
movzx eax, word [edi + 0x12]
mov edx, dword [edi + 0x40]
sub eax, 1
movzx esi, byte [edx + eax*2]
movzx eax, byte [edx + eax*2 + 1]
shl esi, 8
or esi, eax
movzx eax, word [edi + 0x14]
and esi, eax
add esi, dword [edi + 0x38]
lea edi, [esi + 9]
jmp 0x665c42b2
mov esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x148], eax
movzx edx, byte [eax - 1]
shr dl, 7
cmp edi, eax
seta cl
test dl, cl
jne 0x665c42b0
lea ecx, [esi + 0xa]
lea esi, [esp + 0xc7]
jmp 0x665c42eb
cmp ecx, edx
jbe 0x665c4302
mov eax, dword [esp + 0x148]
lea edx, [eax + 1]
add esi, 1
mov dword [esp + 0x148], edx
movzx eax, byte [eax]
test al, al
mov byte [esi - 1], al
js 0x665c42e0
mov eax, dword [esp + 0x28]
movzx edx, word [ebp + 0x12]
lea ecx, [esp + 0xc3]
sub esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x48]
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, ebp
call sym._insertCell
movzx eax, byte [ebp + 6]
mov edx, dword [esp + 0x134]
mov ecx, dword [ebp + 0x38]
lea eax, [ecx + eax + 8]
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
mov byte [eax + 3], dl
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x665c4373
mov eax, dword [eax + 0x44]
call sym._sqlite3PagerUnrefNotNull
mov edi, dword [esp + 0x120]
jmp 0x665c3eff
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x48]
mov ecx, 5
mov edx, dword [esp + 0x134]
mov dword [esp], eax
mov eax, esi
call sym._ptrmapPut
mov eax, dword [esp + 0x10c]
movzx edi, word [esp + 0xf8]
cmp word [eax + 0xc], di
jae 0x665c427c
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x148]
test ecx, ecx
jne 0x665c427c
mov ecx, dword [esp + 0x28]
call sym._ptrmapPutOvflPtr.part.476
jmp 0x665c427c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
jmp 0x665c3477
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], edi
xor edi, edi
cmp esi, 1
mov edx, dword [esp + 0x134]
je 0x665c441f
lea ebp, [esp + 0x134]
mov eax, 1
mov ecx, dword [ebp + eax*4]
cmp ecx, edx
jae 0x665c4418
mov edx, ecx
mov edi, eax
add eax, 1
cmp eax, esi
jne 0x665c440c
cmp edi, dword [esp + 0x28]
mov dword [esp + 0x94], edx
mov dword [esp + edi*4 + 0x134], 0xffffffff
je 0x665c4466
jg 0x665c460b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov ebp, dword [eax + ecx*4]
movzx ecx, word [esp + edi*2 + 0xaa]
mov eax, dword [ebp + 0x44]
mov word [eax + 0x18], cx
call sym._sqlite3PcacheMove
mov eax, dword [esp + 0x94]
mov dword [ebp + 0x48], eax
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x665c43f2
mov ecx, dword [esp + ebx*4 + 0xd0]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov eax, dword [ecx + 0x48]
mov dword [esp + 0x28], ecx
mov ecx, eax
mov byte [edx + 3], al
shr ecx, 0x18
mov byte [edx], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 8
test byte [esp + 0x64], 8
mov byte [edx + 2], cl
jne 0x665c44e5
mov edx, dword [esp + 0x44]
cmp edx, esi
je 0x665c44e5
lea ecx, [esp + 0xcc]
lea eax, [esp + 0xb0]
cmp edx, esi
cmovl eax, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x38]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + ecx + 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x11], 0
je 0x665c4691
mov eax, dword [esp + 0xd0]
mov ecx, dword [eax + 0x38]
movzx edx, word [eax + 0x12]
mov dword [esp + 0x40], ecx
mov ecx, eax
movzx eax, byte [eax + 1]
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x665c4691
movzx eax, byte [esp + 0x68]
xor edx, edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], esi
mov edi, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x78], ebp
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x6c], eax
jmp 0x665c45c8
mov eax, dword [esp + 0x28]
cmp dword [esp + eax*4 + 0xe4], edi
je 0x665c4660
cmp ebx, dword [esp + 0x30]
jge 0x665c4586
mov eax, dword [esp + ebx*4 + 0x120]
cmp dword [esi + 0x48], eax
jne 0x665c4586
mov eax, dword [esp + 0x40]
cmp ebp, eax
jb 0x665c4586
add eax, dword [esp + 0x64]
cmp ebp, eax
jb 0x665c45bb
cmp word [esp + 0x76], 0
je 0x665c4637
mov eax, dword [esp + 0x60]
movzx ecx, word [esi + 0xc]
cmp word [eax + edi*2], cx
jbe 0x665c45bb
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x665c45bb
lea ecx, [esp + 0x90]
mov edx, ebp
mov eax, esi
call sym._ptrmapPutOvflPtr.part.476
add edi, 1
cmp edi, dword [esp + 0x18]
je 0x665c4681
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x48]
mov ebp, dword [eax + edi*4]
jne 0x665c4553
add ebx, 1
cmp ebx, dword [esp + 0x30]
jge 0x665c47b8
mov edx, dword [esp + ebx*4 + 0xd0]
movzx ecx, word [edx + 0x12]
movzx eax, byte [edx + 1]
add eax, ecx
add eax, dword [esp + 0x6c]
add dword [esp + 0x4c], eax
mov eax, dword [edx + 0x38]
mov dword [esp + 0x40], eax
jmp 0x665c4553
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov eax, dword [eax + 0x2c]
lea edx, [edi + eax + 1]
mov eax, dword [esp + edi*4 + 0xd0]
mov eax, dword [eax + 0x44]
mov word [eax + 0x18], cx
call sym._sqlite3PcacheMove
mov edx, dword [esp + 0x94]
jmp 0x665c443d
lea eax, [esp + 0x90]
mov edx, dword [ebp]
mov ecx, 5
mov dword [esp + 4], eax
mov eax, dword [esi + 0x48]
bswap edx
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call sym._ptrmapPut
jmp 0x665c4592
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
mov esi, dword [esp + eax*4 + 0xd0]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x665c45bb
jmp 0x665c4564
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x30]
test ebx, ebx
je 0x665c47d3
xor eax, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], ebp
mov edi, eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
jmp 0x665c4707
mov edx, dword [esi + 0x38]
mov ebp, dword [ecx]
mov dword [edx + 8], ebp
lea ebp, [esp + 0x90]
mov edx, dword [esp + 0x2c]
add dword [esp + 0x30], eax
mov dword [esp + 0xc], ebp
mov esi, dword [esi + 0x48]
mov dword [esp], eax
add edx, edi
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call sym._insertCell
mov ebx, dword [esp + 0x90]
test ebx, ebx
jne 0x665c37c0
add edi, 1
cmp edi, dword [esp + 0x60]
je 0x665c4c3c
mov eax, dword [esp + 0x20]
mov esi, dword [eax + edi*4]
mov eax, dword [esp + edi*4 + 0xe4]
lea ebx, [eax*4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebx + eax*4]
mov ebx, dword [esp + 0x40]
movzx eax, word [ebx + eax*2]
mov ebx, dword [esp + 0x34]
add ebx, dword [esp + 0x30]
mov edx, eax
add eax, dword [esp + 0x70]
cmp byte [esi + 5], 0
je 0x665c46b7
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x665c4777
sub ecx, 4
cmp dx, 4
jne 0x665c46bf
mov eax, dword [esp + 0x28]
mov edx, ecx
mov dword [esp + 0x4c], ecx
call sym._cellSizePtr
mov ecx, dword [esp + 0x4c]
movzx eax, ax
jmp 0x665c46bf
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + ecx - 4]
lea ecx, [esp + 0x148]
mov eax, esi
call sym._btreeParseCellPtr
mov ecx, dword [esp + 0x14c]
mov edx, dword [esp + 0x148]
cmp ecx, 0
jbe 0x665c47c4
lea eax, [ebx + 4]
call sym._sqlite3PutVarint.part.9
add eax, 4
mov ecx, ebx
xor ebx, ebx
jmp 0x665c46bf
mov edx, dword [esp + ebx*4 + 0xb4]
jmp 0x665c45ed
cmp edx, 0x7f
ja 0x665c47a4
mov byte [ebx + 4], dl
mov eax, 5
jmp 0x665c47af
mov eax, 1
sub eax, esi
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x68]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x70], eax
mov edi, dword [esp + 0x40]
mov eax, edi
mov ebp, edi
sar eax, 0x1f
xor ebp, eax
sub ebp, eax
cmp byte [esp + ebp + 0x9b], 0
jne 0x665c4a55
test edi, edi
js 0x665c4bc2
test ebp, ebp
jne 0x665c4b94
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x28], 0
xor esi, esi
mov dword [esp + 0x30], eax
mov ebx, dword [esp + ebp*4 + 0xd0]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x38]
movzx edx, word [ebx + 0x12]
mov dword [esp + 0x68], eax
movzx eax, byte [ebx + 6]
mov dword [esp + 0x10], edx
add edx, edi
mov byte [esp + 0x6c], al
mov eax, dword [ebx + 0x40]
lea eax, [eax + ecx*2]
lea ecx, [esi + ecx]
mov dword [esp + 0x4c], eax
movzx eax, byte [ebx + 1]
mov dword [esp + 0x64], ecx
add edx, eax
cmp edi, esi
mov eax, edi
mov dword [esp + 0x60], edx
jge 0x665c48cc
mov ecx, dword [esp + 0x48]
mov edx, esi
sub edx, edi
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x2c]
lea eax, [edi + eax*2]
mov dword [esp], eax
mov eax, ebx
call sym._pageFreeArray
mov edi, dword [esp + 0x10]
mov edx, eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x10], edx
lea ecx, [edi + edi]
mov dword [esp], eax
mov dword [esp + 8], ecx
lea ecx, [eax + edx*2]
mov dword [esp + 4], ecx
call sym._memmove
mov edx, dword [esp + 0x10]
mov eax, edi
sub eax, edx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x64]
cmp dword [esp + 0x60], edi
jle 0x665c48fc
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
lea ecx, [edi + eax*4]
mov edi, dword [esp + 0x2c]
sub edx, eax
lea eax, [edi + eax*2]
mov dword [esp], eax
mov eax, ebx
call sym._pageFreeArray
sub dword [esp + 0x10], eax
movzx eax, byte [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], eax
lea edx, [ecx + eax + 5]
lea eax, [ecx + eax + 6]
mov edi, eax
mov dword [esp + 0x84], eax
movzx eax, byte [edx]
mov dword [esp + 0x80], edx
mov edx, eax
movzx eax, byte [edi]
shl edx, 8
or eax, edx
sub eax, 1
movzx eax, ax
lea eax, [ecx + eax + 1]
cmp dword [esp + 0x4c], eax
mov dword [esp + 0x148], eax
ja 0x665c4a14
cmp dword [esp + 0x28], esi
lea eax, [esp + 0x148]
mov dword [esp + 0x64], eax
jg 0x665c4ca0
cmp byte [ebx + 1], 0
je 0x665c4b38
xor eax, eax
mov dword [esp + 0x60], ebp
mov edi, dword [esp + 0x10]
mov ebp, eax
jmp 0x665c498f
movzx eax, byte [ebx + 1]
add ebp, 1
cmp ebp, eax
jge 0x665c4b30
movzx edx, word [ebx + ebp*2 + 0x16]
add edx, dword [esp + 0x28]
mov eax, edx
mov dword [esp + 0x10], edx
sub eax, esi
js 0x665c4980
cmp dword [esp + 0x30], eax
jle 0x665c4980
mov ecx, dword [ebx + 0x40]
mov edx, edi
add edi, 1
sub edx, eax
lea ecx, [ecx + eax*2]
mov eax, edx
add eax, eax
mov dword [esp + 8], eax
lea eax, [ecx + 2]
mov dword [esp + 4], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp], eax
call sym._memmove
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], 1
lea eax, [eax + edx*2]
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, ebx
call sym._pageInsertArray
test eax, eax
je 0x665c4980
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*2]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
lea eax, [eax + esi*4]
mov edi, eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
mov ecx, edi
mov dword [esp], eax
mov eax, ebx
call sym._rebuildPage
movzx eax, word [esp + 0x54]
mov byte [esp + ebp + 0x9b], 1
sub ax, word [esp + ebp*4 + 0x10c]
mov word [ebx + 0x10], ax
add dword [esp + 0x40], 1
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x78]
jne 0x665c47f6
cmp dword [esp + 0x3c], 1
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x78]
jne 0x665c4a96
cmp word [ebp + 0x12], 0
jne 0x665c4a96
mov ebx, dword [esp + 0xd0]
movzx eax, byte [ebp + 6]
cmp ax, word [ebx + 0x10]
jbe 0x665c4c58
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x11], 0
je 0x665c4adf
xor ebx, ebx
cmp word [esp + 0x76], 0
mov edi, dword [esp + 0x20]
jne 0x665c4adf
mov eax, dword [edi + ebx*4]
lea ecx, [esp + 0x90]
add ebx, 1
mov edx, dword [eax + 0x38]
mov edx, dword [edx + 8]
mov dword [esp + 4], ecx
mov ecx, 5
mov eax, dword [eax + 0x48]
bswap edx
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
call sym._ptrmapPut
cmp ebx, esi
jne 0x665c4aae
cmp dword [esp + 0x44], esi
jle 0x665c37c0
mov ebx, dword [esp + 0x5c]
lea eax, [esp + 0xb4]
lea edi, [esp + esi*4 + 0xb4]
add ebx, 4
lea esi, [eax + ebx]
jmp 0x665c4b0e
add edi, 4
cmp esi, edi
je 0x665c37c7
mov edx, dword [esp + 0x90]
test edx, edx
jne 0x665c4b03
mov eax, dword [edi]
lea edx, [esp + 0x90]
call sym._freePage.part.478
jmp 0x665c4b03
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
lea eax, [esi + ecx]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax*2]
lea eax, [edi + eax*4]
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x4c]
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x64]
mov dword [esp], eax
mov eax, ebx
call sym._pageInsertArray
test eax, eax
je 0x665c4bec
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + esi*2]
mov dword [esp + 0x60], eax
lea eax, [edi + esi*4]
mov edi, eax
jmp 0x665c4a28
cmp dword [esp + 0x44], ebp
lea eax, [ebp - 1]
jg 0x665c4bdb
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x70]
add esi, dword [esp + eax*4 + 0xe4]
mov eax, dword [esp + ebp*4 + 0xe4]
sub eax, esi
mov dword [esp + 0x30], eax
jmp 0x665c4838
mov eax, dword [esp + ebp*4 + 0xe0]
cmp dword [esp + ebp*4 + 0xf4], eax
jl 0x665c4a55
jmp 0x665c481b
mov edi, dword [esp + 0x70]
add edi, dword [esp + eax*4 + 0xf8]
mov dword [esp + 0x28], edi
jmp 0x665c4ba5
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x7c]
mov byte [ebx + 1], 0
mov word [ebx + 0x12], ax
shr ax, 8
mov byte [edi + esi + 3], al
movzx eax, word [ebx + 0x12]
mov byte [edi + esi + 4], al
mov eax, dword [esp + 0x148]
mov esi, dword [esp + 0x80]
sub eax, edi
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x148]
sub eax, edi
mov edi, dword [esp + 0x84]
mov byte [edi], al
jmp 0x665c4a3c
mov esi, dword [esp + 0x64]
mov eax, 1
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x28]
sub eax, esi
mov dword [esp + 0x40], eax
jmp 0x665c47de
mov eax, ebx
call sym._defragmentPage
test eax, eax
mov dword [esp + 0x90], eax
jne 0x665c4adf
lea ecx, [esp + 0x90]
mov edx, ebp
mov eax, ebx
call sym._copyNodeContent.part.477
mov ecx, dword [esp + 0x90]
test ecx, ecx
jne 0x665c4adf
lea edx, [esp + 0x90]
mov eax, ebx
call sym._freePage.part.478
jmp 0x665c4adf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x40]
sub eax, esi
cmp eax, ecx
mov dword [esp + 4], edx
mov dword [esp + 0x8c], edx
cmovg eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
add eax, eax
mov dword [esp + 8], eax
lea eax, [edx + ecx*2]
mov dword [esp], eax
call sym._memmove
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x6c]
lea edx, [edi + esi*2]
mov edi, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x8c]
lea ecx, [edi + esi*4]
mov dword [esp + 8], ecx
mov edi, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp], edx
mov edx, dword [esp + 0x4c]
call sym._pageInsertArray
test eax, eax
jne 0x665c4a28
mov edi, dword [esp + 0x6c]
add dword [esp + 0x10], edi
jmp 0x665c495e