Function at 0x100d6c60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x100ff008]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov esi, edx
mov ecx, 0x10103106
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
movd xmm0, edi
pshufd xmm0, xmm0, 0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x10], eax
call fcn.100d96c4
cmp dword [ebp + 0x10], 0
mov dword [edi + 0xc], esi
je 0x100d6dc3
push esi
call fcn.10041250
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.10041690
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x20], ecx
cmp byte [edi + 0x19], cl
jbe 0x100d6d01
push ecx
push str._a_d
push esi
call fcn.10041690
mov ecx, dword [esp + 0x2c]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x100d6ce1
push dword [esp + 0x10]
push dword [esp + 0x18]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.10041690
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.10041690
push dword [edi + 0x10]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.10041690
add esp, 0x34
test esi, esi
je 0x100d6e4e
cmp esi, 0x101005d8
je 0x100d6e4e
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100d6d77
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100d6d77
test byte [esi + 0x15], 4
jne 0x100d6d77
mov ecx, esi
call fcn.10041040
jmp 0x100d6d7a
mov eax, dword [esi + 4]
push esi
mov dword [esp + 0x24], eax
call fcn.1003ea80
mov esi, dword [esp + 0x24]
add esp, 4
test esi, esi
je 0x100d6e4e
push 0
push 0
push 0
push esi
push dword [esp + 0x2c]
call fcn.1008f540
add esp, 0x14
mov dword [esp + 0x28], eax
push esi
call fcn.1003ea80
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x100d7118
mov esi, dword [esp + 0x1c]
movaps xmm1, xmmword [0x100f4780]
mov ecx, 2
movaps xmm3, xmmword [0x100f47a0]
xor eax, eax
movaps xmm4, xmmword [esp + 0x30]
movd xmm2, ecx
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, xmm2
paddd xmm0, xmm3
paddd xmm0, xmm4
movups xmmword [esp + eax*4 + 0x30], xmm0
add eax, 4
cmp eax, 8
jl 0x100d6de1
push 0
push 0
push 0
push 0
push 0
push 0
push str.sqlite_stat1
push dword [edi + 0x20]
xorps xmm0, xmm0
push esi
movlpd qword [esp + 0x44], xmm0
call fcn.100ba840
mov esi, eax
add esp, 0x24
test esi, esi
je 0x100d6e64
xor eax, eax
mov dword [edi + 0x30], 0x100000
cmp esi, 1
mov dword [edi + 0x34], 0
cmove esi, eax
jmp 0x100d6f40
mov eax, 7
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.10041480
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100d6e87
lea esi, [eax + 7]
jmp 0x100d6f40
push 0
lea ecx, [esp + 0x2c]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x24]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.100942b0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100d6eeb
mov esi, dword [esp + 0x28]
push esi
call fcn.10064030
add esp, 4
cmp eax, 0x64
jne 0x100d6eca
push 0
push esi
call fcn.100648f0
add esp, 8
jmp 0x100d6ed2
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
call fcn.10063130
mov edx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
jmp 0x100d6f02
cmp esi, 7
je 0x100d6efe
xor esi, esi
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], esi
jmp 0x100d6f34
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test esi, esi
jne 0x100d6f34
mov eax, ecx
or eax, edx
jne 0x100d6f1c
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], eax
jmp 0x100d6f34
test edx, edx
jl 0x100d6f27
jg 0x100d6f2e
cmp ecx, 0x64
ja 0x100d6f2e
mov ecx, 0x64
xor edx, edx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
push dword [esp + 0x2c]
call fcn.1003ea80
add esp, 4
xor edi, edi
test esi, esi
jne 0x100d6fb3
cmp edi, 3
jne 0x100d6f5a
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x19], 0
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x100d6f61
mov eax, dword [edi*4 + 0x100e24fc]
push dword [esp + 0x10]
push dword [esp + 0x18]
push eax
call fcn.10041480
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x100d6f9f
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
push dword [esp + edi*4 + 0x34]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100942b0
mov esi, eax
add esp, 0x14
mov eax, dword [esp + 0x2c]
jmp 0x100d6fa4
mov esi, 7
push eax
call fcn.1003ea80
inc edi
add esp, 4
cmp edi, 8
jl 0x100d6f42
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x19], 0
je 0x100d7116
push dword [esp + 0x10]
push dword [esp + 0x18]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.10041480
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
je 0x100d7111
push dword [esp + 0x1c]
call fcn.10041250
add esp, 4
mov esi, eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.10041690
mov eax, dword [esp + 0x28]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x100d707f
test edi, edi
je 0x100d7040
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 8]
jb 0x100d7031
push 1
mov edx, 0x100f3bb8
mov ecx, esi
call fcn.10040f50
add esp, 4
jmp 0x100d7040
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edx
mov al, byte [0x100f3bb8]
mov byte [ecx + edx - 1], al
mov eax, dword [esp + 0x18]
lea ecx, [edi + 2]
movzx eax, byte [eax + 0x1a]
cmp edi, eax
jge 0x100d7062
push edi
push ecx
push edi
push str.a_dcoalesce___d_a_d_
push esi
call fcn.10041690
add esp, 0x14
jmp 0x100d7072
push ecx
push edi
push str.a_d__d
push esi
call fcn.10041690
add esp, 0x10
mov eax, dword [esp + 0x18]
inc edi
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x100d7011
push str._WHERE_rowid_1
push esi
call fcn.10041690
add esp, 8
test esi, esi
je 0x100d7111
cmp esi, 0x101005d8
je 0x100d7111
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100d70c2
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x100d70c2
test byte [esi + 0x15], 4
jne 0x100d70c2
mov ecx, esi
call fcn.10041040
mov edi, eax
jmp 0x100d70c5
mov edi, dword [esi + 4]
push esi
call fcn.1003ea80
add esp, 4
test edi, edi
je 0x100d7111
mov eax, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [esp + 0x1c]
add eax, 0x70
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100942b0
add esp, 0x14
mov esi, eax
push edi
call fcn.1003ea80
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret