Function at 0x4ab960
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebx + 0x10], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edi
movd xmm0, edi
pshufd xmm4, xmm0, 0
movaps xmmword [ebp - 0x20], xmm4
mov dword [edi + 0xc], edx
je 0x4abaea
push edx
call fcn.00414360
add esp, 4
mov esi, eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.004147a0
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 4], ecx
cmp byte [edi + 0x19], cl
jbe 0x4ab9e4
push ecx
push str._a_d
push esi
call fcn.004147a0
mov ecx, dword [ebp - 4]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x4ab9c6
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.004147a0
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.004147a0
push dword [edi + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.004147a0
add esp, 0x34
test esi, esi
je 0x4abc2d
cmp esi, 0x4ec9dc
je 0x4abc2d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4aba54
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4aba54
test byte [esi + 0x15], 4
jne 0x4aba54
mov ecx, esi
call fcn.004141a0
jmp 0x4aba57
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 4], eax
call fcn.00411d50
mov esi, dword [ebp - 4]
add esp, 4
test esi, esi
je 0x4abc2d
push 0
push 0
push 0
push esi
push dword [ebp - 0xc]
call fcn.0046ece0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [0x4ed248], 0
je 0x4abad1
mov eax, dword [0x4ef5d0]
test eax, eax
je 0x4aba9f
push eax
call dword [0x4ed298]
add esp, 4
push esi
call dword [0x4ed274]
sub dword [0x4ef610], eax
add esp, 4
dec dword [0x4ef634]
push esi
call dword [0x4ed26c]
mov eax, dword [0x4ef5d0]
add esp, 4
test eax, eax
je 0x4abadb
push eax
call dword [0x4ed2a0]
jmp 0x4abad8
push esi
call dword [0x4ed26c]
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4abe2e
movaps xmm4, xmmword [ebp - 0x20]
movaps xmm0, xmmword [0x4e8130]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov edx, edi
movd xmm2, eax
pslld xmm0, xmm2
paddd xmm0, xmmword [0x4e8160]
paddd xmm0, xmm4
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x4e8140]
paddd xmm0, xmmword [0x4e8130]
pslld xmm0, xmm2
paddd xmm0, xmmword [0x4e8160]
paddd xmm0, xmm4
movups xmmword [ebp - 0x20], xmm0
call fcn.004ab790
mov dword [ebp - 4], eax
xor esi, esi
test eax, eax
jne 0x4abbf9
cmp esi, 3
jne 0x4abb57
cmp byte [edi + 0x19], al
mov eax, str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
jne 0x4abb5e
mov eax, dword [esi*4 + 0x4db5c0]
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
call fcn.004145d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4abc44
mov ecx, dword [ebp - 0xc]
mov edx, edi
push 0
push dword [ebp + esi*4 - 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.004745e0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [0x4ed248], 0
je 0x4abc3b
mov eax, dword [0x4ef5d0]
test eax, eax
je 0x4abbb6
push eax
call dword [0x4ed298]
add esp, 4
push edi
call dword [0x4ed274]
sub dword [0x4ef610], eax
add esp, 4
dec dword [0x4ef634]
push edi
call dword [0x4ed26c]
mov eax, dword [0x4ef5d0]
add esp, 4
test eax, eax
je 0x4abbe9
push eax
call dword [0x4ed2a0]
add esp, 4
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
inc esi
cmp esi, 8
jl 0x4abb40
cmp byte [edi + 0x19], 0
je 0x4abe29
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.004145d0
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
jne 0x4abc4e
mov esi, 7
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 7
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x4ed26c]
jmp 0x4abbe6
mov eax, 7
mov dword [ebp - 4], eax
jmp 0x4abbec
push dword [ebp - 0xc]
call fcn.00414360
add esp, 4
mov esi, eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.004147a0
mov eax, dword [ebp - 8]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x4abcef
nop word [eax + eax]
test edi, edi
je 0x4abcb2
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 8]
jb 0x4abca0
push 1
mov edx, 0x4e4768
mov ecx, esi
call fcn.004140b0
add esp, 4
jmp 0x4abcb2
inc dword [esi + 0x10]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov al, byte [0x4e4768]
mov byte [ecx + edx - 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x1a]
cmp edi, eax
lea eax, [edi + 2]
jge 0x4abcd3
push edi
push eax
push edi
push str.a_dcoalesce___d_a_d_
push esi
call fcn.004147a0
add esp, 0x14
jmp 0x4abce3
push eax
push edi
push str.a_d__d
push esi
call fcn.004147a0
add esp, 0x10
mov eax, dword [ebp - 8]
inc edi
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x4abc80
push str._WHERE_rowid_1
push esi
call fcn.004147a0
add esp, 8
test esi, esi
je 0x4abc1d
cmp esi, 0x4ec9dc
je 0x4abc1d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4abd36
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4abd36
test byte [esi + 0x15], 4
jne 0x4abd36
mov ecx, esi
call fcn.004141a0
mov edi, eax
jmp 0x4abd39
mov edi, dword [esi + 4]
cmp dword [0x4ed248], 0
je 0x4abd87
mov eax, dword [0x4ef5d0]
test eax, eax
je 0x4abd55
push eax
call dword [0x4ed298]
add esp, 4
push esi
call dword [0x4ed274]
sub dword [0x4ef610], eax
add esp, 4
dec dword [0x4ef634]
push esi
call dword [0x4ed26c]
mov eax, dword [0x4ef5d0]
add esp, 4
test eax, eax
je 0x4abd91
push eax
call dword [0x4ed2a0]
jmp 0x4abd8e
push esi
call dword [0x4ed26c]
add esp, 4
test edi, edi
je 0x4abc1d
mov eax, dword [ebp - 8]
mov edx, edi
mov ecx, dword [ebp - 0xc]
add eax, 0x70
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
call fcn.004745e0
add esp, 0x14
mov esi, eax
cmp dword [0x4ed248], 0
je 0x4abe14
mov eax, dword [0x4ef5d0]
test eax, eax
je 0x4abdd6
push eax
call dword [0x4ed298]
add esp, 4
push edi
call dword [0x4ed274]
sub dword [0x4ef610], eax
add esp, 4
dec dword [0x4ef634]
push edi
call dword [0x4ed26c]
mov eax, dword [0x4ef5d0]
add esp, 4
test eax, eax
je 0x4abe2c
push eax
call dword [0x4ed2a0]
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x4ed26c]
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret