Function at 0x1010cdf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [ebx + 0xc], esi
je 0x1010d003
call fcn.100d6670
test eax, eax
jne 0x1010ce6a
push eax
push 0x18
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1010ce6a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010ce3f
mov eax, dword [eax + 0x78]
jmp 0x1010ce44
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 0x1010ce6f
mov esi, 0x10179d5c
push edi
push dword [ebp + 8]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.100296c0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x1010cea8
nop dword [eax]
push edi
push str._a_d
push esi
call fcn.100296c0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x1010ce90
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.100296c0
push edi
push dword [ebp + 8]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.100296c0
push dword [ebx + 0x10]
push edi
push dword [ebp + 8]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.100296c0
add esp, 0x34
test esi, esi
je 0x1010cff0
cmp esi, 0x10179d5c
je 0x1010cff0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1010cf17
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x1010cf17
test byte [esi + 0x15], 4
jne 0x1010cf17
mov ecx, esi
call fcn.10029090
mov edi, eax
jmp 0x1010cf1a
mov edi, dword [esi + 4]
cmp dword [0x10177b48], 0
je 0x1010cf68
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010cf36
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010cf72
push eax
call dword [0x10177ba0]
jmp 0x1010cf6f
push esi
call dword [0x10177b6c]
add esp, 4
test edi, edi
je 0x1010cff0
push 0
push 0
push 0
push edi
push dword [esp + 0x20]
call fcn.10094880
add esp, 0x14
mov esi, eax
cmp dword [0x10177b48], 0
je 0x1010cfd9
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010cfa7
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010cfe3
push eax
call dword [0x10177ba0]
jmp 0x1010cfe0
push edi
call dword [0x10177b6c]
add esp, 4
test esi, esi
je 0x1010cffc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x10]
movaps xmm1, xmmword [0x101719d0]
lea eax, [ebx + 0x4c]
movd xmm0, eax
xor ecx, ecx
pshufd xmm2, xmm0, 0
nop dword [eax + eax]
movd xmm0, ecx
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
pslld xmm0, 2
paddd xmm0, xmm2
movups xmmword [esp + ecx*4 + 0x18], xmm0
add ecx, 4
cmp ecx, 8
jl 0x1010d020
mov edx, ebx
mov ecx, esi
call fcn.1010cbe0
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x1010d122
cmp esi, 3
jne 0x1010d074
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x19], bl
je 0x1010d074
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea ebx, [esi*4]
jmp 0x1010d081
lea ebx, [esi*4]
mov eax, dword [ebx + 0x1015df74]
push edi
push dword [ebp + 8]
push eax
call fcn.100294e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1010d110
mov ecx, dword [esp + 0x10]
mov edx, edi
push 0
push dword [esp + ebx + 0x1c]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.1009d7f0
add esp, 0x14
mov ebx, eax
cmp dword [0x10177b48], 0
je 0x1010d104
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010d0cf
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010d115
push eax
call dword [0x10177ba0]
add esp, 4
jmp 0x1010d115
push edi
call dword [0x10177b6c]
add esp, 4
jmp 0x1010d115
mov ebx, 7
mov edi, dword [ebp + 0xc]
inc esi
cmp esi, 8
jl 0x1010d050
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x19], 0
je 0x1010d344
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.100294e0
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1010d33f
call fcn.100d6670
test eax, eax
jne 0x1010d1a5
push eax
push 0x18
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1010d1a5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010d17a
mov eax, dword [eax + 0x78]
jmp 0x1010d17f
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 0x1010d1aa
mov esi, 0x10179d5c
push edi
push dword [ebp + 8]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.100296c0
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x1010d20b
test edi, edi
je 0x1010d1ef
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x1010d1e4
push 1
mov edx, 0x1016b0fc
mov ecx, esi
call fcn.10028fb0
add esp, 4
jmp 0x1010d1ef
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.100296c0
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x1010d1c4
push str._WHERE_rowid_1
push esi
call fcn.100296c0
add esp, 8
test esi, esi
je 0x1010d33f
cmp esi, 0x10179d5c
je 0x1010d33f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1010d252
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x1010d252
test byte [esi + 0x15], 4
jne 0x1010d252
mov ecx, esi
call fcn.10029090
mov edi, eax
jmp 0x1010d255
mov edi, dword [esi + 4]
cmp dword [0x10177b48], 0
je 0x1010d2a3
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010d271
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010d2ad
push eax
call dword [0x10177ba0]
jmp 0x1010d2aa
push esi
call dword [0x10177b6c]
add esp, 4
test edi, edi
je 0x1010d33f
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x6c]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, edi
call fcn.1009d7f0
add esp, 0x14
mov ebx, eax
cmp dword [0x10177b48], 0
je 0x1010d32c
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1010d2f0
push eax
call dword [0x10177b98]
add esp, 4
push edi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push edi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1010d344
push eax
call dword [0x10177ba0]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x10177b6c]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 7
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret