Function at 0x1004987d
Capabilities:
Reference sql statements

Disassembly:
push 0x7c
mov eax, 0x100eb205
call fcn.100c751b
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x64], eax
cmp dword [edi + 0x10], ebx
je 0x10049aad
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
cmp dword [ebp + 8], 0xffffffff
mov byte [ebp - 4], 1
push esi
je 0x100498ef
cmp dword [ebp + 8], ebx
je 0x100498d1
push str.SELECT_data_lastuploaded_FROM_cache_t_WHERE_url_q_
lea esi, [ebp - 0x54]
call fcn.1000c22b
pop ecx
pop ecx
jmp 0x1004994d
lea ecx, [ebp - 0x34]
call fcn.100515a8
pop ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x18], 0x10
jb 0x100498e9
mov eax, dword [eax + 4]
jmp 0x100498ec
add eax, 4
push eax
jmp 0x1004992f
lea ecx, [ebp - 0x34]
call fcn.100515a8
pop ecx
push esi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.1002f07d
pop ecx
cmp al, bl
jne 0x1004992c
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x10049916
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x5c]
lea esi, [ebp - 0x54]
push str.SELECT_data_lastuploaded_FROM_cache_t_WHERE__url_q_AND_refreshinterval__0__OR__url_q_AND_refreshinterval0__
call fcn.1000c22b
add esp, 0xc
jmp 0x1004993e
push dword [ebp - 0x5c]
push str.SELECT_data_lastuploaded_FROM_cache_t_WHERE_url_q_
lea esi, [ebp - 0x54]
call fcn.1000c22b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1000d1ca
push dword [ebp - 0x54]
lea eax, [ebp - 0x7c]
push eax
mov eax, edi
call fcn.1000c7f1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], 0xf
call fcn.1000d2f6
lea esi, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.1000c592
cmp al, bl
jne 0x100499dd
mov dword [ebp - 0x58], 1
cmp dword [ebp - 0x64], ebx
jne 0x1004999b
cmp dword [ebp - 0x60], ebx
je 0x100499bc
push str.data
lea eax, [ebp - 0x7c]
call fcn.1000c4d0
push eax
push dword [ebp - 0x74]
call fcn.10071506
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2c]
call fcn.1000c2a6
push str.lastuploaded
lea eax, [ebp - 0x7c]
call fcn.1000c4d0
push eax
push dword [ebp - 0x74]
call fcn.10071506
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.1000d1ad
lea eax, [ebp - 0x7c]
call fcn.1000c608
cmp dword [ebp - 0x58], ebx
je 0x10049a5f
lea esi, [ebp - 0x2c]
call fcn.1000c309
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x58], esi
cmp eax, ebx
je 0x10049a01
mov dword [eax], esi
cmp dword [ebp - 0x60], ebx
je 0x10049a30
lea eax, [esi + 1]
push eax
call fcn.100a2139
pop ecx
push esi
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.1000c309
push eax
push edi
call fcn.100c1cb0
mov eax, dword [ebp - 0x58]
mov byte [edi + eax], bl
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov dword [eax], edi
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.1000d1ca
lea esi, [ebp - 0x2c]
call fcn.1000c394
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.1000c403
lea esi, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.1000c21a
xor eax, eax
inc eax
jmp 0x10049aaf
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10049a83
push dword [ebp + 0x1c]
push 1
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp - 0x5c]
call fcn.10049809
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.1000d1ca
lea esi, [ebp - 0x2c]
call fcn.1000c394
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.1000c403
lea esi, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.1000c21a
xor eax, eax
call fcn.100c7577
ret 0x18