Function at 0x1004a658
Capabilities:
Reference sql statements

Disassembly:
push 0xb0
mov eax, 0x100ec983
call fcn.100c751b
xor ebx, ebx
mov edi, 0x101364f0
mov dword [ebp - 0x4c], edi
cmp dword [0x10136500], ebx
je 0x1004aaef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x10136504]
cmp ecx, 0x927c0
jb 0x1004aaef
mov dword [0x10136504], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], vtable.CppSQLite3Query.0
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], bl
push str.SELECT_handle_pid_FROM_window_t_WHERE_running_0_
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
mov eax, edi
mov byte [ebp - 4], 1
call fcn.1000c7f1
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.1000c42c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.1000c403
lea esi, [ebp - 0x34]
call fcn.1000c592
test al, al
jne 0x1004a786
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x34]
call fcn.1000c53a
cmp eax, 5
jne 0x1004a709
xor eax, eax
jmp 0x1004a714
push esi
push dword [ebp - 0x2c]
call fcn.100714ae
pop ecx
pop ecx
cmp dword [0x1013652c], eax
je 0x1004a783
push ebx
lea eax, [ebp - 0x34]
call fcn.1000c53a
cmp eax, 5
jne 0x1004a72e
xor esi, esi
jmp 0x1004a73b
push ebx
push dword [ebp - 0x2c]
call fcn.100714ae
pop ecx
pop ecx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004a755
push esi
call dword [sym.imp.USER32.dll_IsHungAppWindow]
test eax, eax
je 0x1004aae3
mov dword [ebp - 0x1c], ebx
push esi
push str.DELETE_FROM_window_t_WHERE_handle_d_
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1000c22b
mov ebx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, edi
call fcn.1000c75e
mov byte [ebp - 4], 1
call fcn.1000c21a
xor ebx, ebx
jmp 0x1004a786
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x34]
call fcn.1000c608
mov dword [ebp - 4], ebx
jmp 0x1004a7ad
cmp dword [ebp - 0x38], 0
jne 0x1004a7e0
and dword [ebp - 0x1c], 0
push dword [ebp + 8]
lea esi, [ebp - 0x1c]
push str.UPDATE_window_t_SET_running1_WHERE_handle_d_
mov byte [ebp - 4], 5
call fcn.1000c22b
mov ebx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, edi
call fcn.1000c75e
mov byte [ebp - 4], 0
call fcn.1000c21a
push str.SELECT_url_strftime___w_____d__m___Y__H:_M:_S_GMT__lastuploaded__lastaccessed_refreshinterval_CURRENT_TIMESTAMP_type_FROM_cache_t_WHERE_refreshinterval_0
lea eax, [ebp - 0x70]
push eax
mov eax, edi
mov byte [ebp - 4], 6
call fcn.1000c7f1
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 7
call fcn.1000c42c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.1000c403
lea esi, [ebp - 0x34]
call fcn.1000c592
test al, al
mov eax, esi
jne 0x1004aa4e
push 3
pop ebx
push ebx
call fcn.1000c53a
cmp eax, 5
jne 0x1004a837
mov dword [ebp - 0x38], 0xa
jmp 0x1004a84d
push ebx
push dword [ebp - 0x2c]
call fcn.100714ae
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x1004aa41
fldz
and dword [ebp - 0x50], 0
and dword [ebp - 0x40], 0
fst qword [ebp - 0x58]
push 4
fstp qword [ebp - 0x48]
lea eax, [ebp - 0x34]
call fcn.1000c47d
mov edi, eax
test edi, edi
je 0x1004a87f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x1004a883
xor eax, eax
jmp 0x1004a899
lea eax, [esi + esi]
call fcn.100c7f80
mov dword [ebp - 0x10], esp
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1002cd8d
push 0x400
push 0
push eax
lea ecx, [ebp - 0x58]
call fcn.1004e13d
push 2
lea eax, [ebp - 0x34]
call fcn.1000c47d
mov edi, eax
test edi, edi
je 0x1004a8e7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x1004a8d1
xor ebx, ebx
xor eax, eax
jmp 0x1004a8e9
lea eax, [esi + esi]
call fcn.100c7f80
mov dword [ebp - 0x10], esp
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.1002cd8d
xor ebx, ebx
push 0x400
push ebx
push eax
lea ecx, [ebp - 0x48]
call fcn.1004e13d
push dword [ebp - 0x38]
lea ecx, [ebp - 0x64]
call fcn.1004e0c3
fld qword [ebp - 0x48]
mov esi, eax
lea edi, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push ecx
movsd dword es:[edi], dword [esi]
fstp qword [esp]
call fcn.1004e115
fadd qword [ebp - 0x7c]
fst qword [ebp - 0x3c]
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x1004a93c
push ecx
push ecx
fstp qword [esp]
call fcn.100c4300
fld qword [ebp - 0x3c]
pop ecx
fsubr st(1)
pop ecx
faddp st(1)
fst qword [ebp - 0x48]
cmp dword [ebp - 0x40], ebx
jne 0x1004aa3f
cmp dword [ebp - 0x50], ebx
jne 0x1004aa3f
push ecx
push ecx
fstp qword [esp]
call fcn.1004e115
fstp qword [ebp - 0x3c]
push ecx
fld qword [ebp - 0x58]
push ecx
fstp qword [esp]
call fcn.1004e115
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x41
jne 0x1004aa41
push 0x80
call fcn.100a20ff
pop ecx
cmp eax, ebx
je 0x1004a993
mov edi, eax
call fcn.100163bb
mov esi, eax
jmp 0x1004a995
xor esi, esi
push ebx
lea eax, [ebp - 0x34]
call fcn.1000c47d
push eax
mov ecx, esi
call fcn.1000d1ad
cmp dword [esi + 0x18], 0x10
jb 0x1004a9b1
mov eax, dword [esi + 4]
jmp 0x1004a9b4
lea eax, [esi + 4]
push eax
call fcn.1004a463
pop ecx
test eax, eax
je 0x1004a9f8
push 1
lea eax, [ebp - 0x34]
call fcn.1000c47d
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.1004a139
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 8
call fcn.1000d11b
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.1000d1ca
push 5
lea eax, [ebp - 0x34]
call fcn.1000c53a
cmp eax, 5
jne 0x1004aa0b
xor eax, eax
jmp 0x1004aa17
push 5
push dword [ebp - 0x2c]
call fcn.100714ae
pop ecx
pop ecx
or dword [esi + 0x38], 0xffffffff
push esi
push ebx
push 0x10049bf1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x7c], 1
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
call fcn.100c272a
add esp, 0xc
jmp 0x1004aa41
fstp st(0)
lea eax, [ebp - 0x34]
call fcn.1000c5a3
jmp 0x1004a80e
call fcn.1000c608
and dword [ebp - 4], 0
push str.SELECT_handle_FROM_window_t_
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.1000c7f1
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xb
call fcn.1000c42c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.1000c403
lea esi, [ebp - 0x34]
call fcn.1000c592
test al, al
mov eax, esi
jne 0x1004aade
xor esi, esi
push esi
call fcn.1000c53a
cmp eax, 5
je 0x1004aaae
push esi
push dword [ebp - 0x2c]
call fcn.100714ae
pop ecx
pop ecx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1004aabf
push esi
call fcn.10048cde
lea eax, [ebp - 0x34]
call fcn.1000c5a3
jmp 0x1004aa86
call fcn.1000c608
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1000c403
lea esp, [ebp - 0xcc]
call fcn.100c7577
ret 4