Function at 0x4b7502
Capabilities:
Reference sql statements

Disassembly:
push 0x5c
mov eax, 0x62fc88
call fcn.0058c0ed
mov esi, ecx
mov dword [ebp - 4], 1
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x3c]
call fcn.004018a6
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push 6
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push 0x14
push 0x19
push 0x15
push 0x36
push str.SELECT__stickies_._key___title___category___flags___colour___pr1_._t_d__AS__modified___pr2_._t_d__AS__stored___pr3_._t_d__AS__created____SELECT__group_concat__t_i____FROM__stickiesproperties__WHERE__type____i_AND__key____stickies_._key___AS_tags_FROM__stickies__LEFT_OUTER_JOIN__SELECT__FROM__stickiesproperties__WHERE__type____i__AS_pr1_ON__stickies_._key____pr1_._key__LEFT_OUTER_JOIN__SELECT__FROM__stickiesproperties__WHERE__type____i__AS_pr2_ON__stickies_._key____pr2_._key__LEFT_OUTER_JOIN__SELECT__FROM__stickiesproperties__WHERE__type____i__AS_pr3_ON__stickies_._key____pr3_._key___s_LEFT_OUTER_JOIN__content_rtf__ON__stickies_._key____content_rtf_._key__WHERE__stickies_._noteclass____i_AND___s_
push eax
call fcn.00401e49
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x18b4]
push 0xffffffffffffffff
push dword [ebp - 0x3c]
push dword [eax + 0xbb4]
call fcn.004830b7
add esp, 0x38
cmp eax, ebx
jne 0x4b7889
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.004018a6
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004887a0
pop ecx
cmp eax, 0x65
je 0x4b787e
mov edi, 0x641288
push ebx
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
mov ecx, dword [esi + 0x18b4]
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00413b8e
push 2
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00442db6
push 3
push dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
call fcn.00442db6
push 4
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.00442db6
push 5
push dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
call fcn.00442db6
cdq
push 6
push dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
call fcn.00442db6
mov ecx, dword [esi + 0x18b4]
add esp, 0x28
cdq
push 8
push dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x64], edx
call fcn.00413b8e
test byte [ebp - 0x28], 1
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], ebx
je 0x4b7632
mov dword [ebp - 0x18], 1
test byte [ebp - 0x28], 4
mov byte [ebp - 0x24], bl
je 0x4b763f
mov byte [ebp - 0x24], 1
push edi
push 0x643204
lea ecx, [ebp - 0x14]
call fcn.0040d55f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push edi
push eax
call fcn.00405a0e
add esp, 8
mov ecx, esp
mov dword [ebp - 0x40], esp
push edi
push eax
push ecx
mov byte [ebp - 4], 6
call fcn.0040e47a
mov ecx, dword [esi + 0x18b4]
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call fcn.00413e11
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00401dd7
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00401493
push 0x6401e8
lea ecx, [ebp - 0x38]
call fcn.00402035
mov ecx, dword [esi + 0x18b4]
mov byte [ebp - 4], 8
mov dword [ebp - 0x28], ebx
cmp byte [ecx + 0xec8], bl
je 0x4b778f
cmp dword [ebp - 0x18], ebx
jne 0x4b7775
cmp byte [ebp - 0x24], bl
jne 0x4b778f
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
call fcn.004189d5
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x78]
push eax
call fcn.004a0717
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x20]
call fcn.004018a6
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 9
call fcn.00556e05
push ecx
mov eax, esp
mov dword [ebp - 0x40], esp
push 0x104
push eax
lea ecx, [ebp - 0x20]
call fcn.00403286
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
call fcn.004b6968
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.00401dd7
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
mov byte [ebp - 4], 9
call fcn.00401493
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
mov ecx, esi
push 0xffffffffffffffff
push ebx
call fcn.004ad02a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 8
call fcn.00401493
cmp dword [ebp - 0x18], 1
jne 0x4b778f
push ebx
push ebx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0x2c]
push 1
call fcn.004ad02a
mov dword [ebp - 0x28], eax
push 1
push 0x48
lea ecx, [ebp - 0x34]
call fcn.00406d8f
push 0x41
lea ecx, [esi + 0x1cf5]
mov byte [ebp - 4], 0xb
call fcn.004c9e71
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x44]
mov ecx, esi
call fcn.004b3a33
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], esp
mov ecx, esp
push eax
call fcn.00402e5b
push dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push ecx
mov dword [ebp - 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.00402e5b
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push 1
push dword [ebp - 0x28]
mov byte [ebp - 4], 0xd
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ecx
mov dword [ebp - 0x44], esp
mov ecx, esp
push eax
call fcn.00402e5b
push dword [ebp - 0x5c]
lea eax, [ebp - 0x48]
push dword [ebp - 0x60]
mov byte [ebp - 4], 0xe
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push ecx
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.00402e5b
push dword [ebp - 0x18]
mov ecx, esi
push 0x40
mov byte [ebp - 4], 0xb
call fcn.004b60e9
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401493
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x4b7598
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401493
push dword [ebp - 0x10]
call fcn.00477166
pop ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401493
call fcn.0058c1c5
ret 8