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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0xfc
mov dword [esp + 0x54], eax
lea edi, [esp + 0xb8]
xor eax, eax
mov dword [esp + 0x88], ecx
mov ecx, 0xe
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb8]
mov ecx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0xc], 1
mov dword [esp], eax
mov eax, esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x80], edx
call fcn.66668430
mov dword [esp + 0x50], eax
test eax, eax
jne 0x6666a218
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x50], eax
test eax, eax
je 0x6666a278
cmp dword [esp + 0x110], 0xffffffff
je 0x6666a288
mov ebx, dword [esp + 0x54]
mov dword [esp], 0
mov edx, 0xf
lea ebp, [esp + 0xa8]
mov ecx, ebp
mov eax, ebx
call fcn.666450c0
mov dword [esp + 0x50], eax
test eax, eax
je 0x6666a3e8
lea esi, [esi]
nop
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
test ecx, ecx
jle 0x6666a24b
mov eax, dword [eax]
xor ebx, ebx
jmp 0x6666a233
mov eax, dword [eax + ebx*4]
call fcn.665fc5d0
add ebx, 1
mov eax, dword [esp + 0xb8]
cmp ebx, dword [esp + 0xbc]
jl 0x6666a230
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [esp + 0x50]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xb8]
jmp 0x6666a24b
mov dword [esp + 0x8c], 0
lea ebp, [esp + 0xa8]
mov dword [esp + 0x90], 0
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x110]
mov edi, esi
lea ebx, [eax + 1]
mov dword [esp + 0x38], esi
sar edi, 0x1f
mov eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x54]
sar eax, 0x1f
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x80]
imul dword [edi + 0x100]
add eax, dword [esp + 0x38]
mov dword [esp], 0
adc edx, dword [esp + 0x3c]
shld edx, eax, 0xa
shl eax, 0xa
mov ecx, edx
mov edx, eax
add edx, dword [esp + 0x40]
adc ecx, dword [esp + 0x44]
mov dword [esp + 0x48], edx
mov eax, edi
mov edx, 8
mov dword [esp + 0x4c], ecx
mov ecx, ebp
call fcn.666450c0
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x8c], edx
mov dword [esp + 0x50], eax
mov esi, eax
sbb edi, ecx
setl dl
cmp dword [esp + 0x110], 0xffffffff
setne al
and edx, eax
mov byte [esp + 0x58], dl
test esi, esi
jne 0x6666a218
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x80]
imul dword [edi + 0x100]
add eax, dword [esp + 0x38]
mov dword [esp + 4], 1
adc edx, dword [esp + 0x3c]
shld edx, eax, 0xa
shl eax, 0xa
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
cmp eax, 0x64
je 0x6666ade3
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
mov dword [esp + 0x50], eax
cmp byte [esp + 0x58], 0
jne 0x6666ae99
mov edx, dword [esp + 0x50]
test edx, edx
jne 0x6666a218
jmp 0x6666b209
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
imul dword [ebx + 0x100]
mov dword [esp + 4], 1
mov edi, esi
sar edi, 0x1f
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [esp + 0x80]
imul dword [ebx + 0x100]
mov dword [esp + 4], 2
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
add eax, 0x3ff
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa8]
adc edx, 0
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
cmp eax, 0x64
je 0x6666ae6f
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
mov dword [esp + 0x9c], eax
test eax, eax
jne 0x6666b268
cmp dword [esp + 0x110], 0xfffffffe
jne 0x6666a2a5
cmp dword [esp + 0xbc], 1
je 0x6666ac85
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xb0], 0
mov dword [esp + 0x98], eax
mov eax, 3
mov dword [esp], 0
xor ecx, ecx
lea edx, [esp + 0xb8]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc4], ebp
call fcn.66669ff0
test eax, eax
jne 0x6666acf3
mov dword [esp + 0x38], 0
lea esi, [esi]
nop
mov eax, dword [esp + 0x54]
lea edx, [esp + 0xb8]
call fcn.66669200
cmp eax, 0x64
jne 0x6666aa88
mov eax, dword [esp + 0xec]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x68], eax
test edi, edi
je 0x6666a970
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
xor ebp, ebp
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x48], edx
mov edx, eax
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0x18]
test eax, eax
jg 0x6666a5cf
jmp 0x6666ac6b
add ebp, 1
cmp eax, ebp
je 0x6666a5d8
movzx ebx, byte [ecx + ebp]
cmp byte [edx + ebp], bl
je 0x6666a5c8
mov eax, dword [esp + 0x58]
sub eax, ebp
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x50]
test ebx, ebx
jle 0x6666aa60
mov eax, ebp
xor ebx, ebx
cdq
lea esi, [esi]
nop
shrd eax, edx, 7
shr edx, 7
add ebx, 1
mov esi, edx
or esi, eax
jne 0x6666a5f8
mov eax, dword [esp + 0x50]
xor ecx, ecx
cdq
nop
shrd eax, edx, 7
shr edx, 7
add ecx, 1
mov edi, edx
or edi, eax
jne 0x6666a610
mov eax, dword [esp + 0x60]
add ebx, ecx
xor ecx, ecx
add ebx, dword [esp + 0x50]
cdq
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
lea esi, [esi]
shrd eax, edx, 7
shr edx, 7
add ecx, 1
mov edi, edx
or edi, eax
jne 0x6666a638
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
add ebx, ecx
add ebx, dword [esp + 0x60]
mov ecx, dword [edx + 0x30]
test eax, eax
jle 0x6666a790
mov edi, dword [esp + 0x54]
add eax, ebx
cmp eax, dword [edi + 0xe8]
jle 0x6666a790
mov esi, dword [edx + 0x10]
mov edi, dword [edx + 0x14]
mov ebx, edx
mov edx, esi
not edx
mov eax, edx
mov edx, edi
xor edx, 0x7fffffff
or edx, eax
je 0x6666ac78
mov eax, esi
mov edx, edi
add eax, 1
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x48]
adc edx, 0
mov dword [ebx + 0x14], edx
mov edx, esi
mov dword [esp + 4], eax
mov dword [esp], ecx
mov ecx, edi
mov edi, dword [esp + 0x54]
mov eax, edi
call fcn.66652fd0
mov dword [esp + 0x48], eax
test eax, eax
je 0x6666a708
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
lea esi, [esi]
mov dword [esp], ecx
call sym.libsqlite3_0.dll_sqlite3_free
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 0x24]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [edi]
call fcn.6658b080
mov dword [esp], edi
call sym.libsqlite3_0.dll_sqlite3_free
jmp 0x6666a218
add dword [edi + 0x34], 1
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x68]
mov edx, ebx
mov dword [esp], eax
mov eax, edi
call fcn.665d5700
mov dword [esp + 0x48], eax
test eax, eax
jne 0x6666a6c3
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x1c], 0
xor ecx, ecx
cdq
lea esi, [esi]
shrd eax, edx, 7
shr edx, 7
mov edi, ecx
add ecx, 1
mov esi, edx
or esi, eax
jne 0x6666a738
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x74]
xor ecx, ecx
lea edi, [eax + edi + 2]
mov eax, dword [esp + 0x70]
lea esi, [esi]
shrd eax, edx, 7
shr edx, 7
add ecx, 1
mov esi, edx
or esi, eax
jne 0x6666a760
mov eax, dword [esp + 0x60]
add ecx, edi
xor ebp, ebp
lea ebx, [ecx + eax]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
lea esi, [esi]
mov eax, dword [esp + 0x38]
mov edi, ebx
sar edi, 0x1f
add dword [eax + 0x38], ebx
adc dword [eax + 0x3c], edi
cmp ebx, dword [eax + 0x28]
jg 0x6666a948
add ecx, dword [esp + 0x48]
mov dword [esp + 0x7c], ebp
mov eax, ebp
mov dword [esp + 0x78], ecx
cdq
lea esi, [esi]
nop
mov ebx, eax
mov byte [esp + 0x40], al
shrd eax, edx, 7
mov ebp, ecx
shr edx, 7
add ecx, 1
or ebx, 0xffffff80
mov edi, edx
mov byte [ecx - 1], bl
or edi, eax
jne 0x6666a7c0
movzx ebx, byte [esp + 0x40]
mov eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x48]
and ebx, 0x7f
mov dword [esp + 0x48], ecx
mov byte [ebp], bl
add ecx, dword [eax + 0x30]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x50]
cdq
lea esi, [esi]
mov ebx, eax
mov byte [esp + 0x40], al
shrd eax, edx, 7
mov ebp, ecx
shr edx, 7
add ecx, 1
or ebx, 0xffffff80
mov edi, edx
mov byte [ecx - 1], bl
or edi, eax
jne 0x6666a808
movzx ebx, byte [esp + 0x40]
mov edi, dword [esp + 0x38]
mov eax, ebp
sub ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
and ebx, 0x7f
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x50]
mov byte [eax], bl
mov ebx, dword [esp + 0x48]
mov eax, dword [edi + 0x30]
add edx, ebp
mov dword [esp + 8], esi
add ebx, ecx
mov dword [esp + 4], edx
add eax, ebx
lea ebp, [esi + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi + 0x30]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x50], ebp
add ecx, ebp
mov dword [esp + 0x48], ecx
mov eax, ecx
mov ecx, dword [esp + 0x70]
lea esi, [esi]
mov edx, ecx
mov byte [esp + 0x40], cl
shrd ecx, ebx, 7
mov edi, eax
shr ebx, 7
add eax, 1
or edx, 0xffffff80
mov ebp, ebx
mov byte [eax - 1], dl
or ebp, ecx
jne 0x6666a880
movzx edx, byte [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
and edx, 0x7f
sub eax, ecx
mov byte [edi], dl
mov edi, dword [esp + 0x38]
lea ebx, [eax + ebp]
mov edx, dword [esp + 0x6c]
mov eax, dword [edi + 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
add eax, ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea ecx, [esi + ebx]
mov eax, dword [esp + 0x58]
mov dword [edi + 0x2c], ecx
cmp eax, dword [edi + 0x20]
jg 0x6666a910
mov eax, dword [edi + 0x18]
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x38]
mov dword [eax + 0x1c], ebx
jmp 0x6666a550
mov eax, dword [esp + 0x58]
lea ebx, [eax + eax]
mov eax, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x24]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_realloc
test eax, eax
je 0x6666aa74
mov edx, dword [esp + 0x38]
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], eax
mov dword [edx + 0x18], eax
jmp 0x6666a8e8
mov dword [esp], ecx
mov dword [esp + 4], ebx
call sym.libsqlite3_0.dll_sqlite3_realloc
mov ecx, eax
mov eax, dword [esp + 0x38]
test ecx, ecx
je 0x6666aa78
mov dword [eax + 0x30], ecx
mov dword [eax + 0x28], ebx
jmp 0x6666a7a8
mov esi, dword [0x6667ced0]
test esi, esi
jne 0x6666ac54
call fcn.66587320
test eax, eax
jne 0x6666ac5e
call fcn.665cb300
test eax, eax
jne 0x6666ac5e
mov eax, 0x40
xor edx, edx
call fcn.6658bcf0
mov dword [esp + 0x38], eax
mov ebx, eax
test eax, eax
je 0x6666ac5e
lea edi, [eax + 4]
mov ecx, eax
mov dword [eax], 0
and edi, 0xfffffffc
mov dword [eax + 0x3c], 0
xor eax, eax
sub ecx, edi
add ecx, 0x40
shr ecx, 2
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0xe8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_malloc
mov dword [ebx + 0x30], eax
mov ecx, eax
test eax, eax
je 0x6666aa7b
mov eax, dword [edi + 0xe8]
lea ecx, [esp + 0xa4]
mov edx, 0xa
mov dword [ebx + 0x28], eax
mov eax, edi
mov dword [esp], 0
call fcn.666450c0
mov dword [esp + 0x48], eax
test eax, eax
jne 0x6666a6c3
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
cmp eax, 0x64
je 0x6666ae43
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
mov dword [esp + 0x48], eax
test eax, eax
je 0x6666a5a1
jmp 0x6666a6c3
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], 0x10b
mov ecx, dword [eax + 0x30]
jmp 0x6666a6d8
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x50], 7
jmp 0x6666a6d8
mov dword [esp + 0x50], eax
test eax, eax
jne 0x6666b25b
cmp dword [esp + 0x110], 0xffffffff
je 0x6666abdc
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
xor ebx, ebx
mov dword [esp + 0xa4], 0
test edi, edi
jle 0x6666acae
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
jmp 0x6666aae3
add ebx, 1
cmp edi, ebx
jle 0x6666aca6
test al, al
je 0x6666aca6
mov edx, dword [esi + ebx*4]
xor ecx, ecx
mov eax, 1
mov ebp, dword [edx + 0xc]
or ebp, dword [edx + 8]
je 0x6666aad0
mov eax, dword [esp + 0x40]
call fcn.666530a0
test eax, eax
mov ecx, eax
sete al
jmp 0x6666aad0
mov dword [esp], 0
mov eax, dword [esp + 0x54]
mov edx, 0x1a
lea ecx, [esp + 0xa4]
call fcn.666450c0
mov dword [esp + 0x48], eax
test eax, eax
jne 0x6666ace4
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x88]
mov eax, ebp
imul dword [ebx + 0x100]
mov dword [esp + 4], 1
mov edi, esi
sar edi, 0x1f
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, ebp
imul dword [ebx + 0x100]
mov dword [esp + 4], 2
add eax, esi
adc edx, edi
shld edx, eax, 0xa
shl eax, 0xa
add eax, 0x3ff
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa4]
adc edx, 0
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
mov dword [esp + 0x48], eax
test eax, eax
jne 0x6666ace4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x6666a218
mov esi, dword [esp + 0x38]
mov ebp, dword [esi]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
test ebp, ebp
je 0x6666ad00
mov edi, dword [esi + 0x10]
mov ebp, dword [esi + 0x14]
mov ecx, edi
mov ebx, ebp
mov dword [esp + 0x80], edi
add ecx, 1
mov dword [esp + 0x84], ebp
adc ebx, 0
mov dword [esi + 0x10], ecx
mov ecx, ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 4], edx
mov edx, edi
mov dword [esp], eax
mov eax, dword [esp + 0x54]
call fcn.66652fd0
mov dword [esp + 0x50], eax
test eax, eax
je 0x6666af00
mov eax, dword [esp + 0x54]
add dword [eax + 0x34], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
jmp 0x6666a6d8
lock or dword [esp], 0
jmp 0x6666a998
mov dword [esp + 0x50], 7
jmp 0x6666a218
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], eax
jmp 0x6666a5e2
mov dword [esp + 0x50], 0x10b
jmp 0x6666a6d8
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov edi, dword [eax + 0x38]
test edi, edi
jne 0x6666a4d2
mov dword [esp + 0x50], 0x65
jmp 0x6666a22c
mov dword [esp + 0x48], ecx
test ecx, ecx
jne 0x6666ace4
cmp dword [esp + 0x110], 0xfffffffe
je 0x6666ab07
mov dword [esp], 0
mov eax, dword [esp + 0x54]
mov edx, 0x10
lea ecx, [esp + 0xa4]
call fcn.666450c0
mov dword [esp + 0x48], eax
test eax, eax
je 0x6666b0a6
cmp dword [esp + 0x38], 0
jne 0x6666a6c3
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
jmp 0x6666a218
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
call fcn.66653130
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
add dword [eax + 0x34], 1
test ebx, ebx
jne 0x6666ac48
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x8c], edx
sbb eax, dword [esp + 0x98]
jl 0x6666adaf
cmp dword [esp + 0x110], 0xffffffff
jne 0x6666ac48
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x90]
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x8c]
call fcn.66653360
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x50], eax
jmp 0x6666a6d8
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_column_int
mov esi, eax
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
mov dword [esp + 0x50], eax
test eax, eax
jne 0x6666a218
cmp esi, 0xf
jle 0x6666b1fa
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov dword [esp], ebx
mov eax, dword [esp + 0x54]
call fcn.6666a150
mov dword [esp + 0x50], eax
jmp 0x6666a3c5
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_column_int64
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
jmp 0x6666aa39
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_column_int64
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
jmp 0x6666a498
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x6666a218
xor eax, eax
mov ecx, 3
mov edi, ebp
mov edx, dword [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov eax, 3
jmp 0x6666a514
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x7c], 1
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
mov dword [esp + 0x64], edx
mov edi, dword [eax]
mov dword [esp + 0x78], eax
test edi, edi
je 0x6666b102
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
test eax, eax
je 0x6666b094
movzx eax, byte [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], eax
lea esi, [esi]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
xor esi, esi
mov eax, ecx
mov edx, ebx
lea esi, [esi]
lea esi, [esi]
shrd ecx, ebx, 7
shr ebx, 7
add esi, 1
mov ebp, ebx
or ebp, ecx
jne 0x6666af80
mov ebp, dword [esp + 0x48]
mov edi, 0xa
movzx ebx, byte [esp + 0x6c]
sub edi, esi
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x68], edi
mov byte [ecx + edi], bl
mov ecx, 0xb
sub ecx, esi
add ecx, dword [ebp + 0x24]
lea esi, [esi]
mov ebx, eax
mov byte [esp + 0x40], al
shrd eax, edx, 7
mov ebp, ecx
shr edx, 7
add ecx, 1
or ebx, 0xffffff80
mov edi, edx
mov byte [ecx - 1], bl
or edi, eax
jne 0x6666afb8
movzx ebx, byte [esp + 0x40]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x58]
and ebx, 0x7f
mov byte [ebp], bl
mov eax, dword [esi + 0x20]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x24]
mov ecx, ebp
add eax, edx
mov edx, edi
mov dword [esp], eax
mov eax, dword [esp + 0x54]
call fcn.66652fd0
add edi, 1
mov ecx, eax
mov eax, dword [esi + 0xc]
adc ebp, 0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], eax
add eax, 1
cdq
add dword [esp + 0x60], eax
mov eax, dword [esi + 4]
adc dword [esp + 0x64], edx
mov dword [esp + 0x48], eax
test eax, eax
je 0x6666b052
test ecx, ecx
je 0x6666af68
mov dword [esp + 0x50], ecx
jmp 0x6666ac40
test ecx, ecx
jne 0x6666b049
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
add dword [esp + 0x7c], 1
mov ebx, dword [eax]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x64], edx
mov esi, dword [ebx]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x60], eax
test esi, esi
je 0x6666b122
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
jmp 0x6666af38
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jmp 0x6666b056
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x80]
imul dword [ebx + 0x100]
mov dword [esp + 4], 1
mov ecx, eax
mov eax, dword [esp + 0x88]
mov ebx, edx
cdq
add eax, ecx
mov ecx, dword [esp + 0x110]
adc edx, ebx
shld edx, eax, 0xa
mov ebx, ecx
shl eax, 0xa
sar ebx, 0x1f
add eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa4]
adc edx, ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
jmp 0x6666abb2
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x50]
mov ecx, edi
mov ebx, ebp
shrd ecx, ebx, 7
shr ebx, 7
add eax, 1
mov esi, ebx
or esi, ecx
jne 0x6666b132
mov ecx, eax
mov esi, dword [esp + 0x78]
mov eax, 0xa
movzx edx, byte [esp + 0x7c]
sub eax, ecx
mov ebx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x24]
mov byte [eax + ebx], dl
mov eax, 0xb
sub eax, ecx
add eax, dword [esi + 0x24]
mov edx, edi
mov ebx, edi
shrd edi, ebp, 7
mov esi, eax
shr ebp, 7
add eax, 1
or edx, 0xffffff80
mov ecx, ebp
mov byte [eax - 1], dl
or ecx, edi
jne 0x6666b16a
and ebx, 0x7f
mov edx, dword [esp + 0x40]
mov byte [esi], bl
mov ebx, dword [esp + 0x78]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x50], eax
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x24]
mov ebx, dword [esp + 0x38]
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x5c]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
jmp 0x6666ad4a
cmp byte [esp + 0x58], 0
mov dword [esp + 0x50], esi
jne 0x6666aea5
xor eax, eax
mov ecx, 3
mov edi, ebp
mov edx, dword [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x8c], eax
mov eax, 1
jmp 0x6666a514
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
jmp 0x6666ace4
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x50], eax
jmp 0x6666a218