Function at 0x10101960
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebx + 0xc], edi
je 0x10101aff
call fcn.100cac40
test eax, eax
jne 0x101019ec
push eax
push 0x18
call fcn.1001e110
mov esi, eax
add esp, 8
test esi, esi
je 0x101019ec
test edi, edi
je 0x101019c1
mov eax, dword [edi + 0x78]
jmp 0x101019c6
mov eax, 0x3b9aca00
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
jmp 0x101019f1
mov esi, 0x10167b98
push dword [esp + 0x10]
push dword [esp + 0x1c]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.100214b0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x10101a28
nop
push edi
push str._a_d
push esi
call fcn.100214b0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x10101a10
push dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push edi
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.100214b0
push dword [esp + 0x20]
push edi
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.100214b0
push dword [ebx + 0x10]
push dword [esp + 0x34]
push edi
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.100214b0
add esp, 0x34
push esi
call fcn.10020f90
mov esi, eax
add esp, 4
test esi, esi
jne 0x10101a86
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129081
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push dword [esp + 0x24]
call fcn.10089cf0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101ae9
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101ab7
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101af3
push eax
call dword [0x10165b50]
jmp 0x10101af0
push esi
call dword [0x10165b1c]
add esp, 4
test edi, edi
jne 0x10101ed6
mov edi, dword [esp + 0x14]
movaps xmm1, xmmword [0x101610f0]
mov eax, 2
xor ecx, ecx
movd xmm2, eax
lea eax, [ebx + 0x50]
movd xmm0, eax
pshufd xmm3, xmm0, 0
nop dword [eax]
movd xmm0, ecx
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
movups xmmword [esp + ecx*4 + 0x2c], xmm0
add ecx, 4
cmp ecx, 8
jl 0x10101b20
xor edx, edx
mov dword [esp + 0x1c], 0x64
push edx
push edx
push edx
push edx
push edx
push edx
push str.sqlite_stat1
push dword [ebx + 0x20]
mov dword [esp + 0x40], edx
push edi
call fcn.100cedf0
mov edi, eax
add esp, 0x24
test edi, edi
je 0x10101b7f
xor eax, eax
cmp edi, 1
cmove edi, eax
mov eax, 0x100000
jmp 0x10101c64
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.100212d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10101ba0
lea edi, [eax + 7]
jmp 0x10101c5f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, esi
call fcn.100931a0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10101bf4
mov edi, dword [esp + 0x24]
push edi
call fcn.10049b70
add esp, 4
cmp eax, 0x64
jne 0x10101be9
push 0
push edi
call fcn.1004a730
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
push edi
call fcn.10048a80
add esp, 4
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101c42
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101c10
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101c4c
push eax
call dword [0x10165b50]
jmp 0x10101c49
push esi
call dword [0x10165b1c]
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x10101c5f
mov eax, dword [esp + 0x1c]
jg 0x10101c66
cmp eax, 0x64
ja 0x10101c66
mov eax, 0x64
xor ecx, ecx
mov dword [ebx + 0x30], eax
xor esi, esi
mov dword [ebx + 0x34], ecx
nop
test edi, edi
jne 0x10101d48
cmp esi, 3
jne 0x10101c91
cmp byte [ebx + 0x19], 0
je 0x10101c91
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea edi, [esi*4]
jmp 0x10101c9e
lea edi, [esi*4]
mov eax, dword [edi + 0x1014df34]
push dword [esp + 0x10]
push dword [esp + 0x1c]
push eax
call fcn.100212d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10101d35
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 0
push dword [esp + edi + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100931a0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101d29
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101cf4
push eax
call dword [0x10165b48]
add esp, 4
push ebx
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push ebx
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101d3a
push eax
call dword [0x10165b50]
add esp, 4
jmp 0x10101d3a
push ebx
call dword [0x10165b1c]
add esp, 4
jmp 0x10101d3a
mov edi, 7
mov ebx, dword [esp + 0x28]
inc esi
cmp esi, 8
jl 0x10101c70
cmp byte [ebx + 0x19], 0
je 0x10101ed6
push dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push edi
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.100212d0
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x10101e46
call fcn.100cac40
test eax, eax
jne 0x10101dc5
push eax
push 0x18
call fcn.1001e110
mov esi, eax
add esp, 8
test esi, esi
je 0x10101dc5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10101d9a
mov eax, dword [eax + 0x78]
jmp 0x10101d9f
mov eax, 0x3b9aca00
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
jmp 0x10101dca
mov esi, 0x10167b98
push dword [esp + 0x10]
push edi
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.100214b0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x10101e2c
test edi, edi
je 0x10101e10
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x10101e05
push 1
mov edx, 0x1015ad54
mov ecx, esi
call fcn.10020da0
add esp, 4
jmp 0x10101e10
mov eax, dword [esi + 4]
mov dword [esi + 0x10], ecx
mov byte [eax + ecx - 1], 0x2c
lea eax, [edi + 2]
push eax
push edi
push str.a_d__d
push esi
call fcn.100214b0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x10101de5
push str._WHERE_rowid_1
push esi
call fcn.100214b0
push esi
call fcn.10020f90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10101e5f
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129081
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x70]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, esi
call fcn.100931a0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101ecc
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101e9a
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101ed6
push eax
call dword [0x10165b50]
jmp 0x10101ed3
push esi
call dword [0x10165b1c]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10129081
mov esp, ebp
pop ebp
ret