Function at 0x4af124
Capabilities:
Reference sql statements

Disassembly:
push 0x48
mov eax, 0x62ef97
call fcn.0058c0ed
mov ebx, ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffff9d
mov dword [ebp - 0x30], 0xffffffa8
je 0x4af4b9
or edi, 0xffffffff
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x18]
call fcn.004018a6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
push eax
lea eax, [ebp - 0x18]
push str.SELECT__key___name___flags___parent___next___select_count___FROM__stickies__WHERE__category____i__AS_count_FROM__categories__WHERE__key____i
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00401e49
add esp, 0x10
push 0x41
lea ecx, [ebx + 0x1cf5]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x28], edi
call fcn.004c9e71
mov dword [ebp - 0x40], esi
mov esi, 0x6401e8
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
call fcn.00402035
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402035
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x18b4]
push edi
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [eax + 0xbb4]
call fcn.004830b7
add esp, 0x14
test eax, eax
jne 0x4af275
push dword [ebp - 0x10]
call fcn.004887a0
pop ecx
jmp 0x4af26c
push 0
push dword [ebp - 0x10]
call fcn.00442db6
pop ecx
pop ecx
mov ecx, dword [ebx + 0x18b4]
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00413b8e
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00401dd7
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401493
push 2
push dword [ebp - 0x10]
call fcn.00442db6
push 3
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00442db6
push 4
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call fcn.00442db6
push 5
push dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
call fcn.00442db6
push dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
call fcn.004887a0
add esp, 0x24
cmp eax, 0x65
jne 0x4af1ee
push dword [ebp - 0x10]
call fcn.00477166
mov esi, dword [ebp + 0xc]
push dword [esi]
lea eax, [ebp - 0x18]
push str.SELECT__type___t_i___t_d___t_s__FROM__categoryproperties__WHERE__key____i
push eax
call fcn.00401e49
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x18b4]
push edi
push dword [ebp - 0x18]
push dword [eax + 0xbb4]
call fcn.004830b7
add esp, 0x24
test eax, eax
jne 0x4af31c
jmp 0x4af30e
push 0
push dword [ebp - 0x14]
call fcn.00442db6
dec eax
pop ecx
pop ecx
je 0x4af2ff
dec eax
je 0x4af2f0
dec eax
je 0x4af2e1
sub eax, 0x12
jne 0x4af30e
push 2
push dword [ebp - 0x14]
call fcn.00442db6
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
jmp 0x4af30c
push 2
push dword [ebp - 0x14]
call fcn.00442db6
mov dword [ebp - 0x3c], eax
jmp 0x4af30c
push 1
push dword [ebp - 0x14]
call fcn.00442db6
mov dword [ebp - 0x1c], eax
jmp 0x4af30c
push 1
push dword [ebp - 0x14]
call fcn.00442db6
mov dword [ebp - 0x28], eax
pop ecx
pop ecx
push dword [ebp - 0x14]
call fcn.004887a0
pop ecx
cmp eax, 0x65
jne 0x4af2b4
push dword [ebp - 0x14]
call fcn.00477166
mov eax, dword [ebx + 0x18b4]
pop ecx
mov ecx, dword [esi]
cmp ecx, dword [eax + 0xf10]
jne 0x4af34c
push 0x41
lea ecx, [ebx + 0x1cf5]
mov dword [ebp - 0x28], 0x47
call fcn.004c9e71
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp + 0x14]
jne 0x4af447
mov ecx, dword [ebp + 8]
push 0xffff0002
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.004a40f8
push 0x30
mov dword [ebp - 0x34], eax
call fcn.0054c584
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x3c]
cdq
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x40]
pop ecx
mov ecx, dword [ebp - 0x2c]
shr ecx, 1
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x24]
and cl, 1
mov byte [esi + 0x14], cl
mov dword [esi + 0x24], edx
cmp eax, dword [ebp + 0x18]
jne 0x4af3b9
push 0x47
pop eax
mov word [esi + 0xc], ax
mov dword [esi + 0x10], edi
jmp 0x4af40b
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x4af3d2
lea ecx, [eax + 0x3bd]
mov word [esi + 0xc], cx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x10], ecx
jmp 0x4af3e7
xor edx, edx
test cl, cl
sete dl
mov dword [esi + 0x10], edi
dec edx
and edx, 0x69
add edx, 0x48
mov word [esi + 0xc], dx
cmp eax, 0x7d00
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x10], ecx
jle 0x4af40b
push 0x7e
pop eax
push 0xf
lea ecx, [ebx + 0x1cf5]
mov word [esi + 0xc], ax
call fcn.004c9e71
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 0x34]
mov dword [esi], edi
call fcn.004025ea
test byte [ebp - 0x2c], 1
je 0x4af436
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push 0x20
push 0x20
push eax
push eax
push eax
push 8
push dword [ebp - 0x34]
call fcn.0055931b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov esi, eax
jmp 0x4af469
cmp eax, dword [ebp - 0x30]
jne 0x4af498
mov eax, dword [ebx + 0x18b4]
push dword [eax + 0xf10]
mov ecx, ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push esi
push dword [ebp + 8]
call fcn.004af124
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.00401493
cmp dword [esi], 0xffffff9d
jne 0x4af148
jmp 0x4af4b9
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401493
call fcn.0058c1c5
ret 0x14