Function at 0x1010f420
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 0x1010f633
call fcn.100d8ee0
test eax, eax
jne 0x1010f49a
push eax
push 0x18
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
je 0x1010f49a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010f46f
mov eax, dword [eax + 0x78]
jmp 0x1010f474
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 0x1010f49f
mov esi, 0x1017ac4c
push edi
push dword [ebp + 8]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.1002aa10
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x1010f4d8
nop dword [eax]
push edi
push str._a_d
push esi
call fcn.1002aa10
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x1010f4c0
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.1002aa10
push edi
push dword [ebp + 8]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.1002aa10
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.1002aa10
add esp, 0x34
test esi, esi
je 0x1010f620
cmp esi, 0x1017ac4c
je 0x1010f620
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1010f547
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x1010f547
test byte [esi + 0x15], 4
jne 0x1010f547
mov ecx, esi
call fcn.1002a3e0
mov edi, eax
jmp 0x1010f54a
mov edi, dword [esi + 4]
cmp dword [0x10178a38], 0
je 0x1010f598
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010f566
push eax
call dword [0x10178a88]
add esp, 4
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010f5a2
push eax
call dword [0x10178a90]
jmp 0x1010f59f
push esi
call dword [0x10178a5c]
add esp, 4
test edi, edi
je 0x1010f620
push 0
push 0
push 0
push edi
push dword [esp + 0x20]
call fcn.10096c40
add esp, 0x14
mov esi, eax
cmp dword [0x10178a38], 0
je 0x1010f609
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010f5d7
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010f613
push eax
call dword [0x10178a90]
jmp 0x1010f610
push edi
call dword [0x10178a5c]
add esp, 4
test esi, esi
je 0x1010f62c
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 [0x10172770]
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 0x1010f650
mov edx, ebx
mov ecx, esi
call fcn.1010f210
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x1010f752
cmp esi, 3
jne 0x1010f6a4
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x19], bl
je 0x1010f6a4
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 0x1010f6b1
lea ebx, [esi*4]
mov eax, dword [ebx + 0x1015ed04]
push edi
push dword [ebp + 8]
push eax
call fcn.1002a830
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1010f740
mov ecx, dword [esp + 0x10]
mov edx, edi
push 0
push dword [esp + ebx + 0x1c]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.1009fe60
add esp, 0x14
mov ebx, eax
cmp dword [0x10178a38], 0
je 0x1010f734
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010f6ff
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010f745
push eax
call dword [0x10178a90]
add esp, 4
jmp 0x1010f745
push edi
call dword [0x10178a5c]
add esp, 4
jmp 0x1010f745
mov ebx, 7
mov edi, dword [ebp + 0xc]
inc esi
cmp esi, 8
jl 0x1010f680
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x19], 0
je 0x1010f974
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.1002a830
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1010f96f
call fcn.100d8ee0
test eax, eax
jne 0x1010f7d5
push eax
push 0x18
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
je 0x1010f7d5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010f7aa
mov eax, dword [eax + 0x78]
jmp 0x1010f7af
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 0x1010f7da
mov esi, 0x1017ac4c
push edi
push dword [ebp + 8]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.1002aa10
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x1010f83b
test edi, edi
je 0x1010f81f
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x1010f814
push 1
mov edx, 0x1016be9c
mov ecx, esi
call fcn.1002a300
add esp, 4
jmp 0x1010f81f
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.1002aa10
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x1010f7f4
push str._WHERE_rowid_1
push esi
call fcn.1002aa10
add esp, 8
test esi, esi
je 0x1010f96f
cmp esi, 0x1017ac4c
je 0x1010f96f
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1010f882
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x1010f882
test byte [esi + 0x15], 4
jne 0x1010f882
mov ecx, esi
call fcn.1002a3e0
mov edi, eax
jmp 0x1010f885
mov edi, dword [esi + 4]
cmp dword [0x10178a38], 0
je 0x1010f8d3
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010f8a1
push eax
call dword [0x10178a88]
add esp, 4
push esi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push esi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010f8dd
push eax
call dword [0x10178a90]
jmp 0x1010f8da
push esi
call dword [0x10178a5c]
add esp, 4
test edi, edi
je 0x1010f96f
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x6c]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, edi
call fcn.1009fe60
add esp, 0x14
mov ebx, eax
cmp dword [0x10178a38], 0
je 0x1010f95c
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1010f920
push eax
call dword [0x10178a88]
add esp, 4
push edi
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push edi
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1010f974
push eax
call dword [0x10178a90]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x10178a5c]
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