Function at 0x101019f0
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 + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebx + 0xc], edi
je 0x10101b8f
call fcn.100cad40
test eax, eax
jne 0x10101a7c
push eax
push 0x18
call fcn.1001e1a0
mov esi, eax
add esp, 8
test esi, esi
je 0x10101a7c
test edi, edi
je 0x10101a51
mov eax, dword [edi + 0x78]
jmp 0x10101a56
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 0x10101a81
mov esi, 0x10167b98
push dword [esp + 0x10]
push dword [esp + 0x1c]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.10021540
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x10101ab8
nop
push edi
push str._a_d
push esi
call fcn.10021540
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0xc
cmp edi, eax
jl 0x10101aa0
push dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push edi
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.10021540
push dword [esp + 0x20]
push edi
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.10021540
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.10021540
add esp, 0x34
push esi
call fcn.10021020
mov esi, eax
add esp, 4
test esi, esi
jne 0x10101b16
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129131
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push dword [esp + 0x24]
call fcn.10089d60
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101b79
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101b47
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101b83
push eax
call dword [0x10165b50]
jmp 0x10101b80
push esi
call dword [0x10165b1c]
add esp, 4
test edi, edi
jne 0x10101f66
mov edi, dword [esp + 0x14]
movaps xmm1, xmmword [0x10161120]
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 0x10101bb0
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 + 0x40], edx
push edi
call fcn.100ceef0
mov edi, eax
add esp, 0x24
test edi, edi
je 0x10101c0f
xor eax, eax
cmp edi, 1
cmove edi, eax
mov eax, 0x100000
jmp 0x10101cf4
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.10021360
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10101c30
lea edi, [eax + 7]
jmp 0x10101cef
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, esi
call fcn.100931f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10101c84
mov edi, dword [esp + 0x24]
push edi
call fcn.10049bf0
add esp, 4
cmp eax, 0x64
jne 0x10101c79
push 0
push edi
call fcn.1004a7b0
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
push edi
call fcn.10048b00
add esp, 4
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101cd2
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101ca0
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101cdc
push eax
call dword [0x10165b50]
jmp 0x10101cd9
push esi
call dword [0x10165b1c]
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x10101cef
mov eax, dword [esp + 0x1c]
jg 0x10101cf6
cmp eax, 0x64
ja 0x10101cf6
mov eax, 0x64
xor ecx, ecx
mov dword [ebx + 0x30], eax
xor esi, esi
mov dword [ebx + 0x34], ecx
nop
test edi, edi
jne 0x10101dd8
cmp esi, 3
jne 0x10101d21
cmp byte [ebx + 0x19], 0
je 0x10101d21
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 0x10101d2e
lea edi, [esi*4]
mov eax, dword [edi + 0x1014df74]
push dword [esp + 0x10]
push dword [esp + 0x1c]
push eax
call fcn.10021360
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10101dc5
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 0
push dword [esp + edi + 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100931f0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101db9
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101d84
push eax
call dword [0x10165b48]
add esp, 4
push ebx
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push ebx
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101dca
push eax
call dword [0x10165b50]
add esp, 4
jmp 0x10101dca
push ebx
call dword [0x10165b1c]
add esp, 4
jmp 0x10101dca
mov edi, 7
mov ebx, dword [esp + 0x28]
inc esi
cmp esi, 8
jl 0x10101d00
cmp byte [ebx + 0x19], 0
je 0x10101f66
push dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push edi
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.10021360
add esp, 0xc
mov dword [ebx + 0x40], eax
test eax, eax
je 0x10101ed6
call fcn.100cad40
test eax, eax
jne 0x10101e55
push eax
push 0x18
call fcn.1001e1a0
mov esi, eax
add esp, 8
test esi, esi
je 0x10101e55
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10101e2a
mov eax, dword [eax + 0x78]
jmp 0x10101e2f
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 0x10101e5a
mov esi, 0x10167b98
push dword [esp + 0x10]
push edi
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.10021540
add esp, 0x10
xor edi, edi
cmp byte [ebx + 0x19], 0
jbe 0x10101ebc
test edi, edi
je 0x10101ea0
mov ecx, dword [esi + 0x10]
inc ecx
cmp ecx, dword [esi + 8]
jb 0x10101e95
push 1
mov edx, 0x1015ad7c
mov ecx, esi
call fcn.10020e30
add esp, 4
jmp 0x10101ea0
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.10021540
movzx eax, byte [ebx + 0x19]
inc edi
add esp, 0x10
cmp edi, eax
jl 0x10101e75
push str._WHERE_rowid_1
push esi
call fcn.10021540
push esi
call fcn.10021020
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10101eef
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10129131
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x70]
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
mov edx, esi
call fcn.100931f0
add esp, 0x14
mov edi, eax
cmp dword [0x10165af8], 0
je 0x10101f5c
mov eax, dword [0x10168b40]
test eax, eax
je 0x10101f2a
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689c8], eax
add esp, 4
dec dword [0x101689ec]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b40]
add esp, 4
test eax, eax
je 0x10101f66
push eax
call dword [0x10165b50]
jmp 0x10101f63
push esi
call dword [0x10165b1c]
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10129131
mov esp, ebp
pop ebp
ret