Function at 0x5b53890
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, 0x48
mov eax, dword [0x5c51004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x10], 0
mov eax, dword [ebx + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edi
movd xmm0, edi
pshufd xmm4, xmm0, 0
movaps xmmword [ebp - 0x20], xmm4
mov dword [ebp - 0x38], eax
mov dword [edi + 0xc], edx
je 0x5b539e5
push edx
call fcn.05c1dc00
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.05c1d7d0
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x34], ecx
cmp byte [edi + 0x19], cl
jbe 0x5b5392e
nop dword [eax]
push ecx
push str._a_d
push esi
call fcn.05c1d7d0
mov ecx, dword [ebp - 0x34]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jl 0x5b53910
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.05c1d7d0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.05c1d7d0
push dword [edi + 0x10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.05c1d7d0
add esp, 0x34
test esi, esi
je 0x5b53b27
cmp esi, 0x5c51888
je 0x5b53b27
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5b5399e
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x5b5399e
test byte [esi + 0x15], 4
jne 0x5b5399e
mov ecx, esi
call fcn.05c1deb0
jmp 0x5b539a1
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 0x34], eax
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
mov esi, dword [ebp - 0x34]
add esp, 4
test esi, esi
je 0x5b53b27
push 0
push 0
push 0
push esi
push dword [ebp - 0x40]
call sym.SQLite.Interop.dll_SIa2c646e1460e3d6a
add esp, 0x14
mov dword [ebp - 0x34], eax
push esi
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
jne 0x5b53cfe
movaps xmm4, xmmword [ebp - 0x20]
movaps xmm0, xmmword [0x5c4d6a0]
mov eax, 2
mov ecx, dword [ebp - 0x40]
mov edx, edi
movd xmm2, eax
pslld xmm0, xmm2
paddd xmm0, xmmword [0x5c4d6d0]
paddd xmm0, xmm4
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x5c4d6b0]
paddd xmm0, xmmword [0x5c4d6a0]
pslld xmm0, xmm2
paddd xmm0, xmmword [0x5c4d6d0]
paddd xmm0, xmm4
movups xmmword [ebp - 0x20], xmm0
call fcn.05b53d90
mov dword [ebp - 0x34], eax
xor esi, esi
nop dword [eax + eax]
test eax, eax
jne 0x5b53af9
cmp esi, 3
jne 0x5b53a57
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 0x5b53a5e
mov eax, dword [esi*4 + 0x5c430f0]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5b53b48
mov ecx, dword [ebp - 0x40]
mov edx, edi
push 0
push dword [ebp + esi*4 - 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.05bb1a30
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp dword [0x5c525e8], 0
je 0x5b53b3f
mov eax, dword [0x5c545d8]
test eax, eax
je 0x5b53ab6
push eax
call dword [0x5c52638]
add esp, 4
push edi
call dword [0x5c52614]
sub dword [0x5c54628], eax
add esp, 4
dec dword [0x5c5464c]
push edi
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b53ae9
push eax
call dword [0x5c52640]
add esp, 4
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x44]
inc esi
cmp esi, 8
jl 0x5b53a40
cmp byte [edi + 0x19], 0
je 0x5b53cf9
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
jne 0x5b53b52
mov esi, 7
jmp 0x5b53cfc
mov eax, 7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x5c5260c]
jmp 0x5b53ae6
mov eax, 7
mov dword [ebp - 0x34], eax
jmp 0x5b53aec
push dword [ebp - 0x40]
call fcn.05c1dc00
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.05c1d7d0
mov eax, dword [ebp - 0x44]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x5b53bd1
nop
test edi, edi
je 0x5b53bb2
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 8]
jb 0x5b53ba0
push 1
mov edx, 0x5c3b3b0
mov ecx, esi
call fcn.05c1e010
add esp, 4
jmp 0x5b53bb2
inc dword [esi + 0x10]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov al, byte [0x5c3b3b0]
mov byte [ecx + edx - 1], al
lea eax, [edi + 2]
push eax
push edi
push str.a_d__d
push esi
call fcn.05c1d7d0
mov eax, dword [ebp - 0x44]
inc edi
add esp, 0x10
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x5b53b80
push str._WHERE_rowid_1
push esi
call fcn.05c1d7d0
add esp, 8
test esi, esi
je 0x5b53b1d
cmp esi, 0x5c51888
je 0x5b53b1d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x5b53c18
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x5b53c18
test byte [esi + 0x15], 4
jne 0x5b53c18
mov ecx, esi
call fcn.05c1deb0
mov edi, eax
jmp 0x5b53c1b
mov edi, dword [esi + 4]
cmp dword [0x5c525e8], 0
je 0x5b53c69
mov eax, dword [0x5c545d8]
test eax, eax
je 0x5b53c37
push eax
call dword [0x5c52638]
add esp, 4
push esi
call dword [0x5c52614]
sub dword [0x5c54628], eax
add esp, 4
dec dword [0x5c5464c]
push esi
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b53c73
push eax
call dword [0x5c52640]
jmp 0x5b53c70
push esi
call dword [0x5c5260c]
add esp, 4
test edi, edi
je 0x5b53b1d
mov eax, dword [ebp - 0x44]
mov edx, edi
mov ecx, dword [ebp - 0x40]
add eax, 0x70
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
call fcn.05bb1a30
add esp, 0x14
mov esi, eax
cmp dword [0x5c525e8], 0
je 0x5b53ced
mov eax, dword [0x5c545d8]
test eax, eax
je 0x5b53cb8
push eax
call dword [0x5c52638]
add esp, 4
push edi
call dword [0x5c52614]
sub dword [0x5c54628], eax
add esp, 4
dec dword [0x5c5464c]
push edi
call dword [0x5c5260c]
mov eax, dword [0x5c545d8]
add esp, 4
test eax, eax
je 0x5b53cfc
push eax
call dword [0x5c52640]
add esp, 4
jmp 0x5b53cfc
push edi
call dword [0x5c5260c]
add esp, 4
jmp 0x5b53cfc
mov esi, dword [ebp - 0x34]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.05b011bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret