Function at 0x100f4cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10155004]
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 0x100f4e12
push edx
call fcn.100283d0
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.100287b0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x100f4d4a
push edi
push str._a_d
push esi
call fcn.100287b0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x100f4d32
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.100287b0
push dword [esp + 0x20]
push edi
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.100287b0
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.100287b0
add esp, 0x34
test esi, esi
je 0x100f4dfb
cmp esi, 0x10157d1c
je 0x100f4dfb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100f4db5
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100f4db5
test byte [esi + 0x15], 4
jne 0x100f4db5
mov ecx, esi
call fcn.100281d0
mov edi, eax
jmp 0x100f4db8
mov edi, dword [esi + 4]
push esi
call fcn.10025b30
add esp, 4
test edi, edi
je 0x100f4dfb
push 0
push 0
push 0
push edi
push dword [esp + 0x24]
call fcn.1008dcc0
add esp, 0x14
mov esi, eax
push edi
call fcn.10025b30
add esp, 4
test esi, esi
je 0x100f4e12
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10115f0d
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.10115f0d
mov esp, ebp
pop ebp
ret
movaps xmm1, xmmword [0x1014f8f0]
mov eax, 2
xor ecx, ecx
movd xmm2, eax
lea eax, [ebx + 0x4c]
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 0x100f4e30
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.100cf360
mov edi, eax
add esp, 0x24
test edi, edi
je 0x100f4e8f
xor eax, eax
mov esi, 0x100000
cmp edi, 1
cmove edi, eax
jmp 0x100f4f21
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.100285d0
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100f4eaf
lea edi, [eax + 7]
jmp 0x100f4f1c
push 0
lea ecx, [esp + 0x24]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.100966f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100f4f01
mov edi, dword [esp + 0x20]
push edi
call fcn.10050cc0
add esp, 4
cmp eax, 0x64
jne 0x100f4ef6
push 0
push edi
call fcn.10051760
add esp, 8
mov dword [esp + 0x18], edx
mov esi, eax
push edi
call fcn.1004fcb0
add esp, 4
mov edi, eax
push dword [esp + 0x24]
call fcn.10025b30
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jl 0x100f4f1c
jg 0x100f4f23
cmp esi, 0x64
ja 0x100f4f23
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 0x100f4ff5
cmp esi, 3
jne 0x100f4f48
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 0x100f4f4f
mov eax, dword [esi*4 + 0x1013bf04]
push dword [esp + 0x10]
push dword [esp + 0x20]
push eax
call fcn.100285d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100f4fe2
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 0
push dword [esp + esi*4 + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100966f0
add esp, 0x14
mov edi, eax
cmp dword [0x10155b08], 0
je 0x100f4fd6
mov eax, dword [0x10158cc0]
test eax, eax
je 0x100f4fa1
push eax
call dword [0x10155b58]
add esp, 4
push ebx
call dword [0x10155b34]
sub dword [0x10158b48], eax
add esp, 4
dec dword [0x10158b6c]
push ebx
call dword [0x10155b2c]
mov eax, dword [0x10158cc0]
add esp, 4
test eax, eax
je 0x100f4fe7
push eax
call dword [0x10155b60]
add esp, 4
jmp 0x100f4fe7
push ebx
call dword [0x10155b2c]
add esp, 4
jmp 0x100f4fe7
mov edi, 7
mov ebx, dword [esp + 0x28]
inc esi
cmp esi, 8
jl 0x100f4f30
cmp byte [ebx + 0x19], 0
je 0x100f51df
push dword [esp + 0x10]
mov edi, dword [esp + 0x20]
push edi
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.100285d0
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x100f51da
call fcn.100cb360
test eax, eax
jne 0x100f5072
push eax
push 0x18
call fcn.10025910
mov esi, eax
add esp, 8
test esi, esi
je 0x100f5072
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100f5047
mov eax, dword [eax + 0x78]
jmp 0x100f504c
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 0x100f5077
mov esi, 0x10157d1c
push dword [esp + 0x10]
push edi
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.100287b0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x100f50d9
test edi, edi
je 0x100f50bd
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100f50b2
push 1
mov edx, 0x1014902c
mov ecx, esi
call fcn.100280f0
add esp, 4
jmp 0x100f50bd
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.100287b0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x100f5092
push str._WHERE_rowid_1
push esi
call fcn.100287b0
add esp, 8
test esi, esi
je 0x100f51da
cmp esi, 0x10157d1c
je 0x100f51da
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100f511e
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100f511e
test byte [esi + 0x15], 4
jne 0x100f511e
mov ecx, esi
call fcn.100281d0
jmp 0x100f5121
mov eax, dword [esi + 4]
push esi
mov dword [esp + 0x1c], eax
call fcn.10025b30
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
je 0x100f51da
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x6c]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, esi
call fcn.100966f0
add esp, 0x14
mov edi, eax
cmp dword [0x10155b08], 0
je 0x100f51bc
mov eax, dword [0x10158cc0]
test eax, eax
je 0x100f5175
push eax
call dword [0x10155b58]
add esp, 4
push esi
call dword [0x10155b34]
sub dword [0x10158b48], eax
add esp, 4
dec dword [0x10158b6c]
push esi
call dword [0x10155b2c]
mov eax, dword [0x10158cc0]
add esp, 4
test eax, eax
je 0x100f51df
push eax
call dword [0x10155b60]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10115f0d
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10155b2c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10115f0d
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.10115f0d
mov esp, ebp
pop ebp
ret