Function at 0x4ba60e
Capabilities:
Reference sql statements

Disassembly:
push 0xf0
mov eax, 0x6302ec
call fcn.0058c0ed
mov edi, ecx
push edi
lea ecx, [ebp - 0xfc]
call fcn.0049bec4
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x84], eax
mov eax, dword [edi + 0x18b4]
mov dword [ebp - 0x88], ebx
mov al, byte [eax + 0xe41]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x44], al
lea esi, [ebp - 0x74]
mov eax, dword [edi + 0x18b4]
lea ecx, [ebx + eax + 0x1534]
call fcn.0050bb78
mov dword [esi], eax
add ebx, 0x18
add esi, 4
cmp ebx, 0xf0
jl 0x4ba651
lea ecx, [ebp - 0xfc]
call fcn.00566c09
cmp eax, 1
jne 0x4baa80
mov ebx, dword [ebp - 0x84]
lea ecx, [edi + 0x1f0]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], ecx
call fcn.00499578
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4baa80
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.0049958c
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00559100
mov esi, eax
mov eax, dword [esi]
test eax, eax
jle 0x4ba9c0
cmp eax, 2
jle 0x4ba8ea
cmp eax, 4
je 0x4ba8cf
cmp eax, 8
je 0x4ba896
cmp eax, 0x10
je 0x4ba896
cmp eax, 0x20
je 0x4ba886
cmp eax, 0x40
jne 0x4ba9c0
mov ebx, dword [esi + 0x28]
push 0x6401e8
lea ecx, [ebp - 0x10]
call fcn.00402035
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b5f8
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push ebx
push dword [ebp + 8]
mov byte [ebp - 4], 3
push str.UPDATE__stickies__SET__colour____i_WHERE__key____i_AND__colour_____i
push eax
call fcn.0040e65b
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x1c]
mov eax, dword [edi + 0x18b4]
push dword [eax + 0xbb4]
call fcn.00488a1c
mov eax, dword [edi + 0x18b4]
add esp, 0x28
cmp byte [eax + 0xec8], 0
je 0x4ba867
cmp byte [eax + 0xed8], 0
jne 0x4ba867
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x20]
call fcn.004018a6
push ebx
lea eax, [ebp - 0x20]
push str.SELECT__flags__FROM__stickies__WHERE__key____i
push eax
mov byte [ebp - 4], 4
call fcn.00401e49
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi + 0x18b4]
push 0xffffffffffffffff
push dword [ebp - 0x20]
push dword [eax + 0xbb4]
call fcn.004830b7
add esp, 0x20
test eax, eax
jne 0x4ba7e7
push dword [ebp - 0x14]
call fcn.004887a0
pop ecx
jmp 0x4ba7e2
push 0
push dword [ebp - 0x14]
call fcn.00442db6
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
call fcn.004887a0
add esp, 0xc
cmp eax, 0x65
jne 0x4ba7ca
push dword [ebp - 0x14]
call fcn.00477166
pop ecx
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4ba80e
call fcn.005512ee
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4ba80a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [esi + 0x30], 0
test byte [ebp - 0x28], 1
je 0x4ba822
push 0
push 0
push dword [ebp + 8]
push dword [esi + 0x28]
push 1
jmp 0x4ba852
cmp byte [esi + 0x39], 0
jne 0x4ba85c
mov ecx, dword [edi + 0x18b4]
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004189d5
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x78]
call fcn.004a0717
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push dword [esi + 0x28]
push 0
mov ecx, edi
call fcn.004ad02a
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401493
jmp 0x4ba9bd
push dword [esi + 0x28]
mov ecx, dword [edi + 0x18b4]
call fcn.00409942
jmp 0x4ba8a4
push dword [esi + 0x28]
mov ecx, dword [edi + 0x18b4]
call fcn.00409909
test eax, eax
je 0x4ba8ab
mov dword [eax + 0x18], ebx
push ebx
push dword [eax + 0x48]
mov ecx, edi
push dword [esi + 0x28]
call fcn.004b5ccd
mov eax, dword [eax + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x18b4]
call fcn.0040b088
jmp 0x4ba9c0
push dword [esi + 0x28]
mov ecx, dword [edi + 0x18b4]
call fcn.004098d0
test eax, eax
je 0x4ba8ab
mov byte [eax + 0xe8], 1
jmp 0x4ba8a8
push dword [esi + 0x28]
mov ecx, dword [edi + 0x18b4]
call fcn.0040988c
mov ebx, eax
test ebx, ebx
je 0x4ba9b2
push 1
push 1
push dword [ebp + 8]
mov ecx, ebx
call fcn.004fc135
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4ba92e
call fcn.005512ee
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4ba92a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [esi + 0x30], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x84]
call fcn.004a0b11
mov eax, dword [edi + 0x18b4]
cmp byte [eax + 0xec8], 0
mov byte [ebp - 4], 1
je 0x4ba99f
cmp byte [eax + 0xed8], 0
jne 0x4ba99f
cmp dword [ebx + 0x2f4], 0
lea eax, [ebp - 0x24]
mov ecx, ebx
jne 0x4ba97c
push 0
push eax
call fcn.004f055c
push eax
mov ecx, ebx
call fcn.004f0a4f
push eax
push 0
jmp 0x4ba993
push dword [ebx + 0x2f8]
push eax
call fcn.004f055c
push eax
mov ecx, ebx
call fcn.004f0a4f
push eax
push 1
mov ecx, edi
call fcn.004ad02a
mov dword [esi + 0x30], eax
jmp 0x4ba9a3
and dword [esi + 0x30], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401493
mov ecx, dword [edi + 0x18b4]
call fcn.0040b088
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x2c], 0
mov dword [esi + 0x34], ebx
jne 0x4ba6a9
mov eax, dword [edi + 0x1908]
push 8
pop ecx
cmp eax, 2
jne 0x4ba9e3
cmp dword [edi + 0x1cf8], ecx
je 0x4baa54
cmp eax, 3
jne 0x4ba9f0
cmp dword [edi + 0x1cfc], ecx
je 0x4baa54
cmp eax, 4
jne 0x4ba9fd
cmp dword [edi + 0x1d00], ecx
je 0x4baa54
cmp eax, 5
je 0x4baa07
cmp eax, 7
jne 0x4baa0f
cmp dword [edi + 0x1d04], ecx
je 0x4baa54
cmp eax, 6
je 0x4baa19
cmp eax, 7
jne 0x4baa21
cmp dword [edi + 0x1d08], ecx
je 0x4baa54
cmp eax, ecx
jne 0x4baa2d
cmp dword [edi + 0x1d10], ecx
je 0x4baa54
cmp eax, 9
jne 0x4baa3a
cmp dword [edi + 0x1d14], ecx
je 0x4baa54
cmp eax, 0xa
jne 0x4baa47
cmp dword [edi + 0x1d18], ecx
je 0x4baa54
cmp eax, 0xb
jne 0x4baa5d
cmp dword [edi + 0x1d1c], ecx
jne 0x4baa5d
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004c6934
push ebx
push 0
lea ecx, [edi + 0x328]
mov dword [edi + 0x1f58], ebx
call fcn.0049f120
mov ecx, edi
call fcn.004a9c04
mov ecx, dword [ebp - 0x18]
call fcn.004c6092
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
call fcn.0049bf29
call fcn.0058c1c5
ret 4