Function at 0x414955
Capabilities:
Reference sql statements

Disassembly:
push 0x130
mov eax, 0x627cd1
call fcn.0058c0ed
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], 1
call fcn.00409229
test al, al
je 0x414980
push ebx
mov ecx, esi
call fcn.00409266
push 0x644e32
lea ecx, [ebp - 0x20]
call fcn.004142ca
mov dword [ebp - 4], ebx
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x24]
call fcn.0040b5f8
mov byte [ebp - 4], 1
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x30]
call fcn.0040b5f8
mov eax, dword [esi + 0xcb4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x414b1f
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xcb0]
call fcn.00408c8a
mov edi, dword [eax]
mov ecx, edi
call fcn.004ebdc9
test al, al
je 0x414ab3
lea ecx, [ebp - 0x3c]
call fcn.00401a45
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004ed5f7
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x18]
call fcn.004018a6
push dword [ebp - 0x54]
movzx eax, byte [ebp - 0x38]
push dword [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
push str.UPDATE__stacks__SET__open____i___title_______colour____i_WHERE__key____i
push eax
call fcn.00401e49
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [esi + 0xbb4]
call fcn.004830b7
add esp, 0x28
cmp eax, ebx
jne 0x414a63
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx - 0xc]
push ebx
add eax, eax
push eax
push ecx
push 1
push dword [ebp - 0x1c]
call fcn.0045b9fe
push dword [ebp - 0x1c]
call fcn.004887a0
add esp, 0x18
cmp byte [ebp - 0xd], bl
je 0x414a78
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x414a7b
mov byte [ebp - 0xd], bl
push dword [ebp - 0x1c]
call fcn.00477166
pop ecx
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
mov ecx, esi
call fcn.004121a4
mov ecx, edi
call fcn.004ebdc1
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401493
mov ecx, edi
call fcn.004ebd8e
push eax
lea eax, [ebp - 0x24]
push 0x644d90
push eax
call fcn.0040e65b
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
lea eax, [ebp - 0x24]
je 0x414af1
push eax
lea eax, [ebp - 0x2c]
push 0x644d8c
push eax
call fcn.0040e536
add esp, 0xc
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.004104ea
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 2
je 0x414b16
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x14], 0xfffffffe
add ecx, 0xfffffff0
call fcn.00401493
cmp dword [ebp - 0x28], ebx
jne 0x4149c5
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str.DELETE_FROM__stacks__WHERE__key__NOT_IN___s_
push eax
call fcn.0040e65b
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [esi + 0xbb4]
call fcn.00488a1c
add esp, 0x20
cmp byte [ebp - 0xd], bl
je 0x414b59
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x414b5c
mov byte [ebp - 0xd], bl
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str.DELETE_FROM__stackproperties__WHERE__key__NOT_IN___s_
push eax
call fcn.0040e65b
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [esi + 0xbb4]
call fcn.00488a1c
add esp, 0x20
cmp byte [ebp - 0xd], bl
je 0x414b96
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x414b99
mov byte [ebp - 0xd], bl
push 0x644e32
lea ecx, [ebp - 0x20]
call fcn.0040e5de
mov eax, dword [esi + 0x14c8]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x414d34
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x14c4]
call fcn.00408c8a
mov edi, dword [eax]
mov ecx, edi
call fcn.004f0a38
test al, al
je 0x414cc8
xor eax, eax
inc eax
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x2f4], eax
jne 0x414be8
mov dword [ebp - 0x2c], eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.004f0a4f
push eax
mov ecx, edi
call fcn.004f055c
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push 1
push str.UPDATE__stickies__SET__noteclass____i___flags____i___title_______colour____i___category___NULL_WHERE__key____i
push eax
call fcn.00401e49
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [esi + 0xbb4]
call fcn.004830b7
add esp, 0x2c
cmp eax, ebx
jne 0x414c5c
mov eax, dword [edi + 0x144]
mov ecx, dword [eax - 0xc]
push ebx
add ecx, ecx
push ecx
push eax
push 1
push dword [ebp - 0x18]
call fcn.0045b9fe
push dword [ebp - 0x18]
call fcn.004887a0
add esp, 0x18
cmp byte [ebp - 0xd], bl
je 0x414c71
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x414c74
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call fcn.00477166
pop ecx
lea eax, [ebp - 0x13c]
push eax
mov ecx, edi
call fcn.004f8057
push 1
lea eax, [ebp - 0x13c]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.004f0a4f
push eax
mov ecx, esi
call fcn.00412679
mov ecx, edi
call fcn.004f0a47
lea ecx, [ebp - 0x13c]
call fcn.0040c0c8
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401493
mov ecx, edi
call fcn.004f0a4f
push eax
lea eax, [ebp - 0x24]
push 0x644d90
push eax
call fcn.0040e65b
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
lea eax, [ebp - 0x24]
je 0x414d06
push eax
lea eax, [ebp - 0x34]
push 0x644d8c
push eax
call fcn.0040e536
add esp, 0xc
or dword [ebp - 0x14], 2
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x20]
call fcn.004104ea
test byte [ebp - 0x14], 2
mov dword [ebp - 4], 2
je 0x414d2b
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x14], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00401493
cmp dword [ebp - 0x28], ebx
jne 0x414bb7
mov eax, dword [esi + 0x151c]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x414e7e
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x1518]
call fcn.00408c8a
mov edi, dword [eax]
cmp byte [edi + 0xe8], bl
je 0x414e18
xor eax, eax
inc eax
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x48], eax
jne 0x414d70
mov dword [ebp - 0x2c], eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push dword [edi]
lea eax, [ebp - 0x1c]
push dword [edi + 0x18]
mov byte [ebp - 4], 9
push dword [ebp - 0x2c]
push 2
push str.UPDATE__stickies__SET__noteclass____i___flags____i___title_______colour____i___category___NULL_WHERE__key____i
push eax
call fcn.00401e49
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [esi + 0xbb4]
call fcn.004830b7
add esp, 0x2c
cmp eax, ebx
jne 0x414dd6
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 0xc]
push ebx
add ecx, ecx
push ecx
push eax
push 1
push dword [ebp - 0x18]
call fcn.0045b9fe
push dword [ebp - 0x18]
call fcn.004887a0
add esp, 0x18
cmp byte [ebp - 0xd], bl
je 0x414deb
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x414dee
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call fcn.00477166
pop ecx
push 2
push edi
push dword [edi]
mov ecx, esi
call fcn.00412679
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [edi + 0xe8], bl
mov byte [ebp - 4], 2
call fcn.00401493
push dword [edi]
lea eax, [ebp - 0x24]
push 0x644d90
push eax
call fcn.0040e65b
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
lea eax, [ebp - 0x24]
je 0x414e50
push eax
lea eax, [ebp - 0x34]
push 0x644d8c
push eax
call fcn.0040e536
add esp, 0xc
or dword [ebp - 0x14], 4
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x20]
call fcn.004104ea
test byte [ebp - 0x14], 4
mov dword [ebp - 4], 2
je 0x414e75
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x14], 0xfffffffb
add ecx, 0xfffffff0
call fcn.00401493
cmp dword [ebp - 0x28], ebx
jne 0x414d45
mov eax, dword [esi + 0x1500]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x414fc8
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x14fc]
call fcn.00408c8a
mov edi, dword [eax]
cmp byte [edi + 0xe8], bl
je 0x414f62
xor eax, eax
inc eax
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x48], eax
jne 0x414eba
mov dword [ebp - 0x2c], eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push dword [edi]
lea eax, [ebp - 0x1c]
push dword [edi + 0x18]
mov byte [ebp - 4], 0xb
push dword [ebp - 0x2c]
push 3
push str.UPDATE__stickies__SET__noteclass____i___flags____i___title_______colour____i___category___NULL_WHERE__key____i
push eax
call fcn.00401e49
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [esi + 0xbb4]
call fcn.004830b7
add esp, 0x2c
cmp eax, ebx
jne 0x414f20
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 0xc]
push ebx
add ecx, ecx
push ecx
push eax
push 1
push dword [ebp - 0x18]
call fcn.0045b9fe
push dword [ebp - 0x18]
call fcn.004887a0
add esp, 0x18
cmp byte [ebp - 0xd], bl
je 0x414f35
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x414f38
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call fcn.00477166
pop ecx
push 3
push edi
push dword [edi]
mov ecx, esi
call fcn.00412679
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [edi + 0xe8], bl
mov byte [ebp - 4], 2
call fcn.00401493
push dword [edi]
lea eax, [ebp - 0x24]
push 0x644d90
push eax
call fcn.0040e65b
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
lea eax, [ebp - 0x24]
je 0x414f9a
push eax
lea eax, [ebp - 0x34]
push 0x644d8c
push eax
call fcn.0040e536
add esp, 0xc
or dword [ebp - 0x14], 8
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x20]
call fcn.004104ea
test byte [ebp - 0x14], 8
mov dword [ebp - 4], 2
je 0x414fbf
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x14], 0xfffffff7
add ecx, 0xfffffff0
call fcn.00401493
cmp dword [ebp - 0x28], ebx
jne 0x414e8f
mov eax, dword [esi + 0xfe4]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x415112
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xfe0]
call fcn.00408c8a
mov edi, dword [eax]
cmp byte [edi + 0xe8], bl
je 0x4150ac
xor eax, eax
inc eax
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x48], eax
jne 0x415004
mov dword [ebp - 0x2c], eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push dword [edi]
lea eax, [ebp - 0x1c]
push dword [edi + 0x18]
mov byte [ebp - 4], 0xd
push dword [ebp - 0x2c]
push 1
push str.UPDATE__stickies__SET__noteclass____i___flags____i___title_______colour____i___category___NULL_WHERE__key____i
push eax
call fcn.00401e49
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [esi + 0xbb4]
call fcn.004830b7
add esp, 0x2c
cmp eax, ebx
jne 0x41506a
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 0xc]
push ebx
add ecx, ecx
push ecx
push eax
push 1
push dword [ebp - 0x18]
call fcn.0045b9fe
push dword [ebp - 0x18]
call fcn.004887a0
add esp, 0x18
cmp byte [ebp - 0xd], bl
je 0x41507f
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x415082
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call fcn.00477166
pop ecx
push 1
push edi
push dword [edi]
mov ecx, esi
call fcn.00412679
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [edi + 0xe8], bl
mov byte [ebp - 4], 2
call fcn.00401493
push dword [edi]
lea eax, [ebp - 0x24]
push 0x644d90
push eax
call fcn.0040e65b
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
lea eax, [ebp - 0x24]
je 0x4150e4
push eax
lea eax, [ebp - 0x34]
push 0x644d8c
push eax
call fcn.0040e536
add esp, 0xc
or dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x20]
call fcn.004104ea
test byte [ebp - 0x14], 0x10
mov dword [ebp - 4], 2
je 0x415109
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x14], 0xffffffef
add ecx, 0xfffffff0
call fcn.00401493
cmp dword [ebp - 0x28], ebx
jne 0x414fd9
mov eax, dword [esi + 0x14e4]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x41525c
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x14e0]
call fcn.00408c8a
mov edi, dword [eax]
cmp byte [edi + 0xe8], bl
je 0x4151f6
xor eax, eax
inc eax
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 0x48], eax
jne 0x41514e
mov dword [ebp - 0x2c], eax
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push dword [edi]
lea eax, [ebp - 0x1c]
push dword [edi + 0x18]
mov byte [ebp - 4], 0xf
push dword [ebp - 0x2c]
push 5
push str.UPDATE__stickies__SET__noteclass____i___flags____i___title_______colour____i___category___NULL_WHERE__key____i
push eax
call fcn.00401e49
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1c]
push dword [esi + 0xbb4]
call fcn.004830b7
add esp, 0x2c
cmp eax, ebx
jne 0x4151b4
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 0xc]
push ebx
add ecx, ecx
push ecx
push eax
push 1
push dword [ebp - 0x18]
call fcn.0045b9fe
push dword [ebp - 0x18]
call fcn.004887a0
add esp, 0x18
cmp byte [ebp - 0xd], bl
je 0x4151c9
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x4151cc
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call fcn.00477166
pop ecx
push 5
push edi
push dword [edi]
mov ecx, esi
call fcn.00412679
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [edi + 0xe8], bl
mov byte [ebp - 4], 2
call fcn.00401493
push dword [edi]
lea eax, [ebp - 0x24]
push 0x644d90
push eax
call fcn.0040e65b
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
lea eax, [ebp - 0x24]
je 0x41522e
push eax
lea eax, [ebp - 0x34]
push 0x644d8c
push eax
call fcn.0040e536
add esp, 0xc
or dword [ebp - 0x14], 0x20
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x20]
call fcn.004104ea
test byte [ebp - 0x14], 0x20
mov dword [ebp - 4], 2
je 0x415253
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x14], 0xffffffdf
add ecx, 0xfffffff0
call fcn.00401493
cmp dword [ebp - 0x28], ebx
jne 0x415123
push 6
pop edi
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str.DELETE_FROM__content_rtf__WHERE__key__IN__SELECT__key__FROM__stickies__WHERE__key__NOT_IN___s__AND__noteclass_____i_
push eax
call fcn.0040e65b
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [esi + 0xbb4]
call fcn.00488a1c
add esp, 0x24
cmp byte [ebp - 0xd], bl
je 0x41529a
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x41529d
mov byte [ebp - 0xd], bl
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str.DELETE_FROM__content_png__WHERE__key__IN__SELECT__key__FROM__stickies__WHERE__key__NOT_IN___s__AND__noteclass_____i_
push eax
call fcn.0040e65b
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [esi + 0xbb4]
call fcn.00488a1c
add esp, 0x24
cmp byte [ebp - 0xd], bl
je 0x4152d8
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x4152db
mov byte [ebp - 0xd], bl
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str.DELETE_FROM__stickiesproperties__WHERE__key__IN__SELECT__key__FROM__stickies__WHERE__key__NOT_IN___s__AND__noteclass_____i_
push eax
call fcn.0040e65b
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [esi + 0xbb4]
call fcn.00488a1c
add esp, 0x24
cmp byte [ebp - 0xd], bl
je 0x415316
push eax
mov ecx, esi
call fcn.0041195f
mov byte [ebp - 0xd], 1
test al, al
jne 0x415319
mov byte [ebp - 0xd], bl
push edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push str.DELETE_FROM__stickies__WHERE__key__NOT_IN___s__AND__noteclass_____i
push eax
call fcn.0040e65b
mov edi, dword [ebp - 0x30]
push ebx
push ebx
push ebx
push edi
push dword [esi + 0xbb4]
call fcn.00488a1c
add esp, 0x24
cmp byte [ebp - 0xd], bl
je 0x415353
push eax
mov ecx, esi
call fcn.0041195f
test al, al
je 0x415353
mov bl, 1
lea ecx, [edi - 0x10]
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov al, bl
call fcn.0058c1c5
ret