Function at 0x412827
Capabilities:
Reference sql statements

Disassembly:
push 0xb4
mov eax, 0x5b8a44
call fcn.0058708e
and dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
call fcn.00413d70
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.00488590
mov byte [ebp - 4], 2
or dword [ebp - 0x28], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
cmp byte [ebp - 0x34], 0
jne 0x4128b0
xor esi, esi
lea edi, [ebp - 0x3c]
call fcn.00487b20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x64]
push eax
call fcn.00410091
mov byte [ebp - 4], 3
push 0x6902a0
inc esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004085bd
push 0x6902a4
push 2
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004085bd
push 0x6902a8
push 3
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004085bd
push 0x6902ac
push 4
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004085bd
push 0x6902b0
push 5
pop esi
call fcn.00487ba0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004085bd
push 6
pop esi
call fcn.00487ae0
mov dword [ebp - 0x4c], eax
push 7
pop esi
call fcn.00487ae0
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004084e9
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
call fcn.0040876a
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.00413ec6
lea edi, [ebp - 0x44]
mov esi, eax
call fcn.00469749
test al, al
je 0x412827
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
push eax
lea ebx, [ebp - 0xc0]
call fcn.00413dea
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.00488370
mov byte [ebp - 4], 6
push dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x1c]
call fcn.00488210
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00488000
mov byte [ebp - 4], 7
cmp byte [ebp - 0x7c], 0
jne 0x412805
push 0x6902f4
xor esi, esi
lea edi, [ebp - 0x84]
call fcn.00487ba0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004085bd
mov byte [ebp - 4], 6
lea esi, [ebp - 0x84]
call fcn.00487a90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00487dd0
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 0x412865
mov eax, dword [esi + 0x14]
sub eax, edx
sar eax, 5
cmp ecx, eax
jae 0x412865
lea eax, [ebp - 0x64]
push eax
push 1
push edi
call fcn.004148c1
mov dword [esi + 0x10], eax
jmp 0x412889
and dword [ebp - 0x6c], 0
cmp edx, edi
jbe 0x412872
call fcn.0057a4ca
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.00414847
lea eax, [ebp - 0x3c]
push eax
call fcn.00487c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00408559
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
call fcn.0041297c
jmp 0x41268f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xffffffe0
je 0x4128fc
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.00488370
mov byte [ebp - 4], 9
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 1
lea eax, [ebp - 0x1c]
call fcn.00488290
lea ebx, [ebp - 0x1c]
call fcn.00487e60
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.00487dd0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x3c]
call fcn.00487a90
mov byte [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
call fcn.0041295c
or dword [ebp - 4], 0xffffffff
call fcn.00587133
ret 8