Function at 0x41b380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3b92
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xa8]
push eax
call fcn.0041d1c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
push str.select__from_appmon2_ORDER_BY_id_ASC_LIMIT_100_
lea edx, [ebp - 0x3c]
push edx
push eax
call fcn.004a8900
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x34], bl
jne 0x41b41d
xor esi, esi
lea edi, [ebp - 0x3c]
call fcn.004a7e90
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x68]
push eax
call fcn.00417e80
mov byte [ebp - 4], 3
mov esi, 1
call fcn.004a7f10
mov edx, eax
lea edi, [ebp - 0x64]
call fcn.0040b9c0
mov esi, 2
lea edi, [ebp - 0x3c]
call fcn.004a7f10
mov edx, eax
lea edi, [ebp - 0x60]
call fcn.0040b9c0
mov esi, 3
lea edi, [ebp - 0x3c]
call fcn.004a7f10
mov edx, eax
lea edi, [ebp - 0x5c]
call fcn.0040b9c0
mov esi, 4
lea edi, [ebp - 0x3c]
call fcn.004a7f10
mov edx, eax
lea edi, [ebp - 0x58]
call fcn.0040b9c0
mov esi, 5
lea edi, [ebp - 0x3c]
call fcn.004a7f10
mov edx, eax
lea edi, [ebp - 0x54]
call fcn.0040b9c0
mov esi, 6
lea edi, [ebp - 0x3c]
call fcn.004a7e50
mov dword [ebp - 0x50], eax
mov esi, 7
call fcn.004a7e50
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0040b840
mov byte [ebp - 4], 4
lea edi, [ebp - 0x14]
call fcn.0040bc80
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x44], ecx
mov edx, edi
push edx
lea eax, [ebp - 0xb8]
push eax
lea esi, [ebp - 0xa8]
call fcn.004394e0
lea esi, [ebp - 0x44]
mov edi, eax
call fcn.00445ed0
test al, al
je 0x41b382
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea ebx, [ebp - 0xc4]
call fcn.0041d270
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 ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x1c]
call fcn.004a86e0
mov bl, 6
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x14]
push edx
push 1
lea eax, [ebp - 0x1c]
call fcn.004a8580
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004a8370
mov byte [ebp - 4], 7
cmp byte [ebp - 0x80], 0
jne 0x41b35f
xor esi, esi
lea edi, [ebp - 0x88]
call fcn.004a7f10
mov edx, eax
lea edi, [ebp - 0x4c]
call fcn.0040b9c0
mov byte [ebp - 4], bl
lea esi, [ebp - 0x88]
call fcn.004a7e00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.004a8140
mov dword [ebp - 4], 4
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov eax, esi
sub eax, ecx
sar eax, 5
cmp ecx, ebx
je 0x41b3d1
mov edx, dword [edi + 0x14]
sub edx, ecx
sar edx, 5
cmp eax, edx
jae 0x41b3d1
mov byte [ebp - 0x48], bl
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 1
push esi
call fcn.00422580
add esp, 0x14
add esi, 0x20
mov dword [edi + 0x10], esi
jmp 0x41b3f6
mov dword [ebp - 0x70], ebx
cmp ecx, esi
jbe 0x41b3dd
call fcn.0059471a
mov eax, dword [edi]
mov dword [ebp - 0x70], eax
push esi
push eax
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0xb0]
push eax
mov eax, edi
call fcn.0041e180
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004a7f90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.0040b950
mov byte [ebp - 4], 2
lea edx, [ebp - 0x68]
push edx
call fcn.0041b550
jmp 0x41b1e5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xffffffe0
je 0x41b46d
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1c]
push str.delete_from_appmon2_where_id_____
lea eax, [ebp - 0x1c]
push eax
call fcn.004a86e0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 1
lea eax, [ebp - 0x1c]
call fcn.004a8600
lea ebx, [ebp - 0x1c]
call fcn.004a81d0
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.004a8140
xor ebx, ebx
mov byte [ebp - 4], 1
lea esi, [ebp - 0x3c]
call fcn.004a7e00
mov byte [ebp - 4], bl
lea eax, [ebp - 0xa8]
push eax
call fcn.0041b500
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8