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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x434801
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
push edi
xor edi, edi
cmp dword [ebp + 0x7c], edi
je 0x406d89
cmp word [ebp + 0x80], di
je 0x406d89
cmp dword [esp + 0x30], edi
je 0x406d89
push ebx
push esi
push 0x442f68
call fcn.004081f0
push 0x44
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
mov dword [esp + 0x38], esi
cmp esi, edi
mov dword [esp + 0x30], edi
je 0x406ac6
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x30], 3
mov dword [esi], edi
mov word [esi + 8], di
lea ecx, [esi + 0x14]
mov byte [esp + 0x30], 4
call fcn.00401d50
mov byte [esp + 0x30], 5
mov word [esi + 0x2c], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov word [esi + 0x40], di
mov word [esi + 0x42], di
mov byte [esp + 0x30], 0
jmp 0x406ac8
xor esi, esi
mov ecx, ebp
mov dword [esp + 0x30], 0xffffffff
call fcn.00404a60
mov ebx, eax
cmp ebp, edi
mov word [esi + 0x2c], bx
mov eax, dword [ebp + 0x7c]
mov dword [esi + 0x3c], eax
mov cx, word [ebp + 0x80]
mov word [esi + 0x40], cx
mov dword [esi + 0x38], 1
je 0x406afc
mov edi, dword [ebp + 0x20]
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [esi + 0x14]
push ebx
push 0xa
push edi
mov ecx, ebp
mov dword [esi + 0x30], eax
mov word [esi + 0x42], 0xa
call fcn.00406240
push edi
mov ecx, ebp
call fcn.00404a70
cmp dword [ebp + 0x90], 2
je 0x406c34
mov eax, dword [ebp + 0x70]
mov ecx, dword [0x445dfc]
mov word [esp + 0x18], bx
mov dword [esp + 0x1c], esi
mov edi, dword [eax + 4]
mov dword [esp + 0x10], eax
cmp edi, ecx
mov dl, 1
je 0x406b6e
cmp bx, word [edi + 0xc]
mov dword [esp + 0x10], edi
setb dl
test dl, dl
je 0x406b63
mov edi, dword [edi]
jmp 0x406b66
mov edi, dword [edi + 8]
cmp edi, ecx
jne 0x406b50
mov eax, dword [esp + 0x10]
mov bl, byte [ebp + 0x74]
lea ecx, [ebp + 0x6c]
test bl, bl
je 0x406b99
lea edx, [esp + 0x38]
mov byte [esp + 0x38], 1
push edx
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004074e0
push eax
jmp 0x406c2b
test dl, dl
mov dword [esp + 0x14], eax
je 0x406bec
lea edx, [esp + 0x38]
push edx
call fcn.00406fe0
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
cmp ecx, edx
sete al
test al, al
je 0x406bdf
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
lea ecx, [ebp + 0x6c]
mov byte [esp + 0x4c], 1
call fcn.004074e0
push eax
jmp 0x406c2b
lea ecx, [esp + 0x14]
call fcn.004077d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dx, word [ecx + 0xc]
cmp dx, word [esp + 0x18]
jae 0x406c1c
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [ebp + 0x6c]
mov byte [esp + 0x4c], 1
call fcn.004074e0
push eax
jmp 0x406c2b
lea ecx, [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
mov byte [esp + 0x3c], 0
push edx
lea ecx, [esp + 0x28]
call fcn.00407440
push 0x2c
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
test edi, edi
mov dword [esp + 0x30], 6
je 0x406ca5
lea ebx, [edi + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ebx + 4]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebx + 0xc]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebx + 0x10]
mov byte [esp + 0x30], 8
call sub.MFC42.DLL_CString::CString_4
xor eax, eax
mov byte [esp + 0x30], 9
mov dword [ebx], eax
mov word [ebx + 8], ax
mov byte [esp + 0x30], 0xa
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov word [edi + 0x10], ax
mov word [edi + 0x28], ax
mov byte [esp + 0x30], 6
jmp 0x406ca7
xor edi, edi
mov eax, dword [esi + 0x34]
or ebx, 0xffffffff
mov dword [esp + 0x30], ebx
mov dword [edi], eax
mov ecx, dword [esi + 0x3c]
push 0x18
mov dword [edi + 0xc], ecx
mov dx, word [esi + 0x40]
mov word [edi + 0x10], dx
mov eax, dword [esi + 0x38]
mov dword [edi + 8], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov dword [esp + 0x30], 0xb
je 0x406cea
mov ecx, eax
call fcn.00401d50
jmp 0x406cec
xor eax, eax
mov dword [esp + 0x30], ebx
lea ebx, [esi + 0x14]
mov ecx, ebx
mov dword [edi + 4], eax
call fcn.004020a0
push eax
mov ecx, ebx
call fcn.00402090
mov ecx, dword [edi + 4]
push eax
call fcn.00401e80
mov ecx, dword [ebp + 0x90]
lea edx, [ebp + 0x94]
mov dword [edi + 0x14], ecx
push edx
lea ecx, [edi + 0x18]
call fcn.0043237c
mov ax, word [ebp + 0x98]
lea ecx, [ebp + 0x9c]
push ecx
lea ecx, [edi + 0x20]
mov word [edi + 0x1c], ax
call fcn.0043237c
lea edx, [ebp + 0xa0]
lea ecx, [edi + 0x24]
push edx
call fcn.0043237c
mov ax, word [esi + 0x42]
pop esi
pop ebx
mov word [edi + 0x28], ax
mov eax, dword [ebp + 0x90]
push 0
push 0
push 0
cmp eax, 2
push 0
push edi
jne 0x406d74
push 0x4021a0
jmp 0x406d79
push 0x4033f0
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
je 0x406d89
mov dword [eax + 0x28], 1
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4