Function at 0x414a9e
Capabilities:
Reference sql statements

Disassembly:
push 0x3c
mov eax, 0x5c15f4
call fcn.0058ec5e
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.SELECT_icon_data_FROM_app_icons_WHERE_app____
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [edi + 0x1c]
call fcn.0049d0d0
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.004085b5
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
call fcn.00408807
push dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x34]
call fcn.0049cf70
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0049cd60
mov byte [ebp - 4], 3
cmp byte [ebp - 0x40], bl
je 0x414baf
mov eax, dword [ebp + 0x24]
mov edx, dword [eax]
lea ecx, [ebp + 0x24]
call fcn.00427b93
mov byte [ebp - 4], 4
lea eax, [ebp + 0x24]
call fcn.004170c4
test al, al
jne 0x414ba1
push str.INSERT_INTO_app_icons_app__icon_data__t_sent__time_on__VALUES_____________
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [edi + 0x1c]
call fcn.0049d0d0
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x2c]
call fcn.0049cf70
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00489840
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [eax]
push 2
lea eax, [ebp - 0x2c]
call fcn.0049cf30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.004084b5
push ebx
push 3
lea eax, [ebp - 0x2c]
call fcn.0049cfb0
push ebx
call fcn.00583034
pop ecx
push edx
push eax
push 4
lea eax, [ebp - 0x2c]
call fcn.0049cff0
lea ebx, [ebp - 0x2c]
call fcn.0049cbc0
mov byte [ebp - 4], 4
mov ecx, ebx
call fcn.0049cb30
mov byte [ebp - 4], 3
lea ebx, [ebp + 0x24]
call fcn.004170a7
xor ebx, ebx
mov byte [ebp - 4], 2
lea esi, [ebp - 0x48]
call fcn.0049c7f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.0049cb30
or dword [ebp - 4], 0xffffffff
jmp 0x414c11
mov dword [ebp - 4], 8
mov ecx, dword [edi + 0x1c]
push str.UPDATE_appmon2_SET_duration__duration____WHERE_process_name____AND_process_caption____
lea eax, [ebp - 0x2c]
push eax
call fcn.0049d0d0
mov byte [ebp - 4], 9
push dword [ebp + 0x20]
push 1
lea eax, [ebp - 0x2c]
call fcn.0049cfb0
push dword [ebp + 0xc]
push 2
lea eax, [ebp - 0x2c]
call fcn.0049cf70
push dword [ebp + 0x14]
push 3
lea eax, [ebp - 0x2c]
call fcn.0049cf70
lea ebx, [ebp - 0x2c]
call fcn.0049cbc0
test eax, eax
jne 0x414cf0
mov edi, dword [edi + 0x1c]
push str.INSERT_INTO_appmon2_process_name__process_title__process_caption__document__domains__duration__time_on__values_______________________
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0049d0d0
mov byte [ebp - 4], 0xa
push dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x1c]
call fcn.0049cf70
push dword [ebp + 0x10]
push 2
lea eax, [ebp - 0x1c]
call fcn.0049cf70
push dword [ebp + 0x14]
push 3
lea eax, [ebp - 0x1c]
call fcn.0049cf70
push dword [ebp + 0x18]
push 4
lea eax, [ebp - 0x1c]
call fcn.0049cf70
push dword [ebp + 0x1c]
push 5
lea eax, [ebp - 0x1c]
call fcn.0049cf70
push dword [ebp + 0x20]
push 6
lea eax, [ebp - 0x1c]
call fcn.0049cfb0
push 0
call fcn.00583034
pop ecx
push edx
push eax
push 7
lea eax, [ebp - 0x1c]
call fcn.0049cff0
lea ebx, [ebp - 0x1c]
call fcn.0049cbc0
mov byte [ebp - 4], 9
mov ecx, ebx
call fcn.0049cb30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.0049cb30
call fcn.0058ed03
ret 0x20