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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [eax + 8]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
test edi, edi
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ebx
je 0x665b0e42
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x20], eax
sub eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x18]
call sym._sqlite3VdbeMakeLabel.isra.428
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
test eax, eax
js 0x665b0e00
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x14]
test ebx, ebx
jle 0x665b0aa3
mov ebx, dword [esp + 0x38]
xor esi, esi
nop
lea esi, [esi]
mov ecx, dword [ebx + esi*4]
mov eax, dword [esp + 0x20]
mov edx, 0x4c
mov dword [esp + 4], 0
add esi, 1
add ecx, ebp
mov dword [esp], eax
mov eax, edi
add ecx, 1
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
cmp eax, esi
jg 0x665b0a70
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x665b0c13
mov esi, dword [esp + 0x34]
test esi, esi
je 0x665b0ce8
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x38]
cmp eax, ebx
jl 0x665b0cd0
mov edx, dword [esi + 0x3c]
sub eax, ebx
mov dword [esi + 0x38], eax
mov dword [esp + 0x40], edx
add edx, ebx
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + 0x13]
test al, al
jne 0x665b0cb5
mov eax, edx
mov edx, dword [edx + 0x48]
mov dword [esp + 0x28], edx
add edx, 1
mov dword [esp + 0x48], edx
mov dword [eax + 0x48], edx
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
mov edx, 0x36
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x24]
mov edx, esi
call sym._sqlite3VdbeSetP4KeyInfo
test ebx, ebx
jle 0x665b0f3b
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebx
lea edx, [eax + ebx]
mov esi, eax
shl eax, 2
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x38]
sub edx, eax
mov ebx, edx
nop
mov eax, dword [ebx + esi*4]
mov edx, 0x21
mov dword [esp], esi
mov dword [esp + 4], 0
add esi, 1
lea ecx, [ebp + eax + 1]
mov eax, edi
call sym._sqlite3VdbeAddOp3
cmp esi, dword [esp + 0x28]
jne 0x665b0b50
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
cmp dword [eax], edx
jne 0x665b0b92
cmp dword [esp + 0x2c], 1
je 0x665b0e84
mov edx, dword [esp + 0x34]
mov eax, edi
call sym._sqlite3IndexAffinityStr
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov esi, eax
mov edx, 0x31
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], ebp
call sym._sqlite3VdbeAddOp3
mov ecx, esi
mov edx, eax
mov dword [esp], ebx
mov eax, edi
call sym._sqlite3VdbeChangeP4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, 0x45
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp4Int
test ebp, ebp
jne 0x665b0e30
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
mov ecx, ebx
mov eax, esi
mov edx, ebp
call sym._sqlite3ExprCacheRemove
cmp dword [esi + 0x38], ebx
mov eax, esi
jge 0x665b0c13
mov dword [esi + 0x38], ebx
mov dword [eax + 0x3c], ebp
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + 0x18]
test cl, cl
jne 0x665b0c51
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx]
test byte [eax + 0x1b], 1
jne 0x665b0e50
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x665b0f1e
mov edx, dword [esp + 0x2c]
test edx, edx
jle 0x665b0c51
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov edx, 0x86
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x18]
xor ecx, 0xffffffff
js 0x665b0c85
mov eax, dword [edx + 0x70]
test eax, eax
je 0x665b0c85
mov ebx, dword [edi + 0x20]
mov dword [eax + ecx*4], ebx
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x30]
sub eax, 1
mov dword [edx + 0x58], eax
mov dword [esp + 0x74], 0
mov eax, edi
mov dword [esp + 0x70], 0
add esp, 0x5c
mov edx, 0x3d
pop ebx
pop esi
pop edi
pop ebp
jmp sym._sqlite3VdbeAddOp3
mov edx, dword [esp + 0x24]
sub eax, 1
mov byte [edx + 0x13], al
movzx eax, al
mov eax, dword [edx + eax*4 + 0x18]
mov dword [esp + 0x48], eax
jmp 0x665b0afe
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x48]
lea esi, [eax + 1]
add eax, ebx
mov dword [edx + 0x48], eax
mov dword [esp + 0x40], esi
jmp 0x665b0adb
mov ebx, dword [esp + 0x24]
movzx eax, byte [ebx + 0x13]
test al, al
je 0x665b0e70
mov ebx, dword [esp + 0x24]
sub eax, 1
mov byte [ebx + 0x13], al
movzx eax, al
mov esi, dword [ebx + eax*4 + 0x18]
mov eax, dword [esp + 0x38]
mov edx, 0x22
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], esi
lea ecx, [ebp + eax + 1]
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov edx, 0x26
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, esi
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
cmp dword [eax], edx
jne 0x665b0d60
cmp dword [esp + 0x2c], 1
je 0x665b0f83
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], 0x36
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov edx, ebp
call sym._sqlite3OpenTable
mov ecx, ebp
mov edx, 0x46
mov dword [esp + 4], esi
mov dword [esp], 0
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov edx, 0x10
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [edi + 0x20]
mov ebp, dword [edi + 4]
lea edx, [eax - 2]
cmp edx, eax
jae 0x665b0dcc
lea edx, [edx + edx*4]
mov dword [ebp + edx*4 + 8], eax
mov edx, dword [edi + 0x18]
lea ecx, [eax - 1]
cmp ebx, eax
mov dword [edx + 0x58], ecx
jae 0x665b0de0
lea edx, [ebx + ebx*4]
mov dword [ebp + edx*4 + 8], eax
test esi, esi
je 0x665b0c13
mov eax, dword [esp + 0x24]
mov edx, esi
call sym._sqlite3ReleaseTempReg.part.166
jmp 0x665b0c13
mov eax, dword [esp + 0x1c]
mov edx, 0x87
movzx ecx, byte [eax + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
jmp 0x665b0a5a
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
call sym._sqlite3ReleaseTempReg.part.166
jmp 0x665b0bf3
call sym._sqlite3GetVdbe.part.430
mov edi, eax
jmp 0x665b0a30
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x665b0c51
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x198]
test eax, eax
cmove eax, ebx
jmp 0x665b0c45
mov eax, ebx
mov ebx, dword [ebx + 0x48]
lea esi, [ebx + 1]
mov dword [esp + 0x28], ebx
mov dword [eax + 0x48], esi
jmp 0x665b0d09
mov eax, dword [edi + 0x20]
xor esi, esi
mov dword [esp + 0x4c], ebx
add eax, ebx
add eax, 1
mov dword [esp + 0x28], eax
lea eax, [ebx + ebx]
mov dword [esp + 0x44], eax
lea esi, [esi]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov edx, ebp
mov eax, dword [eax + esi*2]
lea ecx, [ebp + eax + 1]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi]
cmp ax, word [ebx + 0x20]
je 0x665b0ec6
lea edx, [ebp + eax + 1]
mov eax, dword [esp + 0x28]
mov dword [esp + 4], edx
mov edx, 0x4e
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [edi + 4]
test eax, eax
je 0x665b0eef
mov edx, dword [edi + 0x20]
lea edx, [edx + edx*4]
mov byte [eax + edx*4 - 0x11], 0x10
add esi, 2
cmp dword [esp + 0x44], esi
jne 0x665b0ea0
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
xor ecx, ecx
mov edx, 0x10
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
jmp 0x665b0b92
cmp byte [ebx + 0x14], 0
mov eax, ebx
je 0x665b0f58
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x665b0c51
mov eax, dword [esp + 0x24]
jmp 0x665b0c45
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
cmp dword [eax], edx
jne 0x665b0b92
cmp dword [esp + 0x2c], 1
jne 0x665b0b92
jmp 0x665b0efc
mov dword [esp + 8], 4
mov dword [esp + 4], 0xfffffffe
mov ecx, 2
mov dword [esp], 0
mov edx, 0x313
call sym._sqlite3HaltConstraint
jmp 0x665b0c6c
mov eax, dword [esp + 0x20]
mov dword [esp + 4], esi
mov ecx, ebp
mov edx, 0x4f
mov dword [esp], eax
mov eax, edi
call sym._sqlite3VdbeAddOp3
mov eax, dword [edi + 4]
test eax, eax
je 0x665b0d60
mov edx, dword [edi + 0x20]
lea edx, [edx + edx*4]
mov byte [eax + edx*4 - 0x11], 0x90
jmp 0x665b0d60