Function at 0x100e6220
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [ebx + 0xc], edx
je 0x100e6362
push edx
call fcn.1001fae0
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push edi
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.1001fec0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x100e629a
push edi
push str._a_d
push esi
call fcn.1001fec0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x100e6282
push dword [esp + 0x10]
mov edi, dword [esp + 0x20]
push edi
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.1001fec0
push dword [esp + 0x20]
push edi
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.1001fec0
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.1001fec0
add esp, 0x34
test esi, esi
je 0x100e634b
cmp esi, 0x10142b98
je 0x100e634b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100e6305
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100e6305
test byte [esi + 0x15], 4
jne 0x100e6305
mov ecx, esi
call fcn.1001f8e0
mov edi, eax
jmp 0x100e6308
mov edi, dword [esi + 4]
push esi
call fcn.1001cd70
add esp, 4
test edi, edi
je 0x100e634b
push 0
push 0
push 0
push edi
push dword [esp + 0x24]
call fcn.10081980
add esp, 0x14
mov esi, eax
push edi
call fcn.1001cd70
add esp, 4
test esi, esi
je 0x100e6362
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret
movaps xmm1, xmmword [0x1013c090]
mov eax, 2
xor ecx, ecx
movd xmm2, eax
lea eax, [ebx + 0x50]
movd xmm0, eax
pshufd xmm3, xmm0, 0
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 0x100e6380
xor edx, edx
mov esi, 0x64
push edx
push edx
push edx
push edx
push edx
push edx
push str.sqlite_stat1
push dword [ebx + 0x20]
mov dword [esp + 0x38], edx
push dword [esp + 0x34]
call fcn.100c1ef0
mov edi, eax
add esp, 0x24
test edi, edi
je 0x100e63df
xor eax, eax
mov esi, 0x100000
cmp edi, 1
cmove edi, eax
jmp 0x100e6471
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.1001fce0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100e63ff
lea edi, [eax + 7]
jmp 0x100e646c
push 0
lea ecx, [esp + 0x24]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.1008a230
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100e6451
mov edi, dword [esp + 0x20]
push edi
call fcn.10045780
add esp, 4
cmp eax, 0x64
jne 0x100e6446
push 0
push edi
call fcn.10046330
add esp, 8
mov dword [esp + 0x18], edx
mov esi, eax
push edi
call fcn.100446d0
add esp, 4
mov edi, eax
push dword [esp + 0x24]
call fcn.1001cd70
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jl 0x100e646c
jg 0x100e6473
cmp esi, 0x64
ja 0x100e6473
mov esi, 0x64
xor eax, eax
mov dword [ebx + 0x30], esi
xor esi, esi
mov dword [ebx + 0x34], eax
nop dword [eax + eax]
test edi, edi
jne 0x100e6545
cmp esi, 3
jne 0x100e6498
cmp byte [ebx + 0x19], 0
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x100e649f
mov eax, dword [esi*4 + 0x10128f0c]
push dword [esp + 0x10]
push dword [esp + 0x20]
push eax
call fcn.1001fce0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100e6532
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 0
push dword [esp + esi*4 + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.1008a230
add esp, 0x14
mov edi, eax
cmp dword [0x10140af8], 0
je 0x100e6526
mov eax, dword [0x10143b48]
test eax, eax
je 0x100e64f1
push eax
call dword [0x10140b48]
add esp, 4
push ebx
call dword [0x10140b24]
sub dword [0x101439d0], eax
add esp, 4
dec dword [0x101439f4]
push ebx
call dword [0x10140b1c]
mov eax, dword [0x10143b48]
add esp, 4
test eax, eax
je 0x100e6537
push eax
call dword [0x10140b50]
add esp, 4
jmp 0x100e6537
push ebx
call dword [0x10140b1c]
add esp, 4
jmp 0x100e6537
mov edi, 7
mov ebx, dword [esp + 0x28]
inc esi
cmp esi, 8
jl 0x100e6480
cmp byte [ebx + 0x19], 0
je 0x100e672f
push dword [esp + 0x10]
mov edi, dword [esp + 0x20]
push edi
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.1001fce0
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x100e672a
call fcn.100be130
test eax, eax
jne 0x100e65c2
push eax
push 0x18
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x100e65c2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100e6597
mov eax, dword [eax + 0x78]
jmp 0x100e659c
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 0x100e65c7
mov esi, 0x10142b98
push dword [esp + 0x10]
push edi
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.1001fec0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x100e6629
test edi, edi
je 0x100e660d
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100e6602
push 1
mov edx, 0x10135cfc
mov ecx, esi
call fcn.1001f800
add esp, 4
jmp 0x100e660d
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.1001fec0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x100e65e2
push str._WHERE_rowid_1
push esi
call fcn.1001fec0
add esp, 8
test esi, esi
je 0x100e672a
cmp esi, 0x10142b98
je 0x100e672a
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100e666e
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100e666e
test byte [esi + 0x15], 4
jne 0x100e666e
mov ecx, esi
call fcn.1001f8e0
jmp 0x100e6671
mov eax, dword [esi + 4]
push esi
mov dword [esp + 0x1c], eax
call fcn.1001cd70
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
je 0x100e672a
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x70]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, esi
call fcn.1008a230
add esp, 0x14
mov edi, eax
cmp dword [0x10140af8], 0
je 0x100e670c
mov eax, dword [0x10143b48]
test eax, eax
je 0x100e66c5
push eax
call dword [0x10140b48]
add esp, 4
push esi
call dword [0x10140b24]
sub dword [0x101439d0], eax
add esp, 4
dec dword [0x101439f4]
push esi
call dword [0x10140b1c]
mov eax, dword [0x10143b48]
add esp, 4
test eax, eax
je 0x100e672f
push eax
call dword [0x10140b50]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10140b1c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret
mov edi, 7
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret