Function at 0x101024e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10165004]
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 + 8], eax
push esi
mov esi, edx
mov dword [esp + 0x24], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
mov dword [ebx + 0xc], esi
je 0x1010271e
call fcn.100cb480
test eax, eax
jne 0x10102570
push eax
push 0x18
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
je 0x10102570
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10102545
mov eax, dword [eax + 0x78]
jmp 0x1010254a
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 0x10102575
mov esi, 0x10167b98
push dword [esp + 0x10]
push edi
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.10021760
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x101025a8
push edi
push str._a_d
push esi
call fcn.10021760
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x10102590
push dword [esp + 0x10]
mov edi, dword [esp + 0x24]
push edi
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.10021760
push dword [esp + 0x20]
push edi
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.10021760
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.10021760
add esp, 0x34
test esi, esi
je 0x10102703
cmp esi, 0x10167b98
je 0x10102703
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1010261b
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x1010261b
test byte [esi + 0x15], 4
jne 0x1010261b
mov ecx, esi
call fcn.10021130
mov edi, eax
jmp 0x1010261e
mov edi, dword [esi + 4]
cmp dword [0x10165af8], 0
je 0x1010266c
mov eax, dword [0x10168b48]
test eax, eax
je 0x1010263a
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10102676
push eax
call dword [0x10165b50]
jmp 0x10102673
push esi
call dword [0x10165b1c]
add esp, 4
test edi, edi
je 0x10102703
push 0
push 0
push 0
push edi
push dword [esp + 0x24]
call fcn.1008a320
add esp, 0x14
mov esi, eax
cmp dword [0x10165af8], 0
je 0x101026e1
mov eax, dword [0x10168b48]
test eax, eax
je 0x101026af
push eax
call dword [0x10165b48]
add esp, 4
push edi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push edi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x101026eb
push eax
call dword [0x10165b50]
jmp 0x101026e8
push edi
call dword [0x10165b1c]
add esp, 4
test esi, esi
je 0x1010271a
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129271
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.10129271
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
movaps xmm1, xmmword [0x101611e0]
mov eax, 2
xor ecx, ecx
movd xmm2, eax
lea eax, [ebx + 0x50]
movd xmm0, eax
pshufd xmm3, xmm0, 0
nop dword [eax]
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 0x10102740
xor edx, edx
mov dword [esp + 0x1c], 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 esi
call fcn.100cf660
mov edi, eax
add esp, 0x24
test edi, edi
je 0x1010279f
xor eax, eax
cmp edi, 1
cmove edi, eax
mov eax, 0x100000
jmp 0x10102884
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.10021580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x101027c0
lea edi, [eax + 7]
jmp 0x1010287f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, esi
call fcn.100937b0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10102814
mov edi, dword [esp + 0x24]
push edi
call fcn.10049ed0
add esp, 4
cmp eax, 0x64
jne 0x10102809
push 0
push edi
call fcn.1004aa90
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
push edi
call fcn.10048de0
add esp, 4
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10102862
mov eax, dword [0x10168b48]
test eax, eax
je 0x10102830
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x1010286c
push eax
call dword [0x10165b50]
jmp 0x10102869
push esi
call dword [0x10165b1c]
add esp, 4
mov ecx, dword [esp + 0x18]
test ecx, ecx
jl 0x1010287f
mov eax, dword [esp + 0x1c]
jg 0x10102886
cmp eax, 0x64
ja 0x10102886
mov eax, 0x64
xor ecx, ecx
mov dword [ebx + 0x30], eax
xor esi, esi
mov dword [ebx + 0x34], ecx
nop
test edi, edi
jne 0x10102964
cmp esi, 3
jne 0x101028b1
cmp byte [ebx + 0x19], 0
je 0x101028b1
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
lea edi, [esi*4]
jmp 0x101028be
lea edi, [esi*4]
mov eax, dword [edi + 0x1014dfb4]
push dword [esp + 0x10]
push dword [esp + 0x24]
push eax
call fcn.10021580
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10102951
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 0
push dword [esp + edi + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100937b0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10102945
mov eax, dword [0x10168b48]
test eax, eax
je 0x10102910
push eax
call dword [0x10165b48]
add esp, 4
push ebx
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push ebx
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10102956
push eax
call dword [0x10165b50]
add esp, 4
jmp 0x10102956
push ebx
call dword [0x10165b1c]
add esp, 4
jmp 0x10102956
mov edi, 7
mov ebx, dword [esp + 0x28]
inc esi
cmp esi, 8
jl 0x10102890
cmp byte [ebx + 0x19], 0
je 0x10102b9d
push dword [esp + 0x10]
mov edi, dword [esp + 0x24]
push edi
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.10021580
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x10102b98
call fcn.100cb480
test eax, eax
jne 0x101029e1
push eax
push 0x18
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
je 0x101029e1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x101029b6
mov eax, dword [eax + 0x78]
jmp 0x101029bb
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 0x101029e6
mov esi, 0x10167b98
push dword [esp + 0x10]
push edi
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.10021760
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x10102a48
test edi, edi
je 0x10102a2c
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x10102a21
push 1
mov edx, 0x1015ae44
mov ecx, esi
call fcn.10021050
add esp, 4
jmp 0x10102a2c
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.10021760
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x10102a01
push str._WHERE_rowid_1
push esi
call fcn.10021760
add esp, 8
test esi, esi
je 0x10102b98
cmp esi, 0x10167b98
je 0x10102b98
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10102a8d
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x10102a8d
test byte [esi + 0x15], 4
jne 0x10102a8d
mov ecx, esi
call fcn.10021130
jmp 0x10102a90
mov eax, dword [esi + 4]
cmp dword [0x10165af8], 0
mov dword [esp + 0x18], eax
je 0x10102ae2
mov eax, dword [0x10168b48]
test eax, eax
je 0x10102ab0
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10102aec
push eax
call dword [0x10165b50]
jmp 0x10102ae9
push esi
call dword [0x10165b1c]
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10102b98
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x70]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, esi
call fcn.100937b0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10102b7a
mov eax, dword [0x10168b48]
test eax, eax
je 0x10102b33
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x10102b9d
push eax
call dword [0x10165b50]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129271
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10165b1c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129271
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.10129271
mov esp, ebp
pop ebp
ret