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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [esp + 0x160]
test esi, esi
je 0x6662bbbc
mov eax, dword [esp + 0x160]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
test eax, eax
je 0x6662bce4
mov eax, dword [eax + 0xc]
test eax, eax
je 0x6662b00e
mov dword [esp], eax
call dword [0x6667ce50]
mov eax, dword [esp + 0x160]
mov dword [esp + 0x38], 0x33
mov byte [eax + 0x95], 0
mov ebp, eax
lea esi, [esi]
lea esi, [esi]
cmp dword [ebp + 0x14], 0x2df20da3
je 0x6662b041
mov dword [esp], ebp
call sym.libsqlite3_0.dll_sqlite3_reset
mov eax, dword [ebp]
cmp byte [eax + 0x53], 0
mov dword [esp + 0x2c], eax
jne 0x6662b5a8
mov ebx, dword [ebp + 0x24]
movzx eax, byte [ebp + 0x98]
test ebx, ebx
js 0x6662b520
and eax, 0xc
je 0x6662b460
mov edi, dword [ebp + 0x58]
mov esi, dword [ebp]
mov dword [esp + 0x40], edi
add edi, 0x28
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
cmp al, 4
je 0x6662b640
mov eax, dword [esi + 0x20]
mov edx, 8
mov dword [esp + 0x20], eax
mov ebx, eax
mov eax, edi
call fcn.66594460
and ebx, 0x1000000
cmp dword [ebp + 0x28], 7
mov dword [ebp + 0x78], 0
je 0x6662bb5f
movzx eax, byte [ebp + 0x98]
mov edi, dword [ebp + 0x6c]
and eax, 0xc
mov byte [esp + 0x28], al
test ebx, ebx
jne 0x6662b670
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], edi
mov esi, dword [ebp + 0x24]
nop
mov ebx, esi
add esi, 1
cmp ebx, dword [esp + 0x24]
jge 0x6662b731
mov eax, dword [ebp + 0x6c]
cmp ebx, eax
jge 0x6662b2c8
mov eax, dword [ebp + 0x68]
lea edx, [ebx + ebx*4]
lea edi, [eax + edx*4]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6662b125
cmp byte [edi + 1], 0xfc
je 0x6662b418
cmp byte [esp + 0x28], 8
jne 0x6662b140
movzx eax, byte [edi]
cmp al, 0xb1
je 0x6662b140
cmp esi, 1
jle 0x6662b0f0
cmp al, 0x3e
jne 0x6662b0f0
lea esi, [esi]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], edi
mov dword [ebp + 0x24], esi
mov eax, dword [eax + 0x118]
test eax, eax
je 0x6662b8a0
mov dword [ebp + 0x28], 9
mov dword [esp + 4], str.interrupted
mov dword [esp], ebp
call fcn.665bc5e0
xor eax, eax
cmp eax, dword [ebp + 0x88]
sbb eax, dword [ebp + 0x8c]
jge 0x6662b18b
mov eax, dword [esp + 0x2c]
mov edx, ebp
call fcn.665881a0
mov ebx, 1
cmp byte [ebp + 0x94], 0
js 0x6662b854
mov ecx, dword [ebp]
mov esi, dword [ebp + 0x28]
cmp byte [ecx + 0x53], 0
setne al
test esi, esi
setne dl
or eax, edx
mov edi, dword [esp + 0x2c]
mov dword [edi + 0x40], ebx
test al, al
jne 0x6662b4e0
mov eax, dword [esp + 0x2c]
and ebx, dword [eax + 0x44]
cmp ebx, 0x11
jne 0x6662b2a0
sub dword [esp + 0x38], 1
je 0x6662b2a0
lea eax, [esp + 0x5c]
mov edi, dword [ebp]
mov ebx, dword [ebp + 0x24]
mov ecx, 0xffffffff
mov edx, dword [ebp + 0xc0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
movzx eax, byte [ebp + 0x94]
mov dword [esp], eax
mov eax, edi
call fcn.666445b0
mov esi, eax
test eax, eax
je 0x6662b2f8
cmp eax, 7
je 0x6662b715
mov eax, dword [esp + 0x44]
mov ebx, dword [eax + 0x110]
test ebx, ebx
je 0x6662b25e
movzx eax, word [ebx + 8]
mov edx, eax
and dx, 0x202
cmp dx, 0x202
je 0x6662bb99
test al, 1
jne 0x6662bda0
mov eax, ebx
mov edx, 1
call fcn.665ac380
mov ebx, eax
mov eax, dword [esp + 0x160]
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x6662b275
mov eax, dword [esp + 0x44]
call fcn.665926e0
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x53], 0
je 0x6662bd22
mov eax, dword [esp + 0x160]
mov ebx, 7
mov dword [eax + 0x7c], 0
mov dword [eax + 0x28], 7
lea esi, [esi]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x6662b2b4
mov dword [esp], eax
call dword [0x6667ce58]
add esp, 0x14c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x30]
sub ebx, eax
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
cmp eax, ebx
jg 0x6662b2ee
lea edx, [edi + 4]
lea esi, [esi]
mov ecx, dword [edx]
sub ebx, eax
add edx, 4
mov eax, dword [ecx + 4]
cmp eax, ebx
jle 0x6662b2e0
mov eax, dword [ecx]
jmp 0x6662b10d
mov eax, dword [esp + 0x5c]
lea edi, [esp + 0x60]
mov ecx, 0x38
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov ecx, 0x38
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x60]
mov ecx, 0x38
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], edx
mov edx, dword [eax + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc0]
mov dword [ebp + 4], edx
mov edx, dword [eax + 0xc0]
mov dword [eax + 0xc0], ecx
mov dword [ebp + 0xc0], edx
mov edx, dword [eax + 0xd4]
mov dword [ebp + 0xd4], edx
movzx edx, byte [eax + 0x94]
mov byte [ebp + 0x94], dl
mov esi, dword [eax + 0xa4]
mov edx, ebp
mov dword [ebp + 0xa4], esi
mov esi, dword [eax + 0xa8]
mov dword [ebp + 0xa8], esi
mov esi, dword [eax + 0xac]
mov dword [ebp + 0xac], esi
mov esi, dword [eax + 0xb0]
mov dword [ebp + 0xb0], esi
mov esi, dword [eax + 0xb4]
mov dword [ebp + 0xb4], esi
mov esi, dword [eax + 0xb8]
mov dword [ebp + 0xb8], esi
mov ecx, dword [eax + 0xbc]
add dword [ebp + 0xb8], 1
mov dword [ebp + 0xbc], ecx
call fcn.66592970
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x28], 0
cmp eax, 0x2df20da3
je 0x6662b6c8
cmp eax, 0x319c2973
je 0x6662b6c8
mov eax, esi
call fcn.6659aa20
mov dword [esp], ebp
call sym.libsqlite3_0.dll_sqlite3_reset
test ebx, ebx
js 0x6662b030
mov byte [ebp + 0x95], 1
jmp 0x6662b030
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6662b5c4
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], ebx
xor eax, eax
mov ebx, dword [esp + 0x34]
jmp 0x6662b44b
add eax, 1
cmp ebx, eax
je 0x6662b5c0
cmp dword [ecx + eax*4], edx
jne 0x6662b440
mov ebx, dword [esp + 0x3c]
jmp 0x6662b125
mov edi, dword [esp + 0x2c]
mov eax, ebp
add dword [edi + 0xc0], 1
call fcn.6661fc70
sub dword [edi + 0xc0], 1
mov ebx, eax
cmp eax, 0x64
je 0x6662b19d
xor eax, eax
cmp eax, dword [ebp + 0x88]
sbb eax, dword [ebp + 0x8c]
jge 0x6662b49f
mov eax, dword [esp + 0x2c]
mov edx, ebp
call fcn.665881a0
cmp ebx, 0x65
jne 0x6662b190
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x51], 0
jne 0x6662b768
mov ecx, dword [ebp]
mov esi, dword [ebp + 0x28]
mov ebx, 0x65
mov edi, dword [esp + 0x2c]
cmp byte [ecx + 0x53], 0
setne al
test esi, esi
mov dword [edi + 0x40], ebx
setne dl
or eax, edx
test al, al
je 0x6662b1c0
nop
mov edx, esi
mov eax, ecx
call fcn.66593f80
cmp eax, 7
jne 0x6662b1c0
cmp byte [ebp + 0x94], 0
mov dword [ebp + 0x28], 7
jns 0x6662b1c0
mov ebx, 7
mov eax, dword [esp + 0x2c]
and ebx, dword [eax + 0x44]
jmp 0x6662b2a0
test al, 3
jne 0x6662b6e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x6662b722
mov eax, dword [esp + 0x2c]
test byte [eax + 0x5a], 0x82
je 0x6662b568
cmp byte [eax + 0xa9], 0
jne 0x6662b568
mov edx, dword [ebp + 0xc0]
test edx, edx
je 0x6662b568
mov eax, dword [eax]
lea edx, [ebp + 0x88]
call fcn.66588140
lea esi, [esi]
mov edi, dword [esp + 0x2c]
movzx eax, byte [ebp + 0x98]
add dword [edi + 0xb4], 1
test al, al
js 0x6662b585
add dword [edi + 0xbc], 1
test byte [ebp + 0x99], 1
je 0x6662b599
mov edi, dword [esp + 0x2c]
add dword [edi + 0xb8], 1
mov dword [ebp + 0x24], 0
jmp 0x6662b064
mov eax, dword [esp + 0x160]
mov ebx, 7
mov dword [eax + 0x28], 7
jmp 0x6662b2a0
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 1]
test ecx, ecx
lea edx, [eax*4]
mov dword [esp + 0x34], eax
setne cl
mov eax, dword [esp + 0x20]
movzx ecx, cl
mov dword [esp + 0x3c], edx
call fcn.665a2ef0
mov dword [ebp + 0x28], eax
test eax, eax
jne 0x6662b6d4
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + 0x10]
mov ecx, edx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + edx - 4], eax
mov ecx, dword [esp + 0x20]
movzx eax, word [ecx + 8]
mov dword [ecx + 0xc], edx
mov word [esp + 0x3c], ax
and ax, 0x3e40
or eax, 0x10
mov word [ecx + 8], ax
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 4]
add dword [esp + 0x24], edx
jmp 0x6662b125
mov eax, dword [esp + 0x4c]
mov edx, 8
call fcn.66594460
cmp dword [ebp + 0x28], 7
mov dword [ebp + 0x78], 0
je 0x6662bb5f
movzx eax, byte [ebp + 0x98]
mov edi, dword [ebp + 0x6c]
and eax, 0xc
mov byte [esp + 0x28], al
mov eax, dword [ebp + 0x58]
lea esi, [eax + 0x168]
mov dword [esp + 0x20], esi
test byte [eax + 0x170], 0x10
je 0x6662b700
mov edx, dword [eax + 0x174]
mov eax, dword [eax + 0x178]
mov esi, edx
mov dword [esp + 0x30], eax
shr esi, 2
mov dword [esp + 0x34], esi
je 0x6662b0e7
lea ebx, [eax + esi*4]
lea esi, [esi]
nop
mov edx, dword [eax]
add eax, 4
add edi, dword [edx + 4]
cmp ebx, eax
jne 0x6662b6b0
jmp 0x6662b0e7
mov eax, esi
call fcn.665fb340
jmp 0x6662b3f0
mov dword [ebp + 0x24], esi
jmp 0x6662b170
cmp byte [ebp + 0x94], 0
mov dword [ebp + 0x28], 0x11
js 0x6662bb70
mov ebx, 1
jmp 0x6662b50b
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jmp 0x6662b0e7
mov dword [esp], edi
call fcn.6658a200
jmp 0x6662b224
mov dword [eax + 0x118], 0
jmp 0x6662b53a
xor eax, eax
cmp eax, dword [ebp + 0x88]
sbb eax, dword [ebp + 0x8c]
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], 0
jge 0x6662b4a8
mov eax, dword [esp + 0x2c]
mov edx, ebp
call fcn.665881a0
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x51], 0
je 0x6662b4b6
mov edi, dword [esp + 0x2c]
mov ebx, dword [edi + 0x14]
test ebx, ebx
jle 0x6662bda7
xor esi, esi
mov dword [esp + 0x160], ebp
mov dword [esp + 0x20], esi
jmp 0x6662b81c
add dword [ebx + 0xc], 1
cmp byte [ebx + 0xa], 0
jne 0x6662b862
mov eax, ebx
call fcn.6658e4e0
mov edx, dword [ebx + 4]
movzx eax, byte [ebx + 9]
mov edx, dword [edx]
mov ecx, dword [edx + 0xd8]
test ecx, ecx
je 0x6662bb41
mov edx, dword [ecx + 0xc]
mov dword [ecx + 0xc], 0
test al, al
je 0x6662b7d8
sub dword [ebx + 0xc], 1
je 0x6662b889
lea esi, [esi]
test edx, edx
jle 0x6662b810
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x6662b810
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x6662b810
mov dword [esp + 0xc], edx
mov edx, dword [edi + 0x10]
mov edx, dword [edx + ebp]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov edx, dword [edi + 0x100]
mov dword [esp], edx
call eax
mov dword [esp + 0x20], eax
nop
add esi, 1
cmp esi, dword [edi + 0x14]
jge 0x6662bb01
mov eax, dword [edi + 0x10]
mov ebp, esi
shl ebp, 4
mov ebx, dword [eax + ebp + 4]
test ebx, ebx
je 0x6662b810
cmp byte [ebx + 9], 0
jne 0x6662b790
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x6662b810
mov edx, dword [eax + 0xc]
mov dword [eax + 0xc], 0
jmp 0x6662b7d8
mov eax, ebp
call fcn.665a4e20
mov ebx, eax
jmp 0x6662b19d
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x6662bb49
mov edx, dword [eax + 0xc]
mov dword [eax + 0xc], 0
sub dword [ebx + 0xc], 1
jne 0x6662b7d8
mov eax, ebx
mov dword [esp + 0x24], edx
call fcn.66582810
mov edx, dword [esp + 0x24]
jmp 0x6662b7d8
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3b9aca00
mov dword [esp + 0x70], 0
mov word [esp + 0x74], si
movzx eax, byte [eax + 1]
mov byte [esp + 0x24], al
add eax, 0x11
cmp al, 0xf
ja case.0x6662b8e9.7
movzx eax, al
jmp dword [eax*4 + 0x66682d2c]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 4], str.vtab:_p
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_str_appendf
movzx eax, byte [esp + 0x74]
and eax, 7
test al, al
je case.0x6662b8e9.0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.6658a200
mov esi, dword [esp + 0x64]
test esi, esi
je 0x6662b94a
mov eax, dword [esp + 0x70]
mov byte [esi + eax], 0
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x6662bb7e
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x40]
movzx edx, byte [ebp + 0x98]
movzx eax, word [eax + 0x30]
and edx, 0xc
mov word [esp + 0x24], ax
and ax, 0x2400
cmp dl, 8
je 0x6662bc2b
mov ecx, ebx
sar ebx, 0x1f
test ax, ax
jne 0x6662bd10
mov eax, dword [esp + 0x40]
mov edx, 4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov word [eax + 0x30], dx
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x40]
mov ecx, 0xffffffff
movzx eax, byte [edi]
mov dword [esp + 4], 0
mov dword [esp], 1
mov edx, dword [eax*4 + 0x66688d60]
lea eax, [ebx + 0x50]
call fcn.665a4a40
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x40]
cdq
test word [ebx + 0x80], 0x2400
jne 0x6662bcfd
mov dword [edi + 0x78], eax
mov eax, 4
mov dword [edi + 0x7c], edx
mov word [edi + 0x80], ax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 8]
cdq
test word [edi + 0xa8], 0x2400
jne 0x6662bd8a
mov edi, dword [esp + 0x40]
mov dword [edi + 0xa0], eax
mov eax, 4
mov dword [edi + 0xa4], edx
mov word [edi + 0xa8], ax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
cdq
test word [edi + 0xd0], 0x2400
jne 0x6662bd74
mov edi, dword [esp + 0x40]
mov dword [edi + 0xc8], eax
mov eax, 4
mov dword [edi + 0xcc], edx
mov word [edi + 0xd0], ax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
xor edx, edx
movzx eax, word [eax + 2]
test word [edi + 0x120], 0x2400
jne 0x6662bd5e
mov edi, dword [esp + 0x40]
mov dword [edi + 0x118], eax
mov eax, 4
mov dword [edi + 0x11c], edx
mov word [edi + 0x120], ax
mov eax, dword [esp + 0x40]
test word [eax + 0x148], 0x2400
jne 0x6662bd4f
mov eax, dword [esp + 0x40]
mov edi, 1
mov word [eax + 0x148], di
mov eax, dword [esp + 0x40]
mov dword [esp], 1
mov edx, esi
mov ecx, 0xffffffff
mov dword [esp + 4], sym.libsqlite3_0.dll_sqlite3_free
mov esi, 8
add eax, 0xf0
call fcn.665a4a40
mov word [ebp + 0x90], si
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x78], eax
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x53], 0
je 0x6662bc0e
mov dword [ebp + 0x28], 7
jmp 0x6662b170
mov ebp, dword [esp + 0x160]
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp]
mov dword [ebp + 0x28], esi
test esi, esi
je 0x6662bbab
mov eax, dword [esp + 0x2c]
mov edx, esi
mov dword [eax + 0x40], 1
mov eax, ecx
call fcn.66593f80
cmp eax, 7
jne 0x6662c126
mov ebx, 1
jmp 0x6662b4f2
test al, al
je 0x6662b810
sub dword [ebx + 0xc], 1
jne 0x6662b810
mov eax, ebx
call fcn.66582810
jmp 0x6662b810
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.6658a200
jmp 0x6662b170
mov eax, ebp
call fcn.665a4e20
mov ebx, eax
jmp 0x6662b1c0
test byte [esp + 0x75], 4
jne 0x6662b946
lea eax, [esp + 0x60]
call fcn.66599800
mov esi, eax
jmp 0x6662b94a
cmp byte [ebx + 0xa], 1
jne 0x6662b248
mov ebx, dword [ebx + 0x10]
jmp 0x6662b25e
cmp byte [ecx + 0x53], 0
mov ebx, 0x65
setne al
jmp 0x6662b1b1
mov dword [esp + 4], 0x6667eb20
mov dword [esp], 0x15
call sym.libsqlite3_0.dll_sqlite3_log
mov dword [esp + 0x10], 0x6667e21c
mov ebx, 0x15
mov dword [esp + 0xc], 0x1499f
mov dword [esp + 8], str.misuse
mov dword [esp + 4], str._s_at_line__d_of___.10s_
mov dword [esp], 0x15
call sym.libsqlite3_0.dll_sqlite3_log
add esp, 0x14c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp]
mov dword [ebp + 0x28], 0
mov ebx, 0x64
cmp byte [ecx + 0x53], 0
setne al
xor esi, esi
jmp 0x6662b1b1
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 4]
mov ebx, ecx
sar ebx, 0x1f
test ax, ax
jne 0x6662bdea
mov eax, dword [esp + 0x40]
mov edx, 4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov word [eax + 0x30], dx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 8]
cdq
test word [edi + 0x58], 0x2400
jne 0x6662bdd7
mov edi, dword [esp + 0x40]
mov dword [edi + 0x50], eax
mov eax, 4
mov dword [edi + 0x54], edx
mov word [edi + 0x58], ax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
cdq
test word [edi + 0x80], 0x2400
jne 0x6662bdc4
mov edi, dword [esp + 0x40]
mov ebx, 4
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], edx
mov word [edi + 0x80], bx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], sym.libsqlite3_0.dll_sqlite3_free
mov ecx, 0xffffffff
mov edx, esi
mov dword [esp], 1
add eax, 0xa0
call fcn.665a4a40
mov ecx, 4
mov word [ebp + 0x90], cx
jmp 0x6662bae0
mov dword [esp + 4], str.API_called_with_finalized_prepared_statement
mov dword [esp], 0x15
call sym.libsqlite3_0.dll_sqlite3_log
jmp 0x6662bbd0
lea ebx, [edi + 0x78]
mov ecx, edx
mov edx, eax
mov eax, ebx
call fcn.665928a0
jmp 0x6662b9e6
mov eax, dword [esp + 0x4c]
mov edx, ecx
mov ecx, ebx
call fcn.665928a0
jmp 0x6662b98f
mov edx, ebx
mov edi, eax
call fcn.66591c60
mov ecx, dword [esp + 0x160]
mov edx, esi
mov dword [ecx + 0x7c], eax
mov eax, edi
call fcn.66593f80
mov ebx, eax
mov eax, dword [esp + 0x160]
mov dword [eax + 0x28], ebx
jmp 0x6662b2a0
add eax, 0x140
call fcn.66592820
jmp 0x6662bab0
lea ebx, [edi + 0x118]
mov ecx, edx
mov edx, eax
mov eax, ebx
call fcn.665928a0
jmp 0x6662ba8d
lea ebx, [edi + 0xc8]
mov ecx, edx
mov edx, eax
mov eax, ebx
call fcn.665928a0
jmp 0x6662ba54
lea ebx, [edi + 0xa0]
mov ecx, edx
mov edx, eax
mov eax, ebx
call fcn.665928a0
jmp 0x6662ba1d
xor ebx, ebx
jmp 0x6662b25e
mov ecx, dword [ebp]
mov dword [ebp + 0x28], 0
mov ebx, 0x65
cmp byte [ecx + 0x53], 0
setne al
xor esi, esi
jmp 0x6662b1b1
lea ebx, [edi + 0x78]
mov ecx, edx
mov edx, eax
mov eax, ebx
call fcn.665928a0
jmp 0x6662bcaf
lea ebx, [edi + 0x50]
mov ecx, edx
mov edx, eax
mov eax, ebx
call fcn.665928a0
jmp 0x6662bc7e
mov eax, dword [esp + 0x4c]
mov edx, ecx
mov ecx, ebx
call fcn.665928a0
jmp 0x6662bc53
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
movzx eax, word [edx + 8]
test al, 2
je 0x6662c0b5
mov esi, dword [edx + 0x10]
test esi, esi
je 0x6662b94a
lea eax, [esp + 0x60]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_str_appendall
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x10]
movzx eax, word [edi + 6]
mov dword [esp + 4], str.k__d
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x24], eax
call sym.libsqlite3_0.dll_sqlite3_str_appendf
xor edx, edx
cmp word [edi + 6], 0
je 0x6662beff
mov dword [esp + 0x28], ebx
mov ebx, edx
mov dword [esp + 0x160], ebp
mov ebp, edi
mov ecx, dword [ebp + ebx*4 + 0x14]
mov eax, 0x6667d542
test ecx, ecx
je 0x6662bea7
mov eax, dword [ecx]
mov edi, 0x6667f3f2
mov ecx, 7
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
mov edi, 0x66682ce0
seta cl
sbb cl, 0
test cl, cl
cmove eax, edi
mov ecx, dword [ebp + 0x10]
mov edi, 0x6667d542
mov esi, 0x66682ce2
movzx ecx, byte [ecx + ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], str.__s_s_s
test cl, 2
cmove esi, edi
and ecx, 1
mov ecx, 0x6667f395
mov dword [esp], eax
cmove ecx, edi
add ebx, 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
call sym.libsqlite3_0.dll_sqlite3_str_appendf
movzx eax, word [ebp + 6]
cmp ebx, eax
jl 0x6662be7a
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x160]
mov eax, dword [esp + 0x70]
lea edx, [eax + 1]
cmp edx, dword [esp + 0x68]
jae 0x6662c0fb
add eax, dword [esp + 0x64]
mov dword [esp + 0x70], edx
mov byte [eax], 0x29
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
movsx edx, byte [eax]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x20]
mov dword [esp + 4], str._s__d_
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_str_appendf
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov esi, dword [eax]
jmp 0x6662be12
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0x66680b37
mov dword [esp + 8], eax
jmp 0x6662b906
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
movzx edx, byte [eax + 4]
mov edx, dword [edx*4 + 0x66689038]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 4], str._.18s__s
mov dword [esp + 8], eax
jmp 0x6662bf45
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 4]
jmp 0x6662bf2f
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
mov edi, 1
mov dword [esp + 0x24], ecx
mov esi, dword [eax + 0x10]
mov eax, dword [esi]
mov dword [esp + 0x28], eax
test eax, eax
je 0x6662c0d1
cmp edi, 1
mov ecx, 0x5b
mov eax, 0x2c
mov edx, dword [esi + edi*4]
cmove eax, ecx
mov dword [esp + 4], str._c_u
add edi, 1
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_str_appendf
cmp dword [esp + 0x28], edi
jae 0x6662bfdb
mov eax, dword [esp + 0x70]
lea edx, [eax + 1]
cmp edx, dword [esp + 0x68]
jae 0x6662c0d1
add eax, dword [esp + 0x64]
mov dword [esp + 0x70], edx
mov byte [eax], 0x5d
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x6667e7ad
call sym.libsqlite3_0.dll_sqlite3_str_appendf
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
fld qword [eax]
fstp qword [esp + 8]
lea eax, [esp + 0x60]
mov dword [esp + 4], str._.16g
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_str_appendf
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x10]
jmp 0x6662be12
mov esi, str.program
jmp 0x6662be1a
test al, 0x24
jne 0x6662c0f1
test al, 8
jne 0x6662c11b
test al, 1
mov esi, str._blob_
mov eax, str.NULL
cmovne esi, eax
jmp 0x6662be1a
mov eax, dword [esp + 0x24]
mov ecx, 1
mov edx, 0x66682d25
call fcn.665a1860
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x6662c048
mov eax, dword [esp + 0x24]
mov ecx, 1
mov edx, 0x6667e0c4
call fcn.665a1860
movzx eax, byte [esp + 0x74]
and eax, 7
jmp 0x6662b91a
fld qword [edx]
fstp qword [esp + 8]
jmp 0x6662c07e
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x44]
and ebx, 1
jmp 0x6662b2a0