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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4342c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x70]
call fcn.00405300
test eax, eax
jne 0x40a4ad
mov eax, 1
test eax, eax
je 0x40a496
mov dword [ebp - 0x74], 0
jmp 0x40a4a6
push str.WaitInitialized:_No_dispatch__n
call fcn.00401b90
add esp, 4
mov dword [ebp - 0x74], eax
xor eax, eax
jmp 0x40a7d3
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x40], 0
jne 0x40a4df
mov dword [ebp - 0x44], 0
jmp 0x40a562
mov dword [ebp - 0x28], 0
lea edx, [ebp - 0x28]
push edx
push 0x43a33c
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
call dword [eax + 0x14]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40a55b
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0
je 0x40a53b
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
push 1
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x34]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver_1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x78], eax
jmp 0x40a542
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x44], 1
jmp 0x40a562
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
jne 0x40a5c5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x40a5bd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
je 0x40a5b6
mov ecx, dword [ebp - 0x48]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov edx, 1
and edx, 1
test edx, edx
je 0x40a5ae
mov eax, dword [ebp - 0x48]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], ecx
jmp 0x40a5bd
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x40a7d3
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov edx, 1
test edx, edx
je 0x40a5e4
mov dword [ebp - 0x80], 0
jmp 0x40a625
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.00431930
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
push str.WaitInitialized:_Busy_i_Time_d_n
call fcn.00401b90
add esp, 0xc
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x80], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
jbe 0x40a6b0
mov ecx, dword [ebp - 0x14]
call fcn.00431930
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 4
je 0x40a6b0
mov eax, 1
test eax, eax
je 0x40a65f
mov dword [ebp - 0x90], 0
jmp 0x40a6a3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x54]
call fcn.00431930
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x94]
push edx
push str.WaitInitialized:_Busy_i_Time_d_n
call fcn.00401b90
add esp, 0xc
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x90], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a625
mov ecx, 1
test ecx, ecx
je 0x40a6c5
mov dword [ebp - 0x9c], 0
jmp 0x40a6f9
mov ecx, dword [ebp - 0x14]
call fcn.00431930
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
push edx
push 0x442b20
call fcn.00401b90
add esp, 8
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x14]
call fcn.00431930
mov dword [ebp - 0xa8], eax
xor ecx, ecx
cmp dword [ebp - 0xa8], 4
sete cl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x40a76a
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x40a760
mov ecx, dword [ebp - 0x58]
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, 1
and ecx, 1
test ecx, ecx
je 0x40a755
mov edx, dword [ebp - 0x58]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xac], eax
jmp 0x40a76a
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x20]
jmp 0x40a7d3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4