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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x40e7a0
push 0x4a4910
push 0x4a7bec
mov ecx, 0x4cc518
call fcn.00430c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
cmp ecx, 5
ja case.0x40e7ad.1
jmp dword [ecx*4 + 0x40efc4]
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x40e7c1
mov esi, dword [eax + 0xc]
jmp 0x40e7c3
mov esi, eax
test byte [esi + 0x15], 8
je 0x40e7d0
mov eax, esi
call fcn.004011c0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x40e7e9
test byte [esi + 0x15], 4
je 0x40e7e4
mov eax, esi
call fcn.00431310
mov esi, dword [esi + 8]
jmp 0x40e806
cmp al, 2
jne 0x40e7f6
call fcn.00401060
mov esi, eax
jmp 0x40e806
mov esi, 0x4cc4d0
jmp 0x40e806
mov esi, dword [eax]
jmp 0x40e806
mov esi, 0x4a4910
mov eax, dword [ebp + 0x14]
test al, 2
je 0x40ea02
push 0x4a7c0c
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40e852
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 1
lea eax, [ecx + 8]
je 0x40e978
mov dword [ecx + 0x18], 0
mov ecx, dword [ecx + 0x14]
xor edx, edx
xor edi, edi
mov word [ecx], dx
call fcn.00435cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7bd0
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40e986
cmp edi, 1
jle 0x40e8b0
mov eax, dword [ebx + 4]
cmp dword [eax + 8], 3
je 0x40e8b0
push 0
push 1
call fcn.00451720
fmul qword [0x4c1f08]
fnstcw word [esp + 0x14]
add esp, 8
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x10], eax
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov eax, dword [esp + 0x10]
fldcw word [esp + 0xc]
mov dword [esp + 0xc], eax
jmp 0x40e8b8
mov dword [esp + 0xc], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 1
mov ebx, eax
jne 0x40e8ef
jmp 0x40e8d0
call edi
sub eax, ebx
cmp eax, dword [esp + 0xc]
jae 0x40e8ef
push 1
push 0x8000012f
call fcn.00401430
add esp, 8
cmp dword [esi + 8], 1
je 0x40e8d0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov esi, dword [esi + 8]
cmp esi, 6
ja case.0x40eab1.1
jmp dword [esi*4 + 0x40efdc]
mov eax, 0x4a7bdc
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x4a7c60
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x4ab350
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x4ae294
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x4ae2a8
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x4a4910
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c18
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40e9d5
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 1
jne 0x40e9c7
mov edx, dword [0x4cb558]
mov cl, byte [0x4cb555]
push 0
push eax
push 0x41b
push edx
mov byte [eax + 0x4c], cl
mov dword [eax], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c24
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40efb3
mov ecx, dword [ebp + 8]
dec edi
push edi
lea eax, [ebx + 4]
push ecx
call fcn.0040f030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, eax
and edi, 1
mov edx, 0
setne dl
inc edx
cmp dword [ebp + 0x1c], edx
jne 0x40e783
test al, 3
jne 0x40ec65
push 0x4a6964
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ea50
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x14]
call fcn.00451a10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c34
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ea8a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ecx + 8], esi
cmp dword [eax + 8], esi
sete dl
movzx eax, dl
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c4c
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40eacd
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 6
ja case.0x40eab1.1
jmp dword [eax*4 + 0x40eff8]
mov eax, 0x4a7c80
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c60
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40eb24
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax], 4
jne 0x40eb10
mov edx, dword [ecx + 4]
push 0
push 0x100
push edx
mov dword [ecx], edx
call fcn.004364e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ecx], 0x4a4910
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c70
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ec1e
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test byte [ecx + 0x54], 1
je 0x40eb62
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x5e
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 2
je 0x40eb7c
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x5e
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 4
je 0x40eb96
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x21
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 8
je 0x40ebb0
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x21
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x10
je 0x40ebca
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x2b
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x20
je 0x40ebe4
mov edx, 0x3e
mov word [eax], dx
mov edx, 0x2b
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x40
je 0x40ebfe
mov edx, 0x3c
mov word [eax], dx
mov edx, 0x23
mov word [eax + 2], dx
add eax, 4
test byte [ecx + 0x54], 0x80
je 0x40ec0d
mov dword [eax], 0x23003e
add eax, 4
xor ecx, ecx
mov word [eax], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7c80
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ec65
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 3
jne 0x40eb10
mov edx, dword [eax + 0x58]
cmp edx, dword [eax + 0x2c]
jae 0x40eb10
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx*4]
mov dword [ecx], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 2
push 0x4a730c
push esi
call fcn.0049115d
add esp, 0xc
test eax, eax
jne 0x40ed77
add esi, 4
push 0x4a4e84
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ec9d
mov esi, dword [ebp + 8]
add esi, 0x35c
jmp 0x40ecf6
push 0x4a7c8c
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ecba
mov esi, dword [ebp + 8]
add esi, 0x360
jmp 0x40ecf6
push 0x4a7c9c
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ecd7
mov esi, dword [ebp + 8]
add esi, 0x368
jmp 0x40ecf6
push 0x4a7ca8
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40efb3
mov esi, dword [ebp + 8]
add esi, 0x364
test edi, edi
je 0x40ed20
mov ecx, dword [ebx + 4]
call fcn.00451930
mov edi, eax
test edi, edi
je 0x40ed4e
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi]
test eax, eax
je 0x40ed1e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], edi
mov eax, dword [esi]
test eax, eax
je 0x40edb3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [ebp + 0xc]
mov esi, dword [esi]
mov dword [eax + 8], 6
mov dword [eax], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
call fcn.004515b0
test eax, eax
jne 0x40ed10
push 0x4a4910
push 0x4a7cb4
mov ecx, 0x4cc518
call fcn.00430c90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7cd4
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40edc1
mov esi, dword [ebp + 8]
test edi, edi
je 0x40ed9f
mov ecx, dword [ebx + 4]
push eax
call fcn.00451690
add esp, 4
mov byte [esi + 0x44], al
movzx eax, byte [esi + 0x44]
mov ecx, dword [ebp + 0xc]
cdq
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7bdc
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ee2b
mov esi, dword [ebp + 8]
test edi, edi
je 0x40ee08
push eax
mov eax, dword [ebx + 4]
push 1
call fcn.00451720
fmul qword [0x4c1f08]
add esp, 8
call fcn.0049f550
cmp dword [esi + 8], 1
mov dword [esi + 0x3c], eax
jne 0x40ee08
test eax, eax
jle 0x40ee08
lea eax, [esi + 8]
call fcn.00435f00
fild dword [esi + 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 2
fdiv qword [0x4c1f08]
fstp qword [eax]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x4a7cf0
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ee48
mov ebx, dword [ebp + 8]
add ebx, 0x45
jmp 0x40eecc
push 0x4a7d10
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ee62
mov ebx, dword [ebp + 8]
add ebx, 0x46
jmp 0x40eecc
push 0x4a7d2c
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ee7c
mov ebx, dword [ebp + 8]
add ebx, 0x4b
jmp 0x40eecc
push 0x4a7d48
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40ee96
mov ebx, dword [ebp + 8]
add ebx, 0x48
jmp 0x40eecc
push 0x4a7d60
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40eeb0
mov ebx, dword [ebp + 8]
add ebx, 0x49
jmp 0x40eecc
push 0x4a7d80
push esi
call fcn.00490f59
add esp, 8
test eax, eax
jne 0x40efb3
mov ebx, dword [ebp + 8]
add ebx, 0x4a
test ebx, ebx
je 0x40efb3
test edi, edi
je 0x40ef87
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 4]
push esi
call fcn.00451540
add esp, 4
dec eax
je 0x40ef8f
dec eax
mov eax, dword [esi + 8]
je 0x40ef3d
cmp eax, 6
je 0x40ef9f
cmp eax, 4
jne 0x40ef1b
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x40ef11
mov eax, dword [eax + 0xc]
test byte [eax + 0x15], 2
jne 0x40ef9f
xor ecx, ecx
mov eax, esi
call fcn.004517d0
xor ecx, ecx
cmp word [eax], cx
setne cl
mov eax, ecx
test eax, eax
setne al
mov byte [ebx], al
movzx eax, al
jmp 0x40eda3
dec eax
cmp eax, 5
ja case.0x40ef43.3
jmp dword [eax*4 + 0x40f014]
fild qword [esi]
jmp 0x40ef73
fld qword [esi]
jmp 0x40ef73
mov eax, dword [esi]
push 1
call fcn.00415710
jmp 0x40ef73
mov eax, dword [esi + 4]
test eax, eax
je case.0x40ef43.3
fild qword [eax]
jmp 0x40ef73
mov edx, dword [esi]
push edx
call fcn.00492aa2
add esp, 4
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x40ef9f
xor eax, eax
test eax, eax
setne al
mov byte [ebx], al
movzx eax, byte [ebx]
jmp 0x40eda3
push 1
mov ecx, esi
call fcn.00451690
add esp, 4
or eax, edx
je case.0x40ef43.6
mov eax, 1
test eax, eax
setne al
mov byte [ebx], al
movzx eax, al
jmp 0x40eda3
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18