Function at 0x414d43
Capabilities:
Reference sql statements

Disassembly:
push 0xb4
mov eax, 0x5c1596
call fcn.0058ec5e
and dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
call fcn.00416edf
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push str.select__from_appmon2_ORDER_BY_id_ASC_LIMIT_100_
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.0049d2f0
mov byte [ebp - 4], 2
or dword [ebp - 0x28], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
cmp byte [ebp - 0x34], 0
jne 0x414f8a
xor esi, esi
lea edi, [ebp - 0x3c]
call fcn.0049c880
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x64]
push eax
call fcn.00411af7
mov byte [ebp - 4], 3
inc esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040865a
push 2
pop esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040865a
push 3
pop esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040865a
push 4
pop esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040865a
push 5
pop esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040865a
push 6
pop esi
call fcn.0049c840
mov dword [ebp - 0x4c], eax
push 7
pop esi
call fcn.0049c840
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408586
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
call fcn.00408807
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xac]
push eax
lea ebx, [ebp - 0xa4]
call fcn.00417035
lea edi, [ebp - 0x44]
mov esi, eax
call fcn.004355da
test al, al
je 0x414f01
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
push eax
lea ebx, [ebp - 0xc0]
call fcn.00416f59
mov byte [ebp - 4], 5
push str.SELECT_icon_data_FROM_app_icons_WHERE_app____AND_t_sent__0_
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
call fcn.0049d0d0
mov byte [ebp - 4], 6
push dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x1c]
call fcn.0049cf70
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0049cd60
mov byte [ebp - 4], 7
cmp byte [ebp - 0x7c], 0
jne 0x414edf
xor esi, esi
lea edi, [ebp - 0x84]
call fcn.0049c900
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040865a
mov byte [ebp - 4], 6
lea esi, [ebp - 0x84]
call fcn.0049c7f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.0049cb30
mov dword [ebp - 4], 4
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, edi
sub ecx, edx
sar ecx, 5
test edx, edx
je 0x414f3f
mov eax, dword [esi + 0x14]
sub eax, edx
sar eax, 5
cmp ecx, eax
jae 0x414f3f
lea eax, [ebp - 0x64]
push eax
push 1
push edi
call fcn.00417af2
mov dword [esi + 0x10], eax
jmp 0x414f63
and dword [ebp - 0x6c], 0
cmp edx, edi
jbe 0x414f4c
call fcn.0058204a
mov eax, dword [esi]
mov dword [ebp - 0x6c], eax
push edi
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00417a78
lea eax, [ebp - 0x3c]
push eax
call fcn.0049c980
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
call fcn.00415056
jmp 0x414d87
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xffffffe0
je 0x414fd6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push str.delete_from_appmon2_where_id_____
lea eax, [ebp - 0x1c]
push eax
call fcn.0049d0d0
mov byte [ebp - 4], 9
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 1
lea eax, [ebp - 0x1c]
call fcn.0049cff0
lea ebx, [ebp - 0x1c]
call fcn.0049cbc0
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.0049cb30
mov byte [ebp - 4], 1
lea esi, [ebp - 0x3c]
call fcn.0049c7f0
mov byte [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
call fcn.00415036
or dword [ebp - 4], 0xffffffff
call fcn.0058ed03
ret 8