Function at 0x10053a80
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 [0x10141004]
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 0x10053bd5
push edx
call fcn.1010f1b0
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.1010edd0
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x34], ecx
cmp byte [edi + 0x19], cl
jbe 0x10053b1e
nop dword [eax]
push ecx
push str._a_d
push esi
call fcn.1010edd0
mov ecx, dword [ebp - 0x34]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, eax
jl 0x10053b00
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.1010edd0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.1010edd0
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.1010edd0
add esp, 0x34
test esi, esi
je 0x10053d17
cmp esi, 0x10141888
je 0x10053d17
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10053b8e
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x10053b8e
test byte [esi + 0x15], 4
jne 0x10053b8e
mov ecx, esi
call fcn.1010f4a0
jmp 0x10053b91
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 0x34], eax
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
mov esi, dword [ebp - 0x34]
add esp, 4
test esi, esi
je 0x10053d17
push 0
push 0
push 0
push esi
push dword [ebp - 0x40]
call sym.SQLite.Interop.dll_SIdba35b6dcb77d463
add esp, 0x14
mov dword [ebp - 0x34], eax
push esi
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
jne 0x10053eee
movaps xmm4, xmmword [ebp - 0x20]
movaps xmm0, xmmword [0x1013cee0]
mov eax, 2
mov ecx, dword [ebp - 0x40]
mov edx, edi
movd xmm2, eax
pslld xmm0, xmm2
paddd xmm0, xmmword [0x1013cf10]
paddd xmm0, xmm4
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x1013cef0]
paddd xmm0, xmmword [0x1013cee0]
pslld xmm0, xmm2
paddd xmm0, xmmword [0x1013cf10]
paddd xmm0, xmm4
movups xmmword [ebp - 0x20], xmm0
call fcn.10053f80
mov dword [ebp - 0x34], eax
xor esi, esi
nop dword [eax + eax]
test eax, eax
jne 0x10053ce9
cmp esi, 3
jne 0x10053c47
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 0x10053c4e
mov eax, dword [esi*4 + 0x10132b10]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10053d38
mov ecx, dword [ebp - 0x40]
mov edx, edi
push 0
push dword [ebp + esi*4 - 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.100a7a30
add esp, 0x14
mov dword [ebp - 0x34], eax
cmp dword [0x101422c8], 0
je 0x10053d2f
mov eax, dword [0x101441e8]
test eax, eax
je 0x10053ca6
push eax
call dword [0x10142318]
add esp, 4
push edi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push edi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x10053cd9
push eax
call dword [0x10142320]
add esp, 4
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x44]
inc esi
cmp esi, 8
jl 0x10053c30
cmp byte [edi + 0x19], 0
je 0x10053ee9
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
jne 0x10053d42
mov esi, 7
jmp 0x10053eec
mov eax, 7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100011bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x101422ec]
jmp 0x10053cd6
mov eax, 7
mov dword [ebp - 0x34], eax
jmp 0x10053cdc
push dword [ebp - 0x40]
call fcn.1010f1b0
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.1010edd0
mov eax, dword [ebp - 0x44]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x10053dc1
nop
test edi, edi
je 0x10053da2
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 8]
jb 0x10053d90
push 1
mov edx, 0x1012b318
mov ecx, esi
call fcn.1010f600
add esp, 4
jmp 0x10053da2
inc dword [esi + 0x10]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov al, byte [0x1012b318]
mov byte [ecx + edx - 1], al
lea eax, [edi + 2]
push eax
push edi
push str.a_d__d
push esi
call fcn.1010edd0
mov eax, dword [ebp - 0x44]
inc edi
add esp, 0x10
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x10053d70
push str._WHERE_rowid_1
push esi
call fcn.1010edd0
add esp, 8
test esi, esi
je 0x10053d0d
cmp esi, 0x10141888
je 0x10053d0d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10053e08
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x10053e08
test byte [esi + 0x15], 4
jne 0x10053e08
mov ecx, esi
call fcn.1010f4a0
mov edi, eax
jmp 0x10053e0b
mov edi, dword [esi + 4]
cmp dword [0x101422c8], 0
je 0x10053e59
mov eax, dword [0x101441e8]
test eax, eax
je 0x10053e27
push eax
call dword [0x10142318]
add esp, 4
push esi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push esi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x10053e63
push eax
call dword [0x10142320]
jmp 0x10053e60
push esi
call dword [0x101422ec]
add esp, 4
test edi, edi
je 0x10053d0d
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.100a7a30
add esp, 0x14
mov esi, eax
cmp dword [0x101422c8], 0
je 0x10053edd
mov eax, dword [0x101441e8]
test eax, eax
je 0x10053ea8
push eax
call dword [0x10142318]
add esp, 4
push edi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push edi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x10053eec
push eax
call dword [0x10142320]
add esp, 4
jmp 0x10053eec
push edi
call dword [0x101422ec]
add esp, 4
jmp 0x10053eec
mov esi, dword [ebp - 0x34]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100011bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret