Function at 0xb6e4c2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 5
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
cmp dword [ebp + 0x18], 0
je 0xb6e5e5
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.00aad68a
add esp, 0x10
mov dword [ebp - 0x24], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push dword [ebp - 0x24]
call fcn.00aad90f
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0xb6e533
sub esp, 4
push dword [ebp - 0x14]
push str._a_d
push dword [ebp - 0x24]
call fcn.00aad90f
add esp, 0x10
add dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
movzx eax, al
cmp dword [ebp - 0x14], eax
jl 0xb6e519
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push dword [ebp - 0x24]
call fcn.00aad90f
add esp, 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push dword [ebp - 0x24]
call fcn.00aad90f
add esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
sub esp, 0xc
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push dword [ebp - 0x24]
call fcn.00aad90f
add esp, 0x20
sub esp, 0xc
push dword [ebp - 0x24]
call fcn.00aad53e
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0xb6e5af
mov eax, 7
jmp 0xb6e833
sub esp, 0xc
push 0
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.00b14652
add esp, 0x20
mov dword [ebp - 0xc], eax
sub esp, 0xc
push dword [ebp - 0x28]
call fcn.00aaa980
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0xb6e5e5
mov eax, dword [ebp - 0xc]
jmp 0xb6e833
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
add eax, 0x54
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, 0x58
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
add eax, 0x5c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
add eax, 0x60
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
add eax, 0x68
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
add eax, 0x6c
mov dword [ebp - 0x38], eax
sub esp, 8
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00b6e2fb
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0xb6e6d0
cmp dword [ebp - 0x10], 3
jne 0xb6e65e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
test al, al
jne 0xb6e66d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0xbbd600]
mov dword [ebp - 0x18], eax
jmp 0xb6e674
mov dword [ebp - 0x18], str.INSERT_INTO__w_.__w_rowid__rowid_nodeno_VALUES__1__2_ON_CONFLICT_rowid_DO_UPDATE_SET_nodenoexcluded.nodeno
sub esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.00aad7cd
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0xb6e6b7
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + eax*4 - 0x54]
mov eax, dword [ebp - 0x20]
sub esp, 8
push 0
push edx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
call fcn.00b1b3e7
add esp, 0x20
mov dword [ebp - 0xc], eax
jmp 0xb6e6be
mov dword [ebp - 0xc], 7
sub esp, 0xc
push dword [ebp - 0x2c]
call fcn.00aaa980
add esp, 0x10
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 7
jg 0xb6e6e0
cmp dword [ebp - 0xc], 0
je 0xb6e64d
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
test al, al
je 0xb6e830
sub esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.00aad7cd
add esp, 0x10
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
test eax, eax
jne 0xb6e723
mov dword [ebp - 0xc], 7
jmp 0xb6e830
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.00aad68a
add esp, 0x10
mov dword [ebp - 0x30], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.UPDATE___w_.__w_rowid_SET
push dword [ebp - 0x30]
call fcn.00aad90f
add esp, 0x10
mov dword [ebp - 0x1c], 0
jmp 0xb6e7bd
cmp dword [ebp - 0x1c], 0
je 0xb6e76e
sub esp, 4
push 1
push 0x142a3bf
push dword [ebp - 0x30]
call fcn.00aad3c9
add esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x1a]
movzx eax, al
cmp dword [ebp - 0x1c], eax
jge 0xb6e79f
mov eax, dword [ebp - 0x1c]
add eax, 2
sub esp, 0xc
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push str.a_dcoalesce___d_a_d_
push dword [ebp - 0x30]
call fcn.00aad90f
add esp, 0x20
jmp 0xb6e7b9
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
push dword [ebp - 0x1c]
push str.a_d__d
push dword [ebp - 0x30]
call fcn.00aad90f
add esp, 0x10
add dword [ebp - 0x1c], 1
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
movzx eax, al
cmp dword [ebp - 0x1c], eax
jl 0xb6e753
sub esp, 8
push str._WHERE_rowid_1
push dword [ebp - 0x30]
call fcn.00aad90f
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x30]
call fcn.00aad53e
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0xb6e7ff
mov dword [ebp - 0xc], 7
jmp 0xb6e830
mov eax, dword [ebp + 8]
lea edx, [eax + 0x70]
mov eax, dword [ebp - 0x20]
sub esp, 8
push 0
push edx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x34]
push dword [ebp + 0xc]
call fcn.00b1b3e7
add esp, 0x20
mov dword [ebp - 0xc], eax
sub esp, 0xc
push dword [ebp - 0x34]
call fcn.00aaa980
add esp, 0x10
mov eax, dword [ebp - 0xc]
leave
ret