Function at 0x4b1120
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, 0x38
cmp dword [ebx + 0x10], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edi
movd xmm0, edi
pshufd xmm4, xmm0, 0
movaps xmmword [ebp - 0x20], xmm4
mov dword [edi + 0xc], edx
je 0x4b12aa
push edx
call fcn.00419b30
add esp, 4
mov esi, eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY_nodeno
push esi
call fcn.00419f70
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 4], ecx
cmp byte [edi + 0x19], cl
jbe 0x4b11a4
push ecx
push str._a_d
push esi
call fcn.00419f70
mov ecx, dword [ebp - 4]
add esp, 0xc
movzx eax, byte [edi + 0x19]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x4b1186
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.__CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY_data__
push esi
call fcn.00419f70
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY_parentnode__
push esi
call fcn.00419f70
push dword [edi + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.INSERT_INTO___w_.__w_node_VALUES_1_zeroblob__d__
push esi
call fcn.00419f70
add esp, 0x34
test esi, esi
je 0x4b13ed
cmp esi, 0x4f39dc
je 0x4b13ed
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4b1214
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4b1214
test byte [esi + 0x15], 4
jne 0x4b1214
mov ecx, esi
call fcn.00419970
jmp 0x4b1217
mov eax, dword [esi + 4]
push esi
mov dword [ebp - 4], eax
call fcn.00417510
mov esi, dword [ebp - 4]
add esp, 4
test esi, esi
je 0x4b13ed
push 0
push 0
push 0
push esi
push dword [ebp - 0xc]
call fcn.00474480
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [0x4f4248], 0
je 0x4b1291
mov eax, dword [0x4f65d0]
test eax, eax
je 0x4b125f
push eax
call dword [0x4f4298]
add esp, 4
push esi
call dword [0x4f4274]
sub dword [0x4f6610], eax
add esp, 4
dec dword [0x4f6634]
push esi
call dword [0x4f426c]
mov eax, dword [0x4f65d0]
add esp, 4
test eax, eax
je 0x4b129b
push eax
call dword [0x4f42a0]
jmp 0x4b1298
push esi
call dword [0x4f426c]
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4b15ee
movaps xmm4, xmmword [ebp - 0x20]
movaps xmm0, xmmword [0x4ee940]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov edx, edi
movd xmm2, eax
pslld xmm0, xmm2
paddd xmm0, xmmword [0x4ee970]
paddd xmm0, xmm4
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x4ee950]
paddd xmm0, xmmword [0x4ee940]
pslld xmm0, xmm2
paddd xmm0, xmmword [0x4ee970]
paddd xmm0, xmm4
movups xmmword [ebp - 0x20], xmm0
call fcn.004b0f50
mov dword [ebp - 4], eax
xor esi, esi
test eax, eax
jne 0x4b13b9
cmp esi, 3
jne 0x4b1317
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 0x4b131e
mov eax, dword [esi*4 + 0x4e2a90]
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
call fcn.00419da0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4b1404
mov ecx, dword [ebp - 0xc]
mov edx, edi
push 0
push dword [ebp + esi*4 - 0x30]
push 0
push 0x85
push 0xffffffffffffffff
call fcn.00479d80
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [0x4f4248], 0
je 0x4b13fb
mov eax, dword [0x4f65d0]
test eax, eax
je 0x4b1376
push eax
call dword [0x4f4298]
add esp, 4
push edi
call dword [0x4f4274]
sub dword [0x4f6610], eax
add esp, 4
dec dword [0x4f6634]
push edi
call dword [0x4f426c]
mov eax, dword [0x4f65d0]
add esp, 4
test eax, eax
je 0x4b13a9
push eax
call dword [0x4f42a0]
add esp, 4
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
inc esi
cmp esi, 8
jl 0x4b1300
cmp byte [edi + 0x19], 0
je 0x4b15e9
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.SELECT__FROM___w_.__w_rowid__WHERE_rowid_1
call fcn.00419da0
add esp, 0xc
mov dword [edi + 0x40], eax
test eax, eax
jne 0x4b140e
mov esi, 7
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 7
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x4f426c]
jmp 0x4b13a6
mov eax, 7
mov dword [ebp - 4], eax
jmp 0x4b13ac
push dword [ebp - 0xc]
call fcn.00419b30
add esp, 4
mov esi, eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push str.UPDATE___w_.__w_rowid_SET
push esi
call fcn.00419f70
mov eax, dword [ebp - 8]
add esp, 0x10
xor edi, edi
cmp byte [eax + 0x19], 0
jbe 0x4b14af
nop word [eax + eax]
test edi, edi
je 0x4b1472
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 8]
jb 0x4b1460
push 1
mov edx, 0x4eaf80
mov ecx, esi
call fcn.00419880
add esp, 4
jmp 0x4b1472
inc dword [esi + 0x10]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov al, byte [0x4eaf80]
mov byte [ecx + edx - 1], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x1a]
cmp edi, eax
lea eax, [edi + 2]
jge 0x4b1493
push edi
push eax
push edi
push str.a_dcoalesce___d_a_d_
push esi
call fcn.00419f70
add esp, 0x14
jmp 0x4b14a3
push eax
push edi
push str.a_d__d
push esi
call fcn.00419f70
add esp, 0x10
mov eax, dword [ebp - 8]
inc edi
movzx eax, byte [eax + 0x19]
cmp edi, eax
jl 0x4b1440
push str._WHERE_rowid_1
push esi
call fcn.00419f70
add esp, 8
test esi, esi
je 0x4b13dd
cmp esi, 0x4f39dc
je 0x4b13dd
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4b14f6
mov eax, dword [esi + 0x10]
mov byte [ecx + eax], 0
cmp dword [esi + 0xc], 0
jbe 0x4b14f6
test byte [esi + 0x15], 4
jne 0x4b14f6
mov ecx, esi
call fcn.00419970
mov edi, eax
jmp 0x4b14f9
mov edi, dword [esi + 4]
cmp dword [0x4f4248], 0
je 0x4b1547
mov eax, dword [0x4f65d0]
test eax, eax
je 0x4b1515
push eax
call dword [0x4f4298]
add esp, 4
push esi
call dword [0x4f4274]
sub dword [0x4f6610], eax
add esp, 4
dec dword [0x4f6634]
push esi
call dword [0x4f426c]
mov eax, dword [0x4f65d0]
add esp, 4
test eax, eax
je 0x4b1551
push eax
call dword [0x4f42a0]
jmp 0x4b154e
push esi
call dword [0x4f426c]
add esp, 4
test edi, edi
je 0x4b13dd
mov eax, dword [ebp - 8]
mov edx, edi
mov ecx, dword [ebp - 0xc]
add eax, 0x70
push 0
push eax
push 0
push 0x85
push 0xffffffffffffffff
call fcn.00479d80
add esp, 0x14
mov esi, eax
cmp dword [0x4f4248], 0
je 0x4b15d4
mov eax, dword [0x4f65d0]
test eax, eax
je 0x4b1596
push eax
call dword [0x4f4298]
add esp, 4
push edi
call dword [0x4f4274]
sub dword [0x4f6610], eax
add esp, 4
dec dword [0x4f6634]
push edi
call dword [0x4f426c]
mov eax, dword [0x4f65d0]
add esp, 4
test eax, eax
je 0x4b15ec
push eax
call dword [0x4f42a0]
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x4f426c]
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret