Function at 0x6b70e1
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 0x6b7204
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.005fdd63
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.005fdfe8
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x6b7152
sub esp, 4
push dword [ebp - 0x14]
push str._a_d
push dword [ebp - 0x24]
call fcn.005fdfe8
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 0x6b7138
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.005fdfe8
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.005fdfe8
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.005fdfe8
add esp, 0x20
sub esp, 0xc
push dword [ebp - 0x24]
call fcn.005fdc17
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x6b71ce
mov eax, 7
jmp 0x6b7452
sub esp, 0xc
push 0
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.006602c0
add esp, 0x20
mov dword [ebp - 0xc], eax
sub esp, 0xc
push dword [ebp - 0x28]
call fcn.005fb16d
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x6b7204
mov eax, dword [ebp - 0xc]
jmp 0x6b7452
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.006b6f1d
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x6b72ef
cmp dword [ebp - 0x10], 3
jne 0x6b727d
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
test al, al
jne 0x6b728c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x6db3e0]
mov dword [ebp - 0x18], eax
jmp 0x6b7293
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.005fdea6
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x6b72d6
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.00666cde
add esp, 0x20
mov dword [ebp - 0xc], eax
jmp 0x6b72dd
mov dword [ebp - 0xc], 7
sub esp, 0xc
push dword [ebp - 0x2c]
call fcn.005fb16d
add esp, 0x10
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 7
jg 0x6b72ff
cmp dword [ebp - 0xc], 0
je 0x6b726c
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
test al, al
je 0x6b744f
sub esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.005fdea6
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 0x6b7342
mov dword [ebp - 0xc], 7
jmp 0x6b744f
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.005fdd63
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.005fdfe8
add esp, 0x10
mov dword [ebp - 0x1c], 0
jmp 0x6b73dc
cmp dword [ebp - 0x1c], 0
je 0x6b738d
sub esp, 4
push 1
push 0x8afc6b
push dword [ebp - 0x30]
call fcn.005fdaa2
add esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x1a]
movzx eax, al
cmp dword [ebp - 0x1c], eax
jge 0x6b73be
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.005fdfe8
add esp, 0x20
jmp 0x6b73d8
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.005fdfe8
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 0x6b7372
sub esp, 8
push str._WHERE_rowid_1
push dword [ebp - 0x30]
call fcn.005fdfe8
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x30]
call fcn.005fdc17
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x6b741e
mov dword [ebp - 0xc], 7
jmp 0x6b744f
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.00666cde
add esp, 0x20
mov dword [ebp - 0xc], eax
sub esp, 0xc
push dword [ebp - 0x34]
call fcn.005fb16d
add esp, 0x10
mov eax, dword [ebp - 0xc]
leave
ret