Function at 0x46de8a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4e33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov dword [ebp - 0x14], ecx
push str.ODBC_CONNECTION::OnError
lea ecx, [ebp - 0x8c]
call fcn.00404f76
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
jmp 0x46decc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x32
jge 0x46e25f
lea eax, [ebp - 0x30]
push eax
push 0x100
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xe4
call fcn.004849d4
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.004849d4
push eax
call sub.ODBC32.dll_SQLError
mov word [ebp - 0x10], ax
xor eax, eax
inc eax
imul eax, eax, 0xff
mov byte [ebp + eax - 0x18c], 0
movsx eax, word [ebp - 0x10]
test eax, eax
jne 0x46df88
push 0
lea eax, [ebp - 0x18c]
push eax
movsx eax, word [ebp - 0x10]
push eax
push str.SQLError_connection_error._code_:__d_:__s__r_n
lea eax, [ebp - 0x51]
push eax
call fcn.00407450
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
call fcn.00405b2a
push eax
push 0x4e2554
push 0x44b4
push str.D:projectsUTIL_srcgdb.cpp
call fcn.00404405
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x51]
call fcn.004055b0
movsx eax, word [ebp - 0x10]
cmp eax, 0x64
jne 0x46df96
jmp 0x46e25f
lea eax, [ebp - 0x18c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040574c
movsx eax, word [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x46dfea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x51f5c4]
cmp eax, 0xbb8
jbe 0x46dfe5
call fcn.00403572
movzx eax, al
test eax, eax
je 0x46dfda
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51f5c4], eax
jmp 0x46e25f
movsx eax, word [ebp - 0x10]
cmp eax, 0xfffffffe
jne 0x46e02f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x51f5c4]
cmp eax, 0xbb8
jbe 0x46e02a
call fcn.00403572
movzx eax, al
test eax, eax
je 0x46e01f
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51f5c4], eax
jmp 0x46e25f
cmp dword [0x51f5bc], 0
jne 0x46e227
cmp dword [ebp + 8], 0
je 0x46e1bb
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___d___s___s
lea eax, [ebp - 0x63]
push eax
call fcn.00407450
add esp, 0x18
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
call fcn.00405b2a
push eax
push str.ODBC_CONNECTION
push 0x44cc
push str.D:projectsUTIL_srcgdb.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63]
call fcn.004055b0
mov eax, dword [ebp - 0x14]
add eax, 0x33b
push eax
call fcn.0046b511
pop ecx
movzx eax, al
test eax, eax
je 0x46e1b9
cmp dword [ebp + 0x10], 0
je 0x46e14a
mov ecx, dword [ebp + 0x10]
call fcn.00405b2a
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___ld___s___s_r_n_s
lea eax, [ebp - 0x75]
push eax
call fcn.00407450
add esp, 0x1c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
call fcn.00405b2a
push eax
push str.ODBC
push 0x400
push 0x44d0
push str.D:projectsUTIL_srcgdb.cpp
call fcn.0040460e
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x75]
call fcn.004055b0
jmp 0x46e1b9
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___ld___s___s
lea eax, [ebp - 0x6c]
push eax
call fcn.00407450
add esp, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
call fcn.00405b2a
push eax
push str.ODBC
push 0x400
push 0x44d3
push str.D:projectsUTIL_srcgdb.cpp
call fcn.0040460e
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.004055b0
jmp 0x46e227
push 0
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___d___s___s
lea eax, [ebp - 0x5a]
push eax
call fcn.00407450
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
call fcn.00405b2a
push eax
push str.ODBC_CONNECTION
push 0x44d8
push str.D:projectsUTIL_srcgdb.cpp
call fcn.00404405
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5a]
call fcn.004055b0
cmp dword [ebp - 0x1c], 0x31
jne 0x46e25a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x51f5c4]
cmp eax, 0xbb8
jbe 0x46e258
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51f5c4], eax
jmp 0x46e25f
jmp 0x46dec5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc