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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4df6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
mov dword [ebp - 0x10], ecx
push str.ODBC_CONNECTION::OnError
lea ecx, [ebp - 0xe0]
call fcn.00404f76
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
jmp 0x46da07
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x32
jge 0x46de6b
lea eax, [ebp - 0x44]
push eax
push 0x100
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2e0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00491220
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xe4
call fcn.004849d4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004849d4
push eax
call sub.ODBC32.dll_SQLError
mov word [ebp - 0x14], ax
xor eax, eax
inc eax
imul eax, eax, 0xff
mov byte [ebp + eax - 0x1e0], 0
movsx eax, word [ebp - 0x14]
cmp eax, 0x64
jne 0x46da78
jmp 0x46de6b
movsx eax, word [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x46dabd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x51f5c4]
cmp eax, 0xbb8
jbe 0x46dab8
call fcn.00403572
movzx eax, al
test eax, eax
je 0x46daad
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51f5c4], eax
jmp 0x46de6b
movsx eax, word [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x46db02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x51f5c4]
cmp eax, 0xbb8
jbe 0x46dafd
call fcn.00403572
movzx eax, al
test eax, eax
je 0x46daf2
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51f5c4], eax
jmp 0x46de6b
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0xc1]
call fcn.004053d4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x58]
lea eax, [ebp - 0x79]
push eax
push 0x4de658
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0xa6]
call fcn.004053d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x60]
lea eax, [ebp - 0x94]
push eax
push str._ODBC_
lea ecx, [ebp - 0xca]
call fcn.004053d4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
call fcn.00405bb0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
call fcn.00405cc1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c]
call fcn.00405bb0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x54]
mov ecx, dword [ebp + 0x10]
call fcn.00405662
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x79]
call fcn.004055b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.004055b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.004055b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xca]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa6]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc1]
call fcn.004055b0
cmp dword [0x51f5bc], 0
jne 0x46de66
cmp dword [ebp + 0xc], 0
je 0x46ddf4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x51f5c4]
cmp eax, 0xbb8
jbe 0x46dc69
call fcn.00403572
movzx eax, al
test eax, eax
je 0x46dc5e
push 0x64
push 0x1388
call dword [sym.imp.KERNEL32.dll_Beep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x51f5c4], eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___d___s___s
lea eax, [ebp - 0x82]
push eax
call fcn.00407450
add esp, 0x18
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x20]
call fcn.00405b2a
push eax
push str.ODBC_CONNECTION
push 0x450a
push str.D:projectsUTIL_srcgdb.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x82]
call fcn.004055b0
mov eax, dword [ebp - 0x10]
add eax, 0x33b
push eax
call fcn.0046b511
pop ecx
movzx eax, al
test eax, eax
je 0x46ddf2
cmp dword [ebp + 0x14], 0
je 0x46dd7d
mov ecx, dword [ebp + 0x14]
call fcn.00405b2a
push eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___ld___s___s_r_n_s
lea eax, [ebp - 0x8b]
push eax
call fcn.00407450
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x50]
call fcn.00405b2a
push eax
push str.ODBC
push 0x400
push 0x450e
push str.D:projectsUTIL_srcgdb.cpp
call fcn.0040460e
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8b]
call fcn.004055b0
jmp 0x46ddf2
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___ld___s___s
lea eax, [ebp - 0x9d]
push eax
call fcn.00407450
add esp, 0x18
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2c]
call fcn.00405b2a
push eax
push str.ODBC
push 0x400
push 0x4511
push str.D:projectsUTIL_srcgdb.cpp
call fcn.0040460e
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9d]
call fcn.004055b0
jmp 0x46de66
push 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, 0x33b
call fcn.00405b2a
push eax
push str.ODBC__s_Message_:___d___s___s
lea eax, [ebp - 0xaf]
push eax
call fcn.00407450
add esp, 0x18
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c]
call fcn.00405b2a
push eax
push str.ODBC_CONNECTION
push 0x4517
push str.D:projectsUTIL_srcgdb.cpp
call fcn.00404405
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xaf]
call fcn.004055b0
jmp 0x46da00
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.004050e2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10