Function at 0x853139
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 0x85325c
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0079e6da
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.0079e95f
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x8531aa
sub esp, 4
push dword [ebp - 0x14]
push str._a_d
push dword [ebp - 0x24]
call fcn.0079e95f
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 0x853190
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.0079e95f
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.0079e95f
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.0079e95f
add esp, 0x20
sub esp, 0xc
push dword [ebp - 0x24]
call fcn.0079e58e
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x853226
mov eax, 7
jmp 0x8534aa
sub esp, 0xc
push 0
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call fcn.007fe273
add esp, 0x20
mov dword [ebp - 0xc], eax
sub esp, 0xc
push dword [ebp - 0x28]
call fcn.0079bbbe
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x85325c
mov eax, dword [ebp - 0xc]
jmp 0x8534aa
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.00852f72
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x853347
cmp dword [ebp - 0x10], 3
jne 0x8532d5
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
test al, al
jne 0x8532e4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x88b4a0]
mov dword [ebp - 0x18], eax
jmp 0x8532eb
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.0079e81d
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x85332e
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.00804a74
add esp, 0x20
mov dword [ebp - 0xc], eax
jmp 0x853335
mov dword [ebp - 0xc], 7
sub esp, 0xc
push dword [ebp - 0x2c]
call fcn.0079bbbe
add esp, 0x10
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 7
jg 0x853357
cmp dword [ebp - 0xc], 0
je 0x8532c4
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x19]
test al, al
je 0x8534a7
sub esp, 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.0079e81d
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 0x85339a
mov dword [ebp - 0xc], 7
jmp 0x8534a7
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0079e6da
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.0079e95f
add esp, 0x10
mov dword [ebp - 0x1c], 0
jmp 0x853434
cmp dword [ebp - 0x1c], 0
je 0x8533e5
sub esp, 4
push 1
push 0xcd31b4
push dword [ebp - 0x30]
call fcn.0079e419
add esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x1a]
movzx eax, al
cmp dword [ebp - 0x1c], eax
jge 0x853416
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.0079e95f
add esp, 0x20
jmp 0x853430
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.0079e95f
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 0x8533ca
sub esp, 8
push str._WHERE_rowid_1
push dword [ebp - 0x30]
call fcn.0079e95f
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x30]
call fcn.0079e58e
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x853476
mov dword [ebp - 0xc], 7
jmp 0x8534a7
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.00804a74
add esp, 0x20
mov dword [ebp - 0xc], eax
sub esp, 0xc
push dword [ebp - 0x34]
call fcn.0079bbbe
add esp, 0x10
mov eax, dword [ebp - 0xc]
leave
ret