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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [esp + 0x110]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], edi
test edi, edi
jle 0x6665876f
mov edi, ecx
mov ecx, dword [ecx]
mov ebx, eax
mov edx, 0x51d07eaf
mov esi, dword [edi + 4]
mov eax, ecx
mul edx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ecx
shr eax, 6
imul eax, eax, 0x61
sub edx, eax
mov ebx, dword [ebx + edx*4 + 0x74]
test ebx, ebx
jne 0x6665873f
jmp 0x6665876f
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
je 0x6665876f
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
xor eax, ecx
xor edx, esi
or edx, eax
jne 0x66658738
mov edx, dword [ebx]
test edx, edx
je 0x6665875d
sub dword [edx + 0x10], 1
je 0x66658e9f
mov eax, dword [esp + 0x44]
test eax, eax
je 0x66658769
add dword [eax + 0x10], 1
mov eax, dword [esp + 0x44]
mov dword [ebx], eax
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x74]
mov edx, edi
mov eax, ebx
call fcn.66591bc0
test eax, eax
je 0x66658e05
mov edx, dword [0x6667ced0]
mov eax, dword [esp + 0x70]
cmp dword [ebx + 0x48], eax
jge 0x66658959
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
xor eax, 1
or eax, dword [edi + 0xc]
je 0x66658959
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x70]
mov ecx, 0xa
lea ebx, [esp + 0xc0]
mov dword [eax + 0x48], edi
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x18]
movzx eax, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
add eax, ecx
mov dword [esp + 0x1c], eax
add eax, 1
mov dword [esp + 0x28], eax
test edx, edx
jne 0x66658e95
call fcn.66587320
test eax, eax
jne 0x66659811
call fcn.665cb300
test eax, eax
jne 0x66659811
mov eax, dword [esp + 0x1c]
xor edx, edx
lea esi, [eax + 2]
and esi, 0xfffffffe
mov eax, esi
shl eax, 6
call fcn.6658bcf0
mov dword [esp + 0x20], eax
test eax, eax
je 0x66659811
lea ebp, [esi + esi*2]
shl esi, 2
shl ebp, 4
add ebp, eax
lea edi, [ebp + esi]
mov dword [esp + 0x30], ebp
add esi, edi
mov dword [esp + 0x3c], edi
mov edi, eax
mov dword [esp + 0x38], esi
mov esi, eax
xor eax, eax
mov dword [esp + 0x40], edi
mov ebp, eax
mov edi, dword [esp + 0x74]
cmp dword [esp + 0x1c], ebp
je 0x6665890e
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x2c]
movzx edx, byte [eax + 0x17]
movzx eax, byte [eax + 0x15]
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.6658d100
mov eax, dword [esp + 0x30]
mov dword [eax + ebp*4], ebp
mov eax, dword [esp + 0x2c]
movzx edx, byte [eax + 0x14]
test edx, edx
je 0x666588f2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], edi
movzx ecx, byte [eax + 0x16]
xor eax, eax
jmp 0x666588c1
fld dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x10]
faddp st(1)
fstp qword [ebx + eax*8]
add eax, 1
cmp eax, edx
je 0x666588ee
mov edi, dword [esi + eax*8 + 8]
fld qword [ebx + eax*8]
mov dword [esp + 0x18], edi
mov edi, dword [esi + eax*8 + 0xc]
mov dword [esp + 0x10], edi
test cl, cl
je 0x666588ab
fild dword [esp + 0x18]
faddp st(1)
fild dword [esp + 0x10]
faddp st(1)
fstp qword [ebx + eax*8]
add eax, 1
cmp eax, edx
jne 0x666588c1
mov edi, dword [esp + 0x50]
lea eax, [ebp + 1]
add esi, 0x30
cmp dword [esp + 0x1c], ebp
je 0x666592ae
mov ebp, eax
cmp dword [esp + 0x1c], ebp
jne 0x66658869
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
jmp 0x66658888
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x18]
movzx ebx, byte [eax + 2]
movzx esi, byte [eax + 3]
test edx, edx
jne 0x666596ce
call fcn.66587320
test eax, eax
jne 0x66658ddf
call fcn.665cb300
test eax, eax
jne 0x66658ddf
movzx eax, bl
mov ebx, esi
xor edx, edx
shl eax, 8
movzx esi, bl
lea ebp, [eax + esi]
lea edi, [ebp + 1]
mov dword [esp + 0x1c], ebp
imul eax, edi, 0x34
mov dword [esp + 0x50], edi
call fcn.6658bcf0
mov dword [esp + 0x28], eax
mov ebx, eax
test eax, eax
je 0x66658ddf
mov eax, edi
lea edi, [edi + edi*2]
mov dword [esp + 4], 0
mov esi, ebx
shl edi, 4
lea edx, [eax*4]
lea eax, [ebx + edi]
mov dword [esp + 8], edx
xor ebx, ebx
mov dword [esp], eax
call sub.msvcrt.dll_memset
test ebp, ebp
je 0x66658a1c
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x18]
movzx edx, byte [edi + 0x17]
movzx eax, byte [edi + 0x15]
mov dword [esp + 4], esi
add esi, 0x30
mov dword [esp], ebx
add ebx, 1
call fcn.6658d100
cmp dword [esp + 0x1c], ebx
jne 0x666589f5
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, dword [eax + 0x10]
lea edx, [eax - 2]
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
add eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], 1
lea eax, [eax + edi - 0x30]
mov edi, dword [esp + 0x74]
mov edx, dword [edi]
mov dword [eax], edx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [edi + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [edi + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [edi + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [edi + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [edi + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [edi + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [edi + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [edi + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
xor eax, 1
or eax, dword [ebx + 0xc]
je 0x6665982f
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edx, dword [edi]
call fcn.665d4290
add dword [edi + 0x10], 1
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x666598c4
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x66659825
mov edi, dword [esp + 0x2c]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x18]
mov edx, dword [edi + 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov esi, dword [0x6667ced0]
movzx ebx, byte [edi + 0x14]
test esi, esi
jne 0x6665981b
call fcn.66587320
test eax, eax
jne 0x66659676
call fcn.665cb300
test eax, eax
jne 0x66659676
mov ebp, dword [esp + 0x1c]
movzx eax, bl
add eax, 1
lea edx, [ebp + 2]
imul eax, edx
xor edx, edx
lea ebx, [eax*4]
mov eax, ebx
call fcn.6658bcf0
mov dword [esp + 0x7c], eax
mov edi, eax
test eax, eax
je 0x66659676
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
movzx edx, byte [eax + 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
imul esi, edx
mov eax, esi
mov esi, edi
mov dword [esp], esi
add eax, edx
lea edi, [edi + eax*4]
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x14]
test al, al
je 0x666598b1
xor esi, esi
xor ebx, ebx
movzx edx, al
mov eax, dword [esp + 0x7c]
add edx, esi
lea edx, [eax + edx*4]
mov dword [eax + ebx*4], edx
xor eax, eax
lea esi, [esi]
mov ecx, eax
mov dword [edx + eax*4], eax
add eax, 1
cmp ebp, ecx
jne 0x66658bd0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov dword [esp], ebx
add ebx, 1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
call fcn.66586ea0
mov eax, dword [esp + 0x2c]
add esi, dword [esp + 0x50]
movzx edx, byte [eax + 0x14]
cmp ebx, edx
jl 0x66658bbc
test dl, dl
je 0x666598b1
mov eax, dword [esp + 0x1c]
fldz
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], 0
shl eax, 2
fstp qword [esp + 0x88]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x10]
movzx eax, byte [eax + 0x17]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
sub eax, 4
cdq
idiv dword [esp + 0x40]
mov ecx, eax
mov eax, 0x55555556
imul ecx
sar ecx, 0x1f
mov eax, edx
sub eax, ecx
sub ecx, edx
add ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
cmp eax, ecx
jg 0x66659293
fldz
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x64], 0
lea esi, [esp + 0x90]
fst qword [esp + 0x68]
lea ebx, [esp + 0xc0]
movzx eax, byte [edi + 0x15]
movzx edi, byte [edi + 0x16]
fst qword [esp + 0x48]
mov byte [esp + 0x38], al
fstp qword [esp + 0x30]
lea esi, [esi]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebp
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [esi + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [esi + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [eax + 0x2c]
mov edx, dword [esp + 0x60]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx]
mov eax, dword [eax + edx]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebp
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
cmp dword [esp + 0x1c], 1
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ebx + 0x14], edx
mov edx, dword [eax + 0x18]
mov dword [ebx + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], edx
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x20], edx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x24], edx
mov edx, dword [eax + 0x28]
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jle 0x66658ecf
mov dword [esp + 0x10], esi
mov edx, edi
movzx eax, byte [esp + 0x38]
mov edi, ebx
mov esi, dword [esp + 0x2c]
mov ebp, 1
mov ebx, ecx
jmp 0x66658dbe
mov ecx, dword [esp + 0x10]
call fcn.6658cea0
movzx eax, byte [esi + 0x15]
movzx edx, byte [esi + 0x16]
add ebp, 1
cmp dword [esp + 0x1c], ebp
je 0x66658eb0
mov ecx, dword [ebx]
mov ecx, dword [ecx + ebp*4]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp ebp, dword [esp + 0x18]
mov dword [esp], ecx
jl 0x66658da0
mov ecx, edi
call fcn.6658cea0
jmp 0x66658da9
mov dword [esp + 0x28], 0
mov ebx, 7
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
add esp, 0xfc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x74]
mov edx, edi
mov eax, ebp
call fcn.6658fb20
mov ebx, eax
test eax, eax
jne 0x66658df8
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
test ecx, ecx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jne 0x66659874
mov eax, dword [ebp + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 2
mov eax, dword [ebp + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [ebp + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x110], eax
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
jmp sym.libsqlite3_0.dll_sqlite3_reset
lock or dword [esp], 0
jmp 0x66658810
mov eax, dword [esp + 0x2c]
call fcn.6664e490
jmp 0x6665875d
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x2c]
mov ebx, edi
mov edi, edx
mov esi, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
movzx eax, byte [eax + 0x17]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
movzx ebp, byte [esp + 0x38]
mov ecx, esi
mov edx, edi
mov eax, ebp
call fcn.6658cf20
fadd qword [esp + 0x30]
mov eax, ebp
mov ecx, ebx
fstp qword [esp + 0x10]
call fcn.6658cf20
fld qword [esp + 0x10]
mov eax, ebp
movzx ebp, al
faddp st(1)
fstp qword [esp + 0x30]
test ebp, ebp
je 0x6665928c
mov dword [esp + 0x10], ebx
xor eax, eax
fld1
jmp 0x66658f57
mov dword [esp + 0x20], ecx
fld dword [esp + 0x20]
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
fxch st(1)
mov ebx, dword [esp + 0x10]
fcomi st(1)
fcmovbe st(0), st(1)
fstp st(1)
fld dword [esi + eax*4 + 0xc]
fld dword [ebx + eax*4 + 0xc]
fcomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fxch st(1)
fcomi st(1)
ja 0x66658f99
fsubp st(1)
add eax, 2
fmulp st(1)
cmp ebp, eax
jle 0x6665925a
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + eax*4 + 8]
mov edx, dword [ebx + eax*4 + 8]
mov ebx, edi
test bl, bl
je 0x66658f18
cmp edx, ecx
jl 0x66659240
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
fild dword [esi + eax*4 + 0xc]
fild dword [ebx + eax*4 + 0xc]
fcomi st(1)
fcmovnbe st(0), st(1)
fstp st(1)
fxch st(1)
fcomi st(1)
jbe 0x66658f48
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x66658f9f
fstp st(0)
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x10]
fldz
mov eax, dword [esp + 0x2c]
fstp qword [esp + 0x20]
mov ecx, esi
mov edx, edi
movzx ebp, byte [eax + 0x14]
mov eax, ebp
call fcn.6658cf70
mov ecx, ebx
mov edx, edi
mov eax, ebp
fstp qword [esp + 0x10]
call fcn.6658cf70
mov eax, dword [esp + 0x3c]
fadd qword [esp + 0x10]
fld qword [esp + 0x20]
sub eax, 4
cdq
idiv dword [esp + 0x40]
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, dword [esp + 0x18]
cmp edx, eax
je 0x6665924f
fld qword [esp + 0x48]
fcomi st(1)
ja 0x6665924d
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x66659029
jne 0x6665902f
fld qword [esp + 0x68]
fcompi st(2)
jbe 0x66659038
fxch st(1)
mov dword [esp + 0x64], eax
fstp qword [esp + 0x68]
fstp qword [esp + 0x48]
jmp 0x66659040
fstp st(0)
fstp st(0)
jmp 0x66659040
fstp st(0)
fstp st(0)
jmp 0x66659040
fstp st(0)
fstp st(0)
lea esi, [esi]
mov eax, 0x55555556
add dword [esp + 0x18], 1
imul ecx
sar ecx, 0x1f
sub ecx, edx
add ecx, dword [esp + 0x50]
cmp dword [esp + 0x18], ecx
jle 0x66658cc8
mov eax, dword [esp + 0x80]
test eax, eax
je 0x66659269
fld qword [esp + 0x30]
fld qword [esp + 0x88]
fcompi st(1)
jbe 0x66659095
mov edi, dword [esp + 0x64]
mov dword [esp + 0x84], eax
fstp qword [esp + 0x88]
mov dword [esp + 0x78], edi
jmp 0x66659097
fstp st(0)
add dword [esp + 0x80], 1
mov eax, ebp
mov edi, dword [esp + 0x80]
movzx ebp, al
add dword [esp + 0x58], 4
cmp edi, ebp
jl 0x66658c60
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
lea esi, [eax + edi*4]
mov eax, dword [esp + 0x78]
lea edx, [eax*4]
mov eax, dword [esi]
mov edi, dword [esp + 0x28]
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x94], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x98], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xa8], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0xac], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xb0], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0xb4], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0xb8], ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0xbc], eax
mov eax, dword [esi]
mov eax, dword [eax + edx]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edi
xor edi, edi
mov edx, dword [eax]
mov dword [esp + 0xc0], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc8], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xcc], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xd4], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xd8], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0xe0], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0xe4], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0xe8], edx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0xec], eax
jmp 0x66659226
mov edx, dword [esp + 0x5c]
lea ebp, [esp + 0x90]
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 4
add ecx, dword [esp + 0x28]
call fcn.66591bc0
movzx eax, byte [ebx + 0x15]
movzx edx, byte [ebx + 0x16]
mov dword [esp], ecx
mov ecx, ebp
call fcn.6658cea0
lea eax, [edi + 1]
cmp dword [esp + 0x1c], edi
je 0x666595b9
mov edi, eax
cmp dword [esp + 0x78], edi
jg 0x666591e4
mov edx, dword [esp + 0x54]
lea ebp, [esp + 0xc0]
jmp 0x666591ef
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
jmp 0x66658f79
fstp st(0)
fxch st(1)
mov eax, dword [esp + 0x18]
jmp 0x6665901b
fadd dword [0x66690c50]
mov ebx, dword [esp + 0x10]
jmp 0x66658fa5
fld qword [esp + 0x30]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x84], 0
mov dword [esp + 0x78], eax
fstp qword [esp + 0x88]
jmp 0x66659097
fld1
jmp 0x66658fa5
mov eax, dword [esp + 0x2c]
fldz
mov dword [esp + 0x64], 0
fstp qword [esp + 0x30]
movzx ebp, byte [eax + 0x14]
jmp 0x6665905f
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
test edx, edx
je 0x666592d5
fild dword [esp + 0x28]
mov eax, ebx
lea ecx, [ebx + edx*8]
fadd st(0)
fld qword [eax]
add eax, 8
fdiv st(1)
fstp qword [eax - 8]
cmp ecx, eax
jne 0x666592c5
fstp st(0)
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov esi, eax
lea eax, [eax + ecx*8]
mov dword [esp + 0x30], eax
fldz
fst qword [esi]
test edx, edx
je 0x6665934a
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], esi
movzx ecx, byte [eax + 0x16]
xor eax, eax
jmp 0x66659316
fld dword [esp + 0x18]
fld dword [esp + 0x10]
fsubp st(1)
fsub qword [ebx + eax*8]
add eax, 1
fmul st(0)
faddp st(1)
cmp eax, edx
je 0x66659342
mov esi, dword [edi + eax*8 + 0xc]
mov dword [esp + 0x18], esi
mov esi, dword [edi + eax*8 + 8]
mov dword [esp + 0x10], esi
test cl, cl
je 0x666592fe
fild dword [esp + 0x18]
fild dword [esp + 0x10]
fsubp st(1)
fsub qword [ebx + eax*8]
add eax, 1
fmul st(0)
faddp st(1)
cmp eax, edx
jne 0x66659316
mov esi, dword [esp + 0x40]
fstp qword [esi]
jmp 0x6665934c
fstp st(0)
add esi, 8
add edi, 0x30
cmp dword [esp + 0x30], esi
jne 0x666592e6
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, ebp
call fcn.66587080
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
mov eax, dword [esi + 0x10]
lea edx, [eax - 2]
mov eax, dword [edi + 0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
add eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x10], ebp
mov dword [edi + 0x14], 1
xor edi, edi
mov ebx, edi
mov eax, dword [esi + 0x10]
movzx edi, byte [esi + 0x17]
sub eax, 4
cdq
idiv edi
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0x1c]
sar ecx, 0x1f
sub edx, ecx
sub eax, edx
cmp eax, ebx
jle 0x6665942c
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov eax, dword [eax + ebx*4]
add ebx, 1
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 4
add ecx, dword [esp + 0x20]
call fcn.66591bc0
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ebp, dword [edi + 4]
mov ecx, dword [edi]
xor ebp, eax
xor ecx, edx
or ebp, ecx
je 0x6665949b
mov eax, dword [esi + 0x10]
movzx ebp, byte [esi + 0x17]
sub eax, 4
cdq
idiv ebp
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0x1c]
sar ecx, 0x1f
sub edx, ecx
sub eax, edx
cmp eax, ebx
jg 0x666593d2
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edi, ebx
mov ebp, dword [esp + 0x10]
call fcn.66592500
mov ebx, eax
cmp dword [esp + 0x28], edi
jle 0x66659482
test eax, eax
jne 0x66659482
lea esi, [esp + 0x90]
mov eax, dword [ebp + edi*4]
mov ecx, dword [esp + 0x70]
mov dword [esp], esi
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x2c]
shl edx, 4
add edx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
call fcn.66658430
mov edx, dword [esp + 0x10]
test eax, eax
mov ebx, eax
je 0x6665950c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
add esp, 0xfc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x44]
test ecx, ecx
mov ebp, dword [edi + 0xc]
mov edi, dword [edi + 8]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
jne 0x66659578
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 2
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
test eax, eax
je 0x666593a9
mov ebx, eax
jmp 0x66659482
mov eax, dword [esp + 0x70]
mov ecx, edx
mov edx, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call fcn.666586e0
mov edx, dword [esp + 0x90]
mov ecx, eax
test edx, edx
je 0x6665954b
sub dword [edx + 0x10], 1
jne 0x6665954b
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
call fcn.6664e490
mov ecx, dword [esp + 0x10]
mov ebx, eax
test ecx, ecx
je 0x66659556
mov ebx, ecx
jmp 0x66659482
test ebx, ebx
sete dl
cmp dword [esp + 0x1c], edi
setg al
add edi, 1
test dl, al
jne 0x66659452
jmp 0x66659482
mov eax, dword [esi + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 2
mov eax, dword [esi + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [esi + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
mov eax, dword [esi + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_reset
jmp 0x666594fd
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_free
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x666595e7
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
call fcn.6664e360
mov ebx, eax
test eax, eax
jne 0x6665967b
mov eax, dword [esp + 0x5c]
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov eax, edi
or eax, esi
jne 0x66659606
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 0x14]
test edx, edx
jne 0x66659926
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edi
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x44]
mov ebx, dword [eax]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], eax
xor eax, 1
or eax, dword [edx + 0xc]
je 0x666598fb
mov eax, dword [ebx + 0x18]
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 3]
shl edx, 8
add ecx, edx
mov dword [esp + 0x10], ecx
je 0x666598f1
mov edx, dword [esp + 0x2c]
add eax, 4
xor ebp, ebp
movzx edx, byte [edx + 0x17]
mov dword [esp + 0x18], edx
jmp 0x666596e9
mov ebx, 7
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [edi + 0x10], eax
jne 0x666596a7
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
call fcn.6664e490
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x66658dec
mov edi, dword [esp + 0x5c]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [edi + 0x10], eax
jne 0x66658dec
mov eax, dword [esp + 0x2c]
mov edx, edi
call fcn.6664e490
jmp 0x66658dec
lock or dword [esp], 0
jmp 0x6665898a
add ebp, 1
add eax, dword [esp + 0x18]
cmp dword [esp + 0x10], ebp
je 0x666598f1
mov ecx, dword [eax]
mov edx, dword [eax + 4]
bswap ecx
bswap edx
xor ecx, edi
xor edx, esi
or ecx, edx
jne 0x666596d8
bswap edi
mov dword [eax], edi
mov edi, dword [esp + 0x2c]
bswap esi
xor edx, edx
mov dword [eax + 4], esi
lea esi, [esp + 0x90]
cmp byte [edi + 0x15], 0
je 0x6665972f
mov ecx, dword [esi + edx*4 + 8]
mov edi, dword [esp + 0x2c]
bswap ecx
mov dword [eax + edx*4 + 8], ecx
movzx ecx, byte [edi + 0x15]
add edx, 1
cmp edx, ecx
jl 0x66659716
mov dword [ebx + 0x14], 1
mov eax, dword [esp + 0x2c]
mov edx, ebx
mov ecx, esi
call fcn.6658fb20
mov ebx, eax
test eax, eax
jne 0x6665967b
mov eax, dword [esp + 0x70]
lea esi, [eax + 1]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov dword [esp], esi
lea ecx, [esp + 0xc0]
mov edx, dword [edi]
mov eax, ebp
call fcn.666586e0
mov ebx, eax
test eax, eax
jne 0x6665967b
mov eax, dword [edi + 0x18]
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 3]
shl edx, 8
add edx, ecx
je 0x666599b1
mov dword [esp + 0x10], 0
mov esi, eax
jmp 0x666597ba
mov edi, dword [esp + 0x54]
add ebx, 1
mov esi, dword [edi + 0x18]
movzx edx, byte [esi + 2]
movzx edi, byte [esi + 3]
shl edx, 8
add edx, edi
cmp ebx, edx
jge 0x66659948
movzx eax, byte [ebp + 0x17]
imul eax, ebx
mov edi, dword [esi + eax + 4]
mov esi, dword [esi + eax + 8]
mov eax, dword [esp + 0x70]
bswap edi
bswap esi
mov ecx, edi
mov edx, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, ebp
call fcn.6664e680
mov ecx, dword [esp + 0x74]
mov edx, eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
xor esi, eax
xor edi, ecx
or edi, esi
mov esi, 1
cmovne esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
test edx, edx
je 0x6665979b
mov ebx, edx
jmp 0x6665967b
mov ebx, 7
jmp 0x66658df8
lock or dword [esp], 0
jmp 0x66658b4b
mov ebx, 7
jmp 0x6665969b
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
mov edx, ebx
mov eax, edi
call fcn.665d4290
mov edx, ebx
mov dword [esp + 0x54], eax
mov eax, edi
call fcn.665d4290
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x10], eax
add eax, 1
mov dword [edi + 0x1c], eax
rol ax, 8
mov dword [ebx + 0x14], 1
mov word [edx], ax
jmp 0x66658acf
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 2
mov eax, dword [ebx + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_bind_int64
mov eax, dword [ebx + 0x68]
mov dword [esp], eax
call sym.libsqlite3_0.dll_sqlite3_step
mov eax, dword [ebx + 0x68]
jmp 0x66658e7f
mov dword [esp + 0x78], 0
mov esi, dword [esp + 0x7c]
xor edx, edx
jmp 0x666590d1
mov edi, dword [esp + 0x54]
test edi, edi
je 0x66659825
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [edi + 0x10], eax
jne 0x66659825
mov ebx, 7
jmp 0x6665968e
mov ebx, 0x10b
jmp 0x6665967b
mov eax, dword [esp + 0x70]
mov edx, ebx
lea ecx, [esp + 0x90]
lea esi, [eax + 1]
mov eax, dword [esp + 0x2c]
mov dword [esp], esi
call fcn.666586e0
mov ebx, eax
test eax, eax
je 0x66659754
jmp 0x6665967b
mov edx, eax
mov edi, eax
mov eax, dword [esp + 0x2c]
call fcn.6664e360
mov ebx, eax
test eax, eax
jne 0x6665967b
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
jmp 0x66659606
mov edi, dword [esp + 0x44]
mov ebp, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x18], eax
xor eax, 1
or eax, dword [edi + 0xc]
je 0x66659a00
mov eax, dword [esp + 0x10]
test eax, eax
je 0x666599cd
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [edi + 0x10], eax
jne 0x66659993
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
call fcn.6664e490
mov ebx, eax
test eax, eax
jne 0x666596a7
mov edi, dword [esp + 0x5c]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x10], eax
sub eax, 1
mov dword [edi + 0x10], eax
je 0x66659a71
xor ebx, ebx
jmp 0x66658dec
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
xor eax, 1
or eax, dword [edi + 0xc]
je 0x66659a00
mov eax, dword [esp + 0x74]
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x70]
mov edx, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call fcn.6664e680
mov ebx, eax
test eax, eax
jne 0x6665967b
jmp 0x66659969
mov eax, dword [esp + 0x5c]
xor esi, esi
mov eax, dword [eax + 0x18]
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 3]
shl edx, 8
add edx, ecx
je 0x66659969
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x2c]
jmp 0x66659a41
mov eax, dword [edi + 0x18]
add esi, 1
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 3]
shl edx, 8
add edx, ecx
cmp esi, edx
jge 0x66659969
movzx edx, byte [ebp + 0x17]
imul edx, esi
mov ecx, dword [eax + edx + 4]
mov edx, dword [eax + edx + 8]
mov dword [esp], edi
mov eax, dword [esp + 0x70]
bswap ecx
bswap edx
mov dword [esp + 4], eax
mov eax, ebp
call fcn.6664e680
mov ebx, eax
test eax, eax
je 0x66659a26
jmp 0x6665967b
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
call fcn.6664e490
mov ebx, eax
jmp 0x66658dec