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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4348ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xa0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString_4
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0x1c
mov byte [ebp - 4], 2
cmp dword [ebp + 0x14], 0
je 0x40e5ac
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 0x60
call fcn.00431320
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x90]
cmp dword [edx + 0x5c], 0x2580
jae 0x40e593
mov ecx, dword [ebp - 0x90]
mov eax, 0x2580
xor edx, edx
div dword [ecx + 0x5c]
shl eax, 1
mov dword [ebp - 0x20], eax
jmp 0x40e59a
mov dword [ebp - 0x20], 2
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x90]
add ecx, 0x60
call fcn.00431300
cmp dword [ebp + 0x14], 0
jne 0x40e5c9
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x90]
add ecx, 0x60
call fcn.00431370
jmp 0x40e605
cmp dword [ebp + 0x14], 0
jle 0x40e5d7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
jmp 0x40e605
mov ecx, dword [ebp - 0x20]
imul ecx, dword [ebp + 0xc]
cmp ecx, 2
jbe 0x40e5f2
mov edx, dword [ebp - 0x20]
imul edx, dword [ebp + 0xc]
mov dword [ebp - 0x94], edx
jmp 0x40e5fc
mov dword [ebp - 0x94], 2
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x44], eax
jmp 0x40e695
mov dword [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
jne 0x40e81d
mov byte [ebp - 4], 5
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
cmp dword [ebp + 0xc], 0
jne 0x40e6cc
mov dword [ebp + 0xc], 0x2710
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp + 0xc]
jae 0x40e787
push 1
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp - 0x90]
add ecx, 0x60
call fcn.004310d0
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x60], 0
jbe 0x40e760
movsx edx, byte [ebp + 0x10]
movsx eax, byte [ebp - 0x68]
cmp eax, edx
jne 0x40e721
jmp 0x40e787
push 1
mov cl, byte [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x48]
call fcn.004328ca
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x44], 0
je 0x40e782
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x44]
jbe 0x40e782
jmp 0x40e787
jmp 0x40e6d5
jmp 0x40e816
mov dword [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0x7c]
or ecx, 1
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10