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

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x100851cb
call fcn.1005ccdc
mov eax, dword [0x10161380]
sub esp, 0x260
cmp byte [eax + 0x2d3], 0
je 0x10040ed1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1041349c]
je 0x10040ed0
call esi
mov dword [0x1041349c], eax
call fcn.100458a6
mov eax, dword [0x10161380]
xor esi, esi
cmp dword [eax + 0x2bc], 0x7d0
jl 0x10040cc4
mov dword [eax + 0x2bc], esi
push 0x3f
lea eax, [ebp]
push esi
push eax
call fcn.1005f5c0
mov ecx, dword [0x1040b878]
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0xc6]
movss dword [ebp + 0x30], xmm0
mov eax, dword [ecx + 0x1e]
mov ax, word [eax + 0x96]
mov word [ebp], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ecx + 0x1e]
mov eax, dword [eax]
mov eax, dword [eax + 0x2a4]
mov eax, dword [eax + 0x14]
add eax, 0x30
push eax
call fcn.1003fa70
mov ecx, dword [0x1040b878]
add esp, 0x14
mov eax, dword [ecx + 0x1e]
mov eax, dword [eax]
mov eax, dword [eax + 0x2a4]
cvttss2si eax, dword [eax + 0x540]
mov byte [ebp + 0x34], al
mov eax, dword [ecx + 0x1e]
mov eax, dword [eax]
mov eax, dword [eax + 0x2a4]
cvttss2si eax, dword [eax + 0x548]
mov byte [ebp + 0x35], al
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0xba]
movss dword [ebp + 0x24], xmm0
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0xbe]
movss dword [ebp + 0x28], xmm0
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0xc2]
movss dword [ebp + 0x2c], xmm0
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0x9e]
movss dword [ebp + 8], xmm0
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0xa2]
movss dword [ebp + 0xc], xmm0
mov eax, dword [ecx + 0x1e]
movss xmm0, dword [eax + 0xa6]
movss dword [ebp + 0x10], xmm0
mov eax, dword [ecx + 0x1e]
lea ecx, [ebp - 0x26c]
movss xmm0, dword [eax + 0xaa]
mov eax, dword [0x10161380]
movss dword [ebp + 0x14], xmm0
mov ax, word [eax + 0x2bc]
mov word [ebp + 0x39], ax
call fcn.1000157d
push 1
push 8
lea eax, [ebp + 0x40]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp + 0x40], 0xc8
call fcn.100017f3
push 0x3f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x26c]
call fcn.100017a2
mov ecx, dword [0x1040b858]
lea eax, [ebp - 0x26c]
push esi
push 7
push 1
push eax
call fcn.100400fd
xorps xmm0, xmm0
mov eax, dword [0x10161380]
lea ecx, [ebp - 0x158]
movlpd qword [ebp - 0x36], xmm0
movlpd qword [ebp - 0x2e], xmm0
movlpd qword [ebp - 0x26], xmm0
movlpd qword [ebp - 0x1a], xmm0
movss xmm0, dword [ebp + 0x18]
subss xmm0, dword [0x1008afe4]
mov ax, word [eax + 0x2bc]
mov word [ebp - 0x44], ax
mov dword [ebp - 0x12], 0x3c23d70a
mov dword [ebp - 0x1e], 0xbc23d70a
movss dword [ebp - 0x42], xmm0
movss xmm0, dword [ebp + 0x1c]
movss dword [ebp - 0x3e], xmm0
movss xmm0, dword [ebp + 0x20]
movss dword [ebp - 0x3a], xmm0
call fcn.1000157d
push 1
push 8
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp + 0x40], 0xd2
call fcn.100017f3
push 0x36
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x158]
call fcn.100017a2
mov ecx, dword [0x1040b858]
lea eax, [ebp - 0x158]
push esi
push 7
push 1
push eax
call fcn.100400fd
lea ecx, [ebp - 0x158]
call fcn.10001598
lea ecx, [ebp - 0x26c]
call fcn.10001598
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x44
leave
ret