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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4463ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::constructor_void_]
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
push 0x104
mov edx, dword [0x454ae0]
call dword [edx + 0x1c0]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x220]
push ecx
push str._s_r_s
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.SEMSFC.dll_public:_void___cdecl_SString::Format_unsigned_short_int_const__]
add esp, 0x10
push 0
push str.ISQLWWindowClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ed07
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ed2c
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x234]
jmp 0x40ef90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x22c], eax
mov ecx, 1
test ecx, ecx
je 0x40ef70
push str.SQLServerQueryAnalyzer70Mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x40ed74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ee0c
cmp dword [ebp - 0x228], 0
je 0x40ed8a
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40edbd
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x238]
jmp 0x40ef90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x22c]
cmp eax, 0x2710
jbe 0x40edf5
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x23c]
jmp 0x40ef90
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x228], 0
jmp 0x40ed38
push str.SQLServerQueryAnalyzer70MapFile
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SString::GetLength_void_const]
add eax, 2
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x40eece
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x228], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ee89
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x240]
jmp 0x40ef90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x22c]
cmp eax, 0x2710
jbe 0x40eec1
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x244]
jmp 0x40ef90
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ed38
push 0
push 0
push 0
push 2
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_unsigned_short_int_const____thiscall_SString::operator_unsigned_short_int_const__void_const]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
push 0
push 0x12bc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
xor ecx, ecx
cmp eax, 7
sete cl
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x248]
jmp 0x40ef90
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SString::destructor_void_]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret