Function at 0x10056b80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [ebx]
xor edi, edi
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 4]
lea edx, [eax - 1]
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x1005892e
push dword [esi]
push dword [ecx + 8]
push dword [ecx + 4]
push str.SELECT_segid__term___pgno__1____pgno1__FROM__Q._q_idx_WHERE_segid_d_ORDER_BY_1__2
call sym.e_sqlite3.dll_sqlite3_mprintf
add esp, 0x10
mov esi, eax
cmp dword [ebx + 0x24], edi
jne 0x10056bf6
test esi, esi
je 0x10056bef
mov ecx, dword [ebx]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push 0x85
push 0xffffffffffffffff
push esi
push dword [ecx]
call fcn.100b3340
mov edi, dword [ebp - 0xc]
add esp, 0x1c
mov dword [ebx + 0x24], eax
jmp 0x10056bf6
mov dword [ebx + 0x24], 7
push esi
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x1005883e
push edi
mov esi, 1
call sym.e_sqlite3.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1005883e
test edi, edi
je 0x10056c6f
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10056c46
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, 1
mov eax, dword [edi + 0x78]
test eax, eax
je 0x10056c5b
cmp si, word [edi + 0x90]
jae 0x10056c5b
add eax, 0x28
jmp 0x10056c74
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
push eax
call sym.e_sqlite3.dll_sqlite3_value_blob
add esp, 4
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x10056d10
mov ecx, dword [edi]
mov edx, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10056c9b
test edx, edx
jne 0x10056c9b
xor eax, eax
jmp 0x10056ca7
push edx
push ecx
call fcn.10025920
mov ecx, dword [edi]
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10056cc5
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10056ce2
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [edi + 0x78]
test eax, eax
je 0x10056cfc
mov ecx, 1
cmp cx, word [edi + 0x90]
jae 0x10056cfc
add eax, 0x28
jmp 0x10056d15
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
movzx ecx, word [eax + 0x10]
test cl, 2
je 0x10056d29
cmp byte [eax + 0x12], 1
jne 0x10056d29
mov eax, dword [eax + 0xc]
jmp 0x10056d5d
test cl, 0x10
je 0x10056d44
mov edx, dword [eax + 0xc]
test ecx, 0x400
je 0x10056d3f
mov eax, dword [eax]
add eax, edx
jmp 0x10056d5d
mov dword [ebp - 0x10], edx
jmp 0x10056d60
test cl, 1
je 0x10056d52
mov dword [ebp - 0x10], 0
jmp 0x10056d60
push 1
push eax
call fcn.100e57f0
add esp, 8
mov dword [ebp - 0x10], eax
test edi, edi
je 0x10056df4
mov ecx, dword [edi]
mov edx, dword [edi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x10056d7b
test edx, edx
jne 0x10056d7b
xor eax, eax
jmp 0x10056d87
push edx
push ecx
call fcn.10025920
mov ecx, dword [edi]
add esp, 8
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10056da5
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
test edi, edi
je 0x10056df4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10056dc6
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [edi + 0x78]
test eax, eax
je 0x10056de0
mov ecx, 2
cmp cx, word [edi + 0x90]
jae 0x10056de0
add eax, 0x50
jmp 0x10056df9
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
movzx ecx, word [eax + 0x10]
test cl, 0x24
je 0x10056e0f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x38], eax
jmp 0x10056e54
test cl, 8
je 0x10056e2d
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10031ff0
add esp, 8
mov dword [ebp - 0x38], edx
jmp 0x10056e51
test cl, 0x12
je 0x10056e46
cmp dword [eax + 8], 0
je 0x10056e46
push eax
call fcn.10071770
add esp, 4
mov dword [ebp - 0x38], edx
jmp 0x10056e51
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
test edi, edi
je 0x10056ee2
mov eax, dword [edi]
mov ecx, dword [edi + 0x24]
cmp byte [eax + 0x57], 0
jne 0x10056e6b
test ecx, ecx
je 0x10056e79
push ecx
push eax
call fcn.10025920
mov ecx, eax
add esp, 8
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10056e97
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10056eb4
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [edi + 0x78]
test eax, eax
je 0x10056ece
mov ecx, 3
cmp cx, word [edi + 0x90]
jae 0x10056ece
add eax, 0x78
jmp 0x10056ee7
mov eax, dword [edi]
push 0x19
push eax
mov dword [eax + 0x40], 0x19
call fcn.10096500
add esp, 8
mov eax, 0x1010df80
movzx ecx, word [eax + 0x10]
test cl, 0x24
je 0x10056efd
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], eax
jmp 0x10056f42
test cl, 8
je 0x10056f1b
movsd xmm0, qword [eax]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10031ff0
add esp, 8
mov dword [ebp - 0x38], edx
jmp 0x10056f3f
test cl, 0x12
je 0x10056f34
cmp dword [eax + 8], 0
je 0x10056f34
push eax
call fcn.10071770
add esp, 4
mov dword [ebp - 0x38], edx
jmp 0x10056f3f
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
test edi, edi
je 0x10056f81
mov eax, dword [edi]
mov ecx, dword [edi + 0x24]
cmp byte [eax + 0x57], 0
jne 0x10056f55
test ecx, ecx
je 0x10056f63
push ecx
push eax
call fcn.10025920
mov ecx, eax
add esp, 8
mov eax, dword [edi]
mov dword [edi + 0x24], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10056f81
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 8]
cmp esi, dword [eax + 4]
jl 0x10056bff
mov eax, dword [eax]
xor ebx, ebx
cdq
mov ecx, eax
mov dword [ebp - 0x18], 0
mov eax, esi
shl ecx, 5
cdq
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp + 8]
adc ecx, edx
mov dword [ebp - 0x2c], ecx
cmp dword [ebx + 0x24], 0
jne 0x1005883e
lea esi, [ebx + 0x28]
xor edi, edi
mov ebx, dword [esi]
mov dword [ebp - 0x38], esi
test ebx, ebx
je 0x1005712b
push ecx
push dword [ebp - 0x28]
mov dword [esi], edi
push ebx
call sym.e_sqlite3.dll_sqlite3_blob_reopen
mov edi, eax
mov dword [esi], ebx
add esp, 0xc
test edi, edi
je 0x10057128
mov dword [esi], 0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10057018
mov esi, dword [0x10125148]
push ecx
mov ecx, esi
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp - 4]
add esp, 4
cmp ebx, dword [eax + 0x164]
jae 0x1005705c
cmp ebx, dword [eax + 0x15c]
jb 0x1005703e
mov eax, dword [eax + 0x158]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x158], ebx
jmp 0x100570f7
cmp ebx, dword [eax + 0x160]
jb 0x1005705c
mov eax, dword [eax + 0x150]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x150], ebx
jmp 0x100570f7
cmp dword [eax + 0x210], 0
je 0x10057074
push ebx
push eax
call fcn.10071700
add esp, 8
jmp 0x100570f4
cmp dword [0x101250f8], 0
je 0x100570e0
mov eax, dword [0x10129520]
test eax, eax
je 0x1005709a
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x100570f4
mov esi, dword [0x10125150]
push eax
jmp 0x100570e7
mov esi, dword [0x1012511c]
push ebx
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10057112
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
push dword [ebp - 0x20]
call sym.e_sqlite3.dll_sqlite3_finalize
mov esi, dword [ebp - 0x38]
xor eax, eax
add esp, 4
cmp edi, 4
cmove edi, eax
mov ecx, dword [ebp - 0x2c]
cmp dword [esi], 0
jne 0x10057156
test edi, edi
jne 0x10057156
mov edx, dword [ebp + 8]
push esi
push edi
push ecx
push dword [ebp - 0x28]
mov eax, dword [edx]
push str.block
push dword [edx + 4]
push dword [eax + 4]
push dword [eax]
call sym.e_sqlite3.dll_sqlite3_blob_open
add esp, 0x20
mov edi, eax
cmp edi, 1
jne 0x1005719d
mov edi, 0x10b
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
inc dword [ecx + 0x40]
mov dword [ecx + 0x24], edi
test ebx, ebx
je 0x1005883e
mov eax, dword [ebx + 4]
cmp eax, 4
jl 0x100587b7
mov esi, dword [ebx + 8]
cmp esi, eax
jg 0x100587b7
jl 0x10057425
mov dword [ecx + 0x24], 0x10b
jmp 0x100574f8
test edi, edi
jne 0x10057160
mov eax, dword [esi]
test eax, eax
je 0x100571b0
cmp dword [eax + 0x10], edi
je 0x100571b0
mov esi, dword [eax]
jmp 0x100571b2
xor esi, esi
mov dword [ebp - 0x20], esi
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x10057419
lea eax, [esi + 0x20]
push 0
push eax
call fcn.100b3720
mov ebx, eax
add esp, 8
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x10057419
lea eax, [ebx + 0xc]
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x28]
test edi, edi
jne 0x1005721a
push 0x1011b6ec
push 0x184bf
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x14
mov edi, 0x15
jmp 0x10057359
mov ebx, dword [edi + 0x14]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1005723b
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x20]
add esp, 4
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
test esi, esi
js 0x10057307
cmp esi, dword [edi]
jg 0x10057307
test eax, eax
jne 0x1005725d
lea esi, [eax + 4]
jmp 0x1005730c
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x1005727b
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x1005727b
push eax
call fcn.100295f0
add esp, 4
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
cmp byte [eax], 0
jne 0x10057298
push 0
push dword [ebp - 0x2c]
push esi
push ecx
push eax
call fcn.10023160
add esp, 0x14
jmp 0x100572a6
push dword [ebp - 0x2c]
push esi
push ecx
push eax
call fcn.100234a0
add esp, 0x10
mov esi, eax
mov eax, dword [edi + 0xc]
mov ecx, esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x100572ca
add dword [eax + 0xc], 0xffffffff
jne 0x100572ca
push eax
call fcn.100e37a0
add esp, 4
mov ecx, esi
mov eax, dword [ebp - 0x28]
cmp esi, 4
jne 0x100572ea
push eax
call fcn.100d2150
mov eax, dword [ebp - 0x2c]
add esp, 4
mov dword [edi + 0x10], 0
mov dword [ebx + 0x40], eax
jmp 0x1005730f
mov dword [eax + 0x24], esi
mov esi, ecx
mov dword [ebx + 0x40], ecx
test ecx, ecx
jne 0x1005730f
cmp dword [ebx + 0x124], ecx
jne 0x1005730f
mov dword [ebx + 0x44], 0xffffffff
jmp 0x10057319
mov esi, 1
mov dword [ebx + 0x40], esi
push esi
push ebx
call fcn.10096500
add esp, 8
cmp byte [ebx + 0x57], 0
jne 0x10057327
test esi, esi
jne 0x10057327
xor edi, edi
jmp 0x10057333
push esi
push ebx
call fcn.10025920
add esp, 8
mov edi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1005734e
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov ebx, dword [ebp - 0x18]
test edi, edi
je 0x100573f2
cmp dword [0x101250f8], 0
je 0x100573d7
mov eax, dword [0x10129520]
test eax, eax
je 0x1005737f
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1005741e
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
xor ebx, ebx
jmp 0x10057163
mov esi, dword [0x1012511c]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
add esp, 4
xor ebx, ebx
jmp 0x10057163
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + eax], 0
mov eax, dword [ebx]
mov byte [eax + ecx + 1], 0
mov eax, dword [ebx]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
add ecx, eax
mov dword [ebx + 8], ecx
jmp 0x10057163
mov edi, 7
xor ebx, ebx
jmp 0x10057163
mov edi, dword [ebx]
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + esi]
push eax
call fcn.100a70c0
movzx ecx, byte [edi]
add esp, 8
movzx eax, byte [edi + 1]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jge 0x100574df
cmp eax, esi
jge 0x100574df
lea ecx, [ebp - 0x40]
add eax, edi
push ecx
push eax
call fcn.100a70c0
add eax, dword [ebp - 0x30]
add esp, 8
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov esi, dword [ebp - 0x40]
cmp esi, ecx
cmovl edx, esi
test edx, edx
jle 0x100574d7
lea ecx, [edi + eax]
mov edi, dword [ebp - 0x1c]
sub edx, 4
jb 0x10057495
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1005749a
add ecx, 4
add edi, 4
sub edx, 4
jae 0x10057484
cmp edx, 0xfffffffc
je 0x100574ce
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x100574c7
cmp edx, 0xfffffffd
je 0x100574ce
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x100574c7
cmp edx, 0xfffffffe
je 0x100574ce
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x100574c7
cmp edx, 0xffffffff
je 0x100574ce
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x100574ce
sbb eax, eax
or eax, 1
jmp 0x100574d0
xor eax, eax
test eax, eax
jne 0x100574dd
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub eax, ecx
test eax, eax
jns 0x100574eb
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0x10b
jmp 0x100574ee
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.10059c30
add esp, 8
push ebx
call sym.e_sqlite3.dll_sqlite3_free
mov ebx, dword [ebp + 8]
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x1005883e
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, dword [ebp - 8]
inc eax
dec edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], edx
nop
cmp eax, edx
jg 0x10057b8c
mov eax, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [eax]
cdq
mov esi, eax
mov eax, dword [ebp - 0x1c]
shl esi, 5
cdq
add edi, eax
mov dword [ebp - 0x28], edi
adc esi, edx
mov dword [ebp - 0x20], esi
test ecx, ecx
jne 0x10057b4e
mov ecx, dword [ebp + 8]
xor ebx, ebx
add ecx, 0x28
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx]
test edi, edi
je 0x100577af
mov dword [ecx], ebx
mov ebx, dword [edi + 0x14]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10057583
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x20]
add esp, 4
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x10057594
mov eax, 4
jmp 0x1005762a
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push eax
push esi
push dword [ebp - 0x28]
push edi
call fcn.100286c0
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005762a
mov esi, dword [ebp - 0x44]
xor edx, edx
test esi, esi
mov ecx, 0x1010ba8c
push esi
cmove ecx, edx
push ecx
push eax
push ebx
call fcn.100966b0
add esp, 0x10
test esi, esi
je 0x10057627
cmp esi, dword [ebx + 0x164]
jae 0x1005760a
cmp esi, dword [ebx + 0x15c]
jb 0x100575f2
mov eax, dword [ebx + 0x158]
mov dword [esi], eax
mov dword [ebx + 0x158], esi
jmp 0x10057627
cmp esi, dword [ebx + 0x160]
jb 0x1005760a
mov eax, dword [ebx + 0x150]
mov dword [esi], eax
mov dword [ebx + 0x150], esi
jmp 0x10057627
cmp dword [ebx + 0x210], 0
push esi
je 0x1005761f
push ebx
call fcn.10071700
add esp, 8
jmp 0x10057627
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
mov eax, dword [ebp - 0x18]
cmp byte [ebx + 0x57], 0
jne 0x10057634
test eax, eax
je 0x1005763e
push eax
push ebx
call fcn.10025920
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1005765c
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x2c]
mov dword [ecx], edi
test ebx, ebx
je 0x100577ac
mov dword [ecx], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1005769c
mov esi, dword [0x10125148]
push ecx
mov ecx, esi
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp - 4]
add esp, 4
cmp edi, dword [eax + 0x164]
jae 0x100576e0
cmp edi, dword [eax + 0x15c]
jb 0x100576c2
mov eax, dword [eax + 0x158]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x158], edi
jmp 0x1005777b
cmp edi, dword [eax + 0x160]
jb 0x100576e0
mov eax, dword [eax + 0x150]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x150], edi
jmp 0x1005777b
cmp dword [eax + 0x210], 0
je 0x100576f8
push edi
push eax
call fcn.10071700
add esp, 8
jmp 0x10057778
cmp dword [0x101250f8], 0
je 0x10057764
mov eax, dword [0x10129520]
test eax, eax
je 0x1005771e
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push edi
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push edi
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x10057778
mov esi, dword [0x10125150]
push eax
jmp 0x1005776b
mov esi, dword [0x1012511c]
push edi
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10057796
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
push dword [ebp - 0x38]
call sym.e_sqlite3.dll_sqlite3_finalize
mov ecx, dword [ebp - 0x10]
xor eax, eax
add esp, 4
cmp ebx, 4
cmove ebx, eax
mov esi, dword [ebp - 0x20]
cmp dword [ecx], 0
mov edi, dword [ebp + 8]
jne 0x100577dd
test ebx, ebx
jne 0x100577dd
mov eax, dword [edi]
push ecx
push ebx
push esi
push dword [ebp - 0x28]
push str.block
push dword [edi + 4]
push dword [eax + 4]
push dword [eax]
call sym.e_sqlite3.dll_sqlite3_blob_open
mov ecx, dword [ebp - 0x10]
add esp, 0x20
mov ebx, eax
cmp ebx, 1
jne 0x100577f4
mov ebx, dword [ebp + 8]
inc dword [ebx + 0x40]
mov dword [ebx + 0x24], 0x10b
jmp 0x10057b4e
test ebx, ebx
jne 0x10057b81
mov eax, dword [ecx]
test eax, eax
je 0x1005780b
cmp dword [eax + 0x10], ebx
je 0x1005780b
mov esi, dword [eax]
jmp 0x1005780d
xor esi, esi
mov dword [ebp - 0x20], esi
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x10057b71
lea eax, [esi + 0x20]
push 0
push eax
call fcn.100b3720
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10057b71
lea eax, [ebx + 0xc]
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1005786d
push 0x1011b6ec
push 0x184bf
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x14
lea edi, [esi + 0x15]
jmp 0x100579b8
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1005788e
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
test ecx, ecx
js 0x10057965
cmp ecx, dword [esi]
jg 0x10057965
test eax, eax
jne 0x100578b3
lea esi, [eax + 4]
jmp 0x1005796a
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x100578d4
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x100578d4
push eax
call fcn.100295f0
mov ecx, dword [ebp - 0x20]
add esp, 4
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea esi, [ebx + 0xc]
cmp byte [eax], 0
jne 0x100578f2
push 0
push esi
push ecx
push edx
push eax
call fcn.10023160
add esp, 0x14
jmp 0x100578fe
push esi
push ecx
push edx
push eax
call fcn.100234a0
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x10057925
add dword [eax + 0xc], 0xffffffff
jne 0x10057925
push eax
call fcn.100e37a0
add esp, 4
mov ecx, esi
mov eax, dword [ebp - 0x28]
cmp esi, 4
jne 0x10057948
push eax
call fcn.100d2150
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x40], eax
jmp 0x1005796d
mov dword [eax + 0x24], esi
mov esi, ecx
mov dword [edi + 0x40], ecx
test ecx, ecx
jne 0x1005796d
cmp dword [edi + 0x124], ecx
jne 0x1005796d
mov dword [edi + 0x44], 0xffffffff
jmp 0x10057977
mov esi, 1
mov dword [edi + 0x40], esi
push esi
push edi
call fcn.10096500
add esp, 8
cmp byte [edi + 0x57], 0
jne 0x10057985
test esi, esi
jne 0x10057985
xor eax, eax
jmp 0x1005798f
push esi
push edi
call fcn.10025920
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100579ad
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x10057a67
cmp dword [0x101250f8], 0
je 0x10057a45
mov eax, dword [0x10129520]
test eax, eax
je 0x100579e2
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x10057b76
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov ebx, dword [ebp + 8]
add esp, 4
inc dword [ebx + 0x40]
mov dword [ebx + 0x24], edi
jmp 0x10057b4e
mov esi, dword [0x1012511c]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov ebx, dword [ebp + 8]
add esp, 4
inc dword [ebx + 0x40]
mov dword [ebx + 0x24], edi
jmp 0x10057b4e
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov byte [ecx + eax], 0
mov eax, dword [ebx]
mov byte [eax + ecx + 1], 0
mov eax, dword [ebx]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
add ecx, eax
mov dword [ebx + 8], ecx
mov ecx, edi
inc dword [esi + 0x40]
mov dword [esi + 0x24], edi
mov edi, 0x10b
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 4]
mov eax, dword [ebp - 0x14]
cmovl ecx, edi
inc eax
mov dword [esi + 0x24], ecx
cmp dword [ebp - 0x1c], eax
jl 0x10057ad0
mov edx, dword [ebx]
mov eax, 0x100
movzx ecx, byte [edx]
imul ecx, eax
movzx eax, byte [edx + 1]
xor edx, edx
add cx, ax
mov eax, dword [esi + 0x24]
cmp dx, cx
cmovne eax, edi
mov dword [esi + 0x24], eax
cmp dword [0x101250f8], 0
je 0x10057b68
mov eax, dword [0x10129520]
test eax, eax
je 0x10057afa
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x10057b4b
mov esi, dword [0x10125150]
push eax
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x24]
inc eax
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x1005883e
mov edx, dword [ebp - 0x34]
jmp 0x10057520
mov esi, dword [0x1012511c]
push ebx
jmp 0x10057b3e
mov edi, 7
mov ebx, dword [ebp + 8]
inc dword [ebx + 0x40]
mov dword [ebx + 0x24], edi
jmp 0x10057b4e
mov dword [edi + 0x24], ebx
mov ebx, dword [ebp + 8]
inc dword [ebx + 0x40]
jmp 0x10057b4e
cmp dword [ebp - 0x24], 0
je 0x100587a0
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edi, eax
push eax
mov dword [ebp - 0x14], 0
mov esi, dword [esi]
push esi
push 0
push ebx
call fcn.10052200
push eax
push ebx
mov dword [ebp - 0x20], eax
call fcn.10052110
add esp, 0x18
test eax, eax
jne 0x10058786
mov eax, esi
mov esi, dword [ebp - 0x20]
cdq
mov ecx, eax
shl ecx, 5
mov dword [ebp - 0x1c], ecx
lea edx, [edi + 1]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
cmp edx, edi
jge 0x10058198
mov eax, edx
cdq
mov esi, eax
add esi, 0
mov dword [ebp - 0x24], esi
adc edx, ecx
cmp dword [ebx + 0x24], 0
mov dword [ebp - 0x10], edx
jne 0x10058180
lea ecx, [ebx + 0x28]
xor edi, edi
mov ebx, dword [ecx]
mov dword [ebp - 0x28], ecx
test ebx, ebx
je 0x10057e67
mov dword [ecx], edi
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10057c3a
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x10057c4b
mov eax, 4
jmp 0x10057cdf
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x48]
push eax
push edx
push esi
push ebx
call fcn.100286c0
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10057cdf
mov esi, dword [ebp - 0x48]
xor edx, edx
test esi, esi
mov ecx, 0x1010ba8c
push esi
cmove ecx, edx
push ecx
push eax
push edi
call fcn.100966b0
add esp, 0x10
test esi, esi
je 0x10057cdc
cmp esi, dword [edi + 0x164]
jae 0x10057cbf
cmp esi, dword [edi + 0x15c]
jb 0x10057ca7
mov eax, dword [edi + 0x158]
mov dword [esi], eax
mov dword [edi + 0x158], esi
jmp 0x10057cdc
cmp esi, dword [edi + 0x160]
jb 0x10057cbf
mov eax, dword [edi + 0x150]
mov dword [esi], eax
mov dword [edi + 0x150], esi
jmp 0x10057cdc
cmp dword [edi + 0x210], 0
push esi
je 0x10057cd4
push edi
call fcn.10071700
add esp, 8
jmp 0x10057cdc
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
mov eax, dword [ebp - 0x18]
cmp byte [edi + 0x57], 0
jne 0x10057ce9
test eax, eax
je 0x10057cf3
push eax
push edi
call fcn.10025920
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10057d11
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov dword [ecx], ebx
test edi, edi
je 0x10057e61
mov dword [ecx], 0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10057d51
mov esi, dword [0x10125148]
push ecx
mov ecx, esi
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp - 4]
add esp, 4
cmp ebx, dword [eax + 0x164]
jae 0x10057d95
cmp ebx, dword [eax + 0x15c]
jb 0x10057d77
mov eax, dword [eax + 0x158]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x158], ebx
jmp 0x10057e30
cmp ebx, dword [eax + 0x160]
jb 0x10057d95
mov eax, dword [eax + 0x150]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x150], ebx
jmp 0x10057e30
cmp dword [eax + 0x210], 0
je 0x10057dad
push ebx
push eax
call fcn.10071700
add esp, 8
jmp 0x10057e2d
cmp dword [0x101250f8], 0
je 0x10057e19
mov eax, dword [0x10129520]
test eax, eax
je 0x10057dd3
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x10057e2d
mov esi, dword [0x10125150]
push eax
jmp 0x10057e20
mov esi, dword [0x1012511c]
push ebx
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10057e4b
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
push dword [ebp - 0x38]
call sym.e_sqlite3.dll_sqlite3_finalize
mov ecx, dword [ebp - 0x28]
xor eax, eax
add esp, 4
cmp edi, 4
cmove edi, eax
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
cmp dword [ecx], 0
mov ebx, dword [ebp + 8]
jne 0x10057e93
test edi, edi
jne 0x10057e93
mov eax, dword [ebx]
push ecx
push edi
push edx
push esi
push str.block
push dword [ebx + 4]
push dword [eax + 4]
push dword [eax]
call sym.e_sqlite3.dll_sqlite3_blob_open
mov ecx, dword [ebp - 0x28]
add esp, 0x20
mov edi, eax
cmp edi, 1
jne 0x10057ea4
mov dword [ebx + 0x24], 0x10b
jmp 0x1005817a
test edi, edi
jne 0x10058177
mov eax, dword [ecx]
test eax, eax
je 0x10057ebb
cmp dword [eax + 0x10], edi
je 0x10057ebb
mov esi, dword [eax]
jmp 0x10057ebd
xor esi, esi
mov dword [ebp - 0x28], esi
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x10058168
lea eax, [esi + 0x20]
push 0
push eax
call fcn.100b3720
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10058168
lea eax, [edi + 0xc]
mov dword [edi + 4], esi
mov dword [edi], eax
mov ebx, dword [ebx + 0x28]
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x10057f22
push 0x1011b6ec
push 0x184bf
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0x15
jmp 0x10058061
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10057f43
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x28]
add esp, 4
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
test esi, esi
js 0x1005800f
cmp esi, dword [ebx]
jg 0x1005800f
test eax, eax
jne 0x10057f65
lea esi, [eax + 4]
jmp 0x10058014
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x10057f83
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x10057f83
push eax
call fcn.100295f0
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
cmp byte [eax], 0
jne 0x10057fa0
push 0
push dword [ebp - 0x2c]
push esi
push ecx
push eax
call fcn.10023160
add esp, 0x14
jmp 0x10057fae
push dword [ebp - 0x2c]
push esi
push ecx
push eax
call fcn.100234a0
add esp, 0x10
mov esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x10057fd2
add dword [eax + 0xc], 0xffffffff
jne 0x10057fd2
push eax
call fcn.100e37a0
add esp, 4
mov ecx, esi
mov eax, dword [ebp - 0x24]
cmp esi, 4
jne 0x10057ff2
push eax
call fcn.100d2150
mov eax, dword [ebp - 0x2c]
add esp, 4
mov dword [ebx + 0x10], 0
mov dword [edi + 0x40], eax
jmp 0x10058017
mov dword [eax + 0x24], esi
mov esi, ecx
mov dword [edi + 0x40], ecx
test ecx, ecx
jne 0x10058017
cmp dword [edi + 0x124], ecx
jne 0x10058017
mov dword [edi + 0x44], 0xffffffff
jmp 0x10058021
mov esi, 1
mov dword [edi + 0x40], esi
push esi
push edi
call fcn.10096500
add esp, 8
cmp byte [edi + 0x57], 0
jne 0x1005802f
test esi, esi
jne 0x1005802f
xor ebx, ebx
jmp 0x1005803b
push esi
push edi
call fcn.10025920
add esp, 8
mov ebx, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10058056
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
test ebx, ebx
je 0x1005810b
mov edi, dword [ebp - 0x18]
cmp dword [0x101250f8], 0
je 0x100580ed
mov eax, dword [0x10129520]
test eax, eax
je 0x1005808b
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push edi
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push edi
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1005816d
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x24], ebx
mov ebx, eax
jmp 0x1005817a
mov esi, dword [0x1012511c]
mov ecx, esi
push edi
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x24], ebx
mov ebx, eax
jmp 0x1005817a
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
push esi
mov eax, dword [esi]
mov byte [ecx + eax], 0
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov eax, dword [esi]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], ecx
mov dword [eax + 0x24], ebx
mov ebx, eax
mov eax, 0x100
inc dword [ebx + 0x40]
mov edx, dword [esi]
movzx ecx, byte [edx]
imul ecx, eax
movzx eax, byte [edx + 1]
add cx, ax
mov eax, dword [ebx + 0x24]
mov ecx, 0x10b
cmovne eax, ecx
mov dword [ebx + 0x24], eax
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
jmp 0x1005817d
mov ebx, 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], ebx
mov ebx, eax
jmp 0x1005817a
mov dword [ebx + 0x24], edi
inc dword [ebx + 0x40]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
mov edi, dword [eax + 0x18]
mov dword [ebp - 0x10], edi
cmp edx, edi
jl 0x10057be8
mov eax, edi
cdq
mov esi, eax
add esi, 0
mov dword [ebp - 0x28], esi
adc edx, ecx
cmp dword [ebx + 0x24], 0
mov dword [ebp - 0x24], edx
jne 0x1005874e
lea ecx, [ebx + 0x28]
xor edi, edi
mov ebx, dword [ecx]
mov dword [ebp - 0x2c], ecx
test ebx, ebx
je 0x10058417
mov dword [ecx], edi
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100581ea
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x28]
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x100581fb
mov eax, 4
jmp 0x1005828f
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x4c]
push eax
push edx
push esi
push ebx
call fcn.100286c0
add esp, 0x10
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005828f
mov esi, dword [ebp - 0x4c]
xor edx, edx
test esi, esi
mov ecx, 0x1010ba8c
push esi
cmove ecx, edx
push ecx
push eax
push edi
call fcn.100966b0
add esp, 0x10
test esi, esi
je 0x1005828c
cmp esi, dword [edi + 0x164]
jae 0x1005826f
cmp esi, dword [edi + 0x15c]
jb 0x10058257
mov eax, dword [edi + 0x158]
mov dword [esi], eax
mov dword [edi + 0x158], esi
jmp 0x1005828c
cmp esi, dword [edi + 0x160]
jb 0x1005826f
mov eax, dword [edi + 0x150]
mov dword [esi], eax
mov dword [edi + 0x150], esi
jmp 0x1005828c
cmp dword [edi + 0x210], 0
push esi
je 0x10058284
push edi
call fcn.10071700
add esp, 8
jmp 0x1005828c
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
mov eax, dword [ebp - 0x18]
cmp byte [edi + 0x57], 0
jne 0x10058299
test eax, eax
je 0x100582a3
push eax
push edi
call fcn.10025920
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100582c1
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
mov dword [ecx], ebx
test edi, edi
je 0x10058411
mov dword [ecx], 0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10058301
mov esi, dword [0x10125148]
push ecx
mov ecx, esi
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp - 4]
add esp, 4
cmp ebx, dword [eax + 0x164]
jae 0x10058345
cmp ebx, dword [eax + 0x15c]
jb 0x10058327
mov eax, dword [eax + 0x158]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x158], ebx
jmp 0x100583e0
cmp ebx, dword [eax + 0x160]
jb 0x10058345
mov eax, dword [eax + 0x150]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x150], ebx
jmp 0x100583e0
cmp dword [eax + 0x210], 0
je 0x1005835d
push ebx
push eax
call fcn.10071700
add esp, 8
jmp 0x100583dd
cmp dword [0x101250f8], 0
je 0x100583c9
mov eax, dword [0x10129520]
test eax, eax
je 0x10058383
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x100583dd
mov esi, dword [0x10125150]
push eax
jmp 0x100583d0
mov esi, dword [0x1012511c]
push ebx
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100583fb
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
push dword [ebp - 0x38]
call sym.e_sqlite3.dll_sqlite3_finalize
mov ecx, dword [ebp - 0x2c]
xor eax, eax
add esp, 4
cmp edi, 4
cmove edi, eax
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
cmp dword [ecx], 0
mov ebx, dword [ebp + 8]
jne 0x10058443
test edi, edi
jne 0x10058443
mov eax, dword [ebx]
push ecx
push edi
push edx
push esi
push str.block
push dword [ebx + 4]
push dword [eax + 4]
push dword [eax]
call sym.e_sqlite3.dll_sqlite3_blob_open
mov ecx, dword [ebp - 0x2c]
add esp, 0x20
mov edi, eax
cmp edi, 1
jne 0x10058454
mov dword [ebx + 0x24], 0x10b
jmp 0x10058748
test edi, edi
jne 0x10058745
mov eax, dword [ecx]
test eax, eax
je 0x1005846b
cmp dword [eax + 0x10], edi
je 0x1005846b
mov esi, dword [eax]
jmp 0x1005846d
xor esi, esi
mov dword [ebp - 0x2c], esi
call sym.e_sqlite3.dll_sqlite3_initialize
test eax, eax
jne 0x10058736
lea eax, [esi + 0x20]
push 0
push eax
call fcn.100b3720
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10058736
lea eax, [edi + 0xc]
mov dword [edi + 4], esi
mov dword [edi], eax
mov ebx, dword [ebx + 0x28]
mov dword [ebp - 0x28], eax
test ebx, ebx
jne 0x100584d2
push 0x1011b6ec
push 0x184bf
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0x15
jmp 0x10058611
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100584f3
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov esi, dword [ebp - 0x2c]
add esp, 4
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
test esi, esi
js 0x100585bf
cmp esi, dword [ebx]
jg 0x100585bf
test eax, eax
jne 0x10058515
lea esi, [eax + 4]
jmp 0x100585c4
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x10058533
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x10058533
push eax
call fcn.100295f0
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
cmp byte [eax], 0
jne 0x10058550
push 0
push dword [ebp - 0x28]
push esi
push ecx
push eax
call fcn.10023160
add esp, 0x14
jmp 0x1005855e
push dword [ebp - 0x28]
push esi
push ecx
push eax
call fcn.100234a0
add esp, 0x10
mov esi, eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 8]
cmp byte [eax + 9], 0
je 0x10058582
add dword [eax + 0xc], 0xffffffff
jne 0x10058582
push eax
call fcn.100e37a0
add esp, 4
mov ecx, esi
mov eax, dword [ebp - 0x24]
cmp esi, 4
jne 0x100585a2
push eax
call fcn.100d2150
mov eax, dword [ebp - 0x28]
add esp, 4
mov dword [ebx + 0x10], 0
mov dword [edi + 0x40], eax
jmp 0x100585c7
mov dword [eax + 0x24], esi
mov esi, ecx
mov dword [edi + 0x40], ecx
test ecx, ecx
jne 0x100585c7
cmp dword [edi + 0x124], ecx
jne 0x100585c7
mov dword [edi + 0x44], 0xffffffff
jmp 0x100585d1
mov esi, 1
mov dword [edi + 0x40], esi
push esi
push edi
call fcn.10096500
add esp, 8
cmp byte [edi + 0x57], 0
jne 0x100585df
test esi, esi
jne 0x100585df
xor ebx, ebx
jmp 0x100585eb
push esi
push edi
call fcn.10025920
add esp, 8
mov ebx, eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10058606
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
test ebx, ebx
je 0x100586be
mov edi, dword [ebp - 0x18]
cmp dword [0x101250f8], 0
je 0x1005869d
mov eax, dword [0x10129520]
test eax, eax
je 0x1005863b
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push edi
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push edi
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1005873b
mov esi, dword [0x10125150]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x24], ebx
mov ebx, eax
jmp 0x10058748
mov esi, dword [0x1012511c]
mov ecx, esi
push edi
call dword [0x1010a1d8]
call esi
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x24], ebx
mov ebx, eax
jmp 0x10058748
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov byte [ecx + eax], 0
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov eax, dword [esi]
movzx ecx, byte [eax + 3]
movzx eax, byte [eax + 2]
shl eax, 8
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], ecx
mov dword [eax + 0x24], ebx
mov ebx, eax
inc dword [ebx + 0x40]
mov edx, dword [esi]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
cmp ecx, dword [esi + 8]
jge 0x10058724
lea eax, [ebp - 0x54]
push eax
lea eax, [edx + ecx]
push eax
call fcn.100a6f30
mov ecx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x54]
cmp eax, dword [ecx + 0x20]
jne 0x10058724
mov eax, dword [ebp - 0x50]
cmp eax, dword [ecx + 0x24]
je 0x1005872b
mov dword [ebx + 0x24], 0x10b
push esi
call sym.e_sqlite3.dll_sqlite3_free
add esp, 4
jmp 0x1005874b
mov ebx, 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], ebx
mov ebx, eax
jmp 0x10058748
mov dword [ebx + 0x24], edi
inc dword [ebx + 0x40]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
push 0
push esi
push ebx
call fcn.10052f60
push esi
push ebx
call fcn.10052110
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
test eax, eax
je 0x10057bd4
push esi
call fcn.10052130
mov eax, dword [ebp - 8]
add esp, 4
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
jmp 0x10056bff
mov esi, dword [ebp - 0x20]
push esi
call fcn.10052130
mov eax, dword [ebp - 8]
add esp, 4
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
jmp 0x10056bff
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
jmp 0x10056bff
mov dword [ecx + 0x24], 0x10b
cmp dword [0x101250f8], 0
je 0x1005882a
mov eax, dword [0x10129520]
test eax, eax
je 0x100587e4
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
mov esi, dword [0x10125124]
mov ecx, esi
push ebx
call dword [0x1010a1d8]
call esi
mov esi, dword [0x1012511c]
add esp, 4
sub dword [0x101294b8], eax
mov ecx, esi
dec dword [0x101294dc]
push ebx
call dword [0x1010a1d8]
call esi
mov eax, dword [0x10129520]
add esp, 4
test eax, eax
je 0x1005883e
mov esi, dword [0x10125150]
push eax
jmp 0x10058831
mov esi, dword [0x1012511c]
push ebx
mov ecx, esi
call dword [0x1010a1d8]
call esi
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jne 0x1005884c
xor esi, esi
jmp 0x10058922
mov edi, dword [ebx]
test edi, edi
jne 0x10058884
push str.API_called_with_finalized_prepared_statement
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
push 0x1011b6ec
push 0x15732
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call sym.e_sqlite3.dll_sqlite3_log
add esp, 0x1c
lea esi, [edi + 0x15]
jmp 0x10058922
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1005889f
mov esi, dword [0x10125148]
mov ecx, esi
push eax
call dword [0x1010a1d8]
call esi
add esp, 4
cmp dword [ebx + 0x8c], 0
jl 0x100588bd
jg 0x100588b3
cmp dword [ebx + 0x88], 0
jbe 0x100588bd
push ebx
push edi
call fcn.1006c280
add esp, 8
push ebx
call fcn.100d5790
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
mov esi, dword [eax]
push esi
call fcn.100c8e90
mov edx, dword [ebp - 0xc]
add esp, 0xc
cmp dword [esi + 0x210], 0
jne 0x100588f5
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100588f5
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
push edx
push esi
call fcn.10094130
add esp, 8
cmp byte [edi + 0x57], 0
jne 0x1005890d
test ebx, ebx
jne 0x1005890d
xor esi, esi
jmp 0x10058919
push ebx
push edi
call fcn.10025920
add esp, 8
mov esi, eax
push edi
call fcn.100b2330
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x1005892e
mov dword [eax + 0x24], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret