Function at 0x100e6180
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 0x100e62c2
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 0x100e61fa
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 0x100e61e2
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 0x100e62ab
cmp esi, 0x10142b98
je 0x100e62ab
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100e6265
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100e6265
test byte [esi + 0x15], 4
jne 0x100e6265
mov ecx, esi
call fcn.1001f8e0
mov edi, eax
jmp 0x100e6268
mov edi, dword [esi + 4]
push esi
call fcn.1001cd70
add esp, 4
test edi, edi
je 0x100e62ab
push 0
push 0
push 0
push edi
push dword [esp + 0x24]
call fcn.10081930
add esp, 0x14
mov esi, eax
push edi
call fcn.1001cd70
add esp, 4
test esi, esi
je 0x100e62c2
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10104901
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.10104901
mov esp, ebp
pop ebp
ret
movaps xmm1, xmmword [0x1013c0a0]
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 0x100e62e0
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.100c1e80
mov edi, eax
add esp, 0x24
test edi, edi
je 0x100e633f
xor eax, eax
mov esi, 0x100000
cmp edi, 1
cmove edi, eax
jmp 0x100e63d1
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 0x100e635f
lea edi, [eax + 7]
jmp 0x100e63cc
push 0
lea ecx, [esp + 0x24]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.1008a1c0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100e63b1
mov edi, dword [esp + 0x20]
push edi
call fcn.10045740
add esp, 4
cmp eax, 0x64
jne 0x100e63a6
push 0
push edi
call fcn.100462f0
add esp, 8
mov dword [esp + 0x18], edx
mov esi, eax
push edi
call fcn.10044690
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 0x100e63cc
jg 0x100e63d3
cmp esi, 0x64
ja 0x100e63d3
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 0x100e64a5
cmp esi, 3
jne 0x100e63f8
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 0x100e63ff
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 0x100e6492
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 0
push dword [esp + esi*4 + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.1008a1c0
add esp, 0x14
mov edi, eax
cmp dword [0x10140af8], 0
je 0x100e6486
mov eax, dword [0x10143b48]
test eax, eax
je 0x100e6451
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 0x100e6497
push eax
call dword [0x10140b50]
add esp, 4
jmp 0x100e6497
push ebx
call dword [0x10140b1c]
add esp, 4
jmp 0x100e6497
mov edi, 7
mov ebx, dword [esp + 0x28]
inc esi
cmp esi, 8
jl 0x100e63e0
cmp byte [ebx + 0x19], 0
je 0x100e668f
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 0x100e668a
call fcn.100be0c0
test eax, eax
jne 0x100e6522
push eax
push 0x18
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x100e6522
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100e64f7
mov eax, dword [eax + 0x78]
jmp 0x100e64fc
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 0x100e6527
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 0x100e6589
test edi, edi
je 0x100e656d
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100e6562
push 1
mov edx, 0x10135d14
mov ecx, esi
call fcn.1001f800
add esp, 4
jmp 0x100e656d
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 0x100e6542
push str._WHERE_rowid_1
push esi
call fcn.1001fec0
add esp, 8
test esi, esi
je 0x100e668a
cmp esi, 0x10142b98
je 0x100e668a
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100e65ce
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100e65ce
test byte [esi + 0x15], 4
jne 0x100e65ce
mov ecx, esi
call fcn.1001f8e0
jmp 0x100e65d1
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 0x100e668a
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x70]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, esi
call fcn.1008a1c0
add esp, 0x14
mov edi, eax
cmp dword [0x10140af8], 0
je 0x100e666c
mov eax, dword [0x10143b48]
test eax, eax
je 0x100e6625
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 0x100e668f
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.10104901
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.10104901
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.10104901
mov esp, ebp
pop ebp
ret