Function at 0x40eaa2
Capabilities:
Check for time delay via gettickcount
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xa18], 0
mov dword [ebp - 0xa14], 0
push 0xa08
push 0
lea eax, [ebp - 0xa10]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa10]
push ecx
push 0x104
mov edx, dword [0x454ae0]
call dword [edx + 0x1c0]
push 0x45297c
lea eax, [ebp - 0xa10]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa10]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
push 0
push str.ISQLWWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40eb5c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40eb63
xor eax, eax
jmp 0x40ed02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa1c], eax
mov ecx, 1
test ecx, ecx
je 0x40ed00
push str.SQLServerQueryAnalyzer70Mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xa18], eax
cmp dword [ebp - 0xa18], 0
je 0x40eba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ec03
cmp dword [ebp - 0xa18], 0
je 0x40ebbd
mov edx, dword [ebp - 0xa18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ebd2
xor eax, eax
jmp 0x40ed02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xa1c]
cmp eax, 0x2710
jbe 0x40ebec
xor eax, eax
jmp 0x40ed02
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xa18], 0
jmp 0x40eb6f
push str.SQLServerQueryAnalyzer70MapFile
push 0x504
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0xa20], eax
cmp dword [ebp - 0xa20], 0
jne 0x40ec7d
mov ecx, dword [ebp - 0xa18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa18], 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ec56
xor eax, eax
jmp 0x40ed02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xa1c]
cmp eax, 0x2710
jbe 0x40ec70
xor eax, eax
jmp 0x40ed02
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40eb6f
push 0
push 0
push 0
push 2
mov eax, dword [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xa10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
push 0
push 0x12bc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
xor edx, edx
cmp eax, 7
sete dl
mov dword [ebp - 0xa14], edx
mov eax, dword [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa18], 0
mov eax, dword [ebp - 0xa14]
jmp 0x40ed02
xor eax, eax
mov esp, ebp
pop ebp
ret