Function at 0x41b06c
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x628a32
call fcn.0058c0ed
mov edi, ecx
push 0x6401e8
lea ecx, [ebp - 0x18]
call fcn.00402035
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x14]
call fcn.004018a6
push ebx
push ebx
push ebx
push str.INSERT_INTO__categories____key____name____flags____parent____next___VALUES__0__Suffered_from_bug_Jan_20__0__0__0_
push dword [edi + 0xbb4]
mov byte [ebp - 4], 1
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.INSERT_INTO__categories____key____name____flags____parent____next___VALUES__1__RootRec__1__0__2_
push dword [edi + 0xbb4]
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.UPDATE__categories__SET__next____99_WHERE__key___1_AND__next___1
push dword [edi + 0xbb4]
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.DELETE_FROM__stickies__WHERE__noteclass__IS_NULL
push dword [edi + 0xbb4]
call fcn.00488a1c
add esp, 0x50
push ebx
push ebx
push ebx
push str.DELETE_FROM__stickiesproperties__WHERE__key__NOT_IN__SELECT__key__FROM__stickies__
push dword [edi + 0xbb4]
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.DELETE_FROM__stackproperties__WHERE__key__NOT_IN__SELECT__key__FROM__stacks__
push dword [edi + 0xbb4]
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.INSERT_INTO__stickies__SELECT__key___1_AS__noteclass___1_AS__flags___Rescued_no_stickies_key_AS__title___16777215_AS__colour___NULL_AS__category___NULL_AS__sysmod__FROM__content_png__WHERE__key__NOT_IN__SELECT__key__FROM__stickies__WHERE___flags___1___1_
push dword [edi + 0xbb4]
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.INSERT_INTO__stickies__SELECT__key___1_AS__noteclass___0_AS__flags___Rescued_no_stickies_key_AS__title___16777215_AS__colour___NULL_AS__category___NULL_AS__sysmod__FROM__content_rtf__WHERE__key__NOT_IN__SELECT__key__FROM__stickies__WHERE___flags___1___0_
push dword [edi + 0xbb4]
call fcn.00488a1c
add esp, 0x50
push ebx
push ebx
push ebx
push str.INSERT_INTO__stickies____noteclass____flags____title____colour____category___SELECT__noteclass____flags____title____colour____category__FROM__stickies__WHERE__key____1__UPDATE__content_png__SET__key___last_insert_rowid___WHERE__key____1__UPDATE__content_rtf__SET__key___last_insert_rowid___WHERE__key____1__UPDATE__stickiesproperties__SET__key___last_insert_rowid___WHERE__key____1__DELETE_FROM__stickies__WHERE__key____1__DELETE_FROM__content_png__WHERE__key____1__DELETE_FROM__content_rtf__WHERE__key____1__DELETE_FROM__stickiesproperties__WHERE__key____1_
push dword [edi + 0xbb4]
call fcn.00488a1c
push ebx
push ebx
push ebx
push str.UPDATE__stickies__SET__noteclass___1___category___NULL___title____RIF:___title___WHERE__noteclass___6_AND__category__NOT_IN__SELECT__key__FROM__categories__WHERE__key__NOT_IN__0__1__AND__key__IN__SELECT__next__FROM__categories__WHERE__key____0_AND__next_____99___AND___flags___4___0_
push dword [edi + 0xbb4]
call fcn.00488a1c
add esp, 0x28
mov esi, 0x64535c
cmp byte [ebp + 8], bl
je 0x41b223
push str.SELECT__key__FROM__content_rtf__WHERE__key__NOT_IN__SELECT__key__FROM__stickies__WHERE___flags___1___0_
lea ecx, [ebp - 0x14]
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b21a
jmp 0x41b20c
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x20]
push str.orphaned_rtf:
push eax
mov byte [ebp - 4], 2
call fcn.00405a0e
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004104a0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b19e
push dword [ebp - 0x10]
call fcn.00477166
pop ecx
push str.SELECT__key__FROM__content_png__WHERE__key__NOT_IN__SELECT__key__FROM__stickies__WHERE___flags___1___1_
lea ecx, [ebp - 0x14]
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b2ca
jmp 0x41b2bc
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x20]
push str.orphaned_png:
push eax
mov byte [ebp - 4], 5
call fcn.00405a0e
push esi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004104a0
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b24e
push dword [ebp - 0x10]
call fcn.00477166
pop ecx
cmp byte [ebp + 8], bl
je 0x41b4ee
push str.SELECT__key__FROM__stickies__WHERE__noteclass__IS_NULL
lea ecx, [ebp - 0x14]
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b383
jmp 0x41b375
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x24]
push str.unwritten_reserved:
push eax
mov byte [ebp - 4], 8
call fcn.00405a0e
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 9
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.004104a0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b307
push dword [ebp - 0x10]
call fcn.00477166
lea ecx, [ebp - 0x14]
mov dword [esp], str.SELECT__key__FROM__stickiesproperties__WHERE__key__NOT_IN__SELECT__key__FROM__stickies__
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b434
jmp 0x41b426
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x24]
push str.orphaned_properties:
push eax
mov byte [ebp - 4], 0xb
call fcn.00405a0e
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.004104a0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b3b8
push dword [ebp - 0x10]
call fcn.00477166
lea ecx, [ebp - 0x14]
mov dword [esp], str.SELECT__key__FROM__stackproperties__WHERE__key__NOT_IN__SELECT__key__FROM__stacks__
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b4e5
jmp 0x41b4d7
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x24]
push str.orphaned_stack_properties:
push eax
mov byte [ebp - 4], 0xe
call fcn.00405a0e
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.004104a0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b469
push dword [ebp - 0x10]
call fcn.00477166
pop ecx
push str.SELECT__key__FROM__stickies__WHERE__category__IS_NULL_AND__noteclass___6
lea ecx, [ebp - 0x14]
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b595
jmp 0x41b587
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x24]
push str.stored_without_a_category:
push eax
mov byte [ebp - 4], 0x11
call fcn.00405a0e
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0x12
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x13
call fcn.004104a0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b519
push dword [ebp - 0x10]
call fcn.00477166
lea ecx, [ebp - 0x14]
mov dword [esp], str.SELECT__key__FROM__stickies__WHERE__category__IS_NOT_NULL_AND__noteclass____6
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b646
jmp 0x41b638
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x24]
push str.not_stored__with_a_category:
push eax
mov byte [ebp - 4], 0x14
call fcn.00405a0e
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0x15
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x16
call fcn.004104a0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b5ca
push dword [ebp - 0x10]
call fcn.00477166
lea ecx, [ebp - 0x14]
mov dword [esp], str.SELECT__key__from__stickiesproperties__WHERE__type___39_AND__t_i__NOT_IN__SELECT__key__FROM__stacks__
call fcn.00401e24
push ebx
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push dword [edi + 0xbb4]
call fcn.004830b7
add esp, 0x14
cmp eax, ebx
jne 0x41b6f7
jmp 0x41b6e9
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040e2ec
push eax
lea eax, [ebp - 0x24]
push str.invalid_stack:
push eax
mov byte [ebp - 4], 0x17
call fcn.00405a0e
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 0x18
call fcn.0040e47a
add esp, 0x18
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x19
call fcn.004104a0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x41b67b
push dword [ebp - 0x10]
call fcn.00477166
push ebx
push ebx
push ebx
push str.DELETE_FROM__stickiesproperties__WHERE__type___54_AND__t_i__NOT_IN__SELECT__key__FROM__tags__
push dword [edi + 0xbb4]
call fcn.00488a1c
mov eax, dword [ebp - 0x18]
add esp, 0x18
cmp dword [eax - 0xc], ebx
je 0x41b7b7
push ecx
mov dword [ebp - 0x24], esp
mov ecx, esp
push 0x6465d0
call fcn.00402035
push ecx
mov dword [ebp - 0x20], esp
mov ecx, esp
push esi
mov byte [ebp - 4], 0x1a
call fcn.00402035
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x1b
call fcn.00402e5b
lea eax, [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040f783
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1c
call fcn.00401dd7
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401493
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push str.RunASuiteOfChecks:
push eax
call fcn.00405a0e
add esp, 8
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x1d
call fcn.00402e5b
push 0x13
mov ecx, edi
call fcn.00415cb2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401493
call fcn.0058c1c5
ret 4