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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [ebp + 0xc]
push ebx
fld qword [ebp + 0x14]
push esi
mov esi, dword [eax + 0x1e]
push edi
mov dword [esp + 0x80], esi
call fcn.00496fa4
cmp eax, 0x7fff
jne 0x413f24
fild dword [esi + 0x92]
fstp qword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
push 1
push ecx
push ecx
mov ecx, esp
push edx
call fcn.00417280
lea eax, [esp + 0xa4]
push eax
call fcn.00460650
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
mov ebx, dword [esp + 0x44]
sub eax, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], ebx
cdq
sub eax, edx
mov dword [esp + 0x64], ecx
mov edi, eax
mov eax, dword [esp + 0x4c]
sub eax, ebx
mov ecx, dword [esi + 0x8e]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x92]
push eax
push ecx
sar edi, 1
sar ebx, 1
push esi
mov dword [esp + 0x98], edi
mov dword [esp + 0x80], ebx
call fcn.00414cb0
mov ecx, dword [esi + 0x86]
add esp, 0x1c
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x414058
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add edi, edx
lea edx, [esp + 0xb8]
add ecx, ebx
push edx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], eax
call fcn.00413c70
fild dword [esi + 0x8e]
fld qword [esp + 0xcc]
fcom st(1)
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x413ffc
fld st(0)
jmp 0x413ffe
fld st(1)
fild dword [esi + 0x92]
fstp qword [esp + 0x70]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x414027
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41402f
fstp st(0)
fld qword [esp + 0xc8]
jmp 0x41402f
fstp st(0)
fstp st(0)
fld qword [esp + 0x70]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x2c]
fst qword [esp + 0x68]
lea eax, [eax + eax*2]
fst qword [esp + 0x10]
lea eax, [ecx + eax*4]
lea edi, [eax + 8]
add eax, 0x14
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], eax
jmp 0x414076
fild dword [esi + 0x8e]
lea edx, [eax + 8]
add eax, 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], eax
fst qword [esp + 0x68]
fst qword [esp + 0x10]
mov edi, edx
fcomp qword [ebp + 0x14]
mov dword [esp + 0x4c], 1
fnstsw ax
test ah, 0x41
jne 0x414090
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4140c2
mov eax, dword [esi + 0x76]
push eax
call fcn.00497555
add esp, 4
call fcn.00496fa4
cmp eax, 0x64
jge 0x4140b4
mov eax, 0x64
jmp 0x4140dd
mov ecx, dword [esi + 0x76]
push ecx
call fcn.00497555
add esp, 4
jmp 0x4140d8
mov edx, dword [esi + 0x76]
mov eax, dword [0x4d6de4]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.00479e20
add esp, 0xc
call fcn.00496fa4
mov ecx, dword [esi + 0x7a]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x4140f7
cmp eax, 0x64
jge 0x414124
mov dword [esp + 0x1c], 0x64
jmp 0x414128
mov edx, dword [esp + 0x2c]
fild dword [edx + 4]
fild dword [esp + 0x1c]
fadd qword [0x4bd908]
fdivp st(1)
fmul qword [0x4bcfc0]
call fcn.00496fa4
cmp eax, 0x7fffffff
mov dword [esp + 0x1c], SysReAllocStringLen
jg 0x414128
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x92]
imul eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x8e]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fld qword [ebp + 0x14]
fsub qword [esp + 0x68]
sub ecx, edx
mov dword [esp + 0x20], ecx
fmulp st(1)
fild dword [esp + 0x20]
fdivp st(1)
call fcn.00496fa4
mov ebx, eax
cmp ebx, 0x927c0
mov dword [esp + 0x8c], ebx
jle 0x4141a4
push 0x24
push 0x1831
call fcn.00460300
add esp, 4
push eax
push 0x1830
call fcn.004602d0
mov edx, dword [ebp + 8]
add esp, 4
push eax
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x414727
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fild dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov byte [esp + 0xf], 0
mov byte [0x4d5a30], 1
fst qword [esp + 0x90]
fmul qword [esp + 0x68]
fstp qword [esp + 0xd0]
jmp 0x4141e7
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x8c]
fld qword [esp + 0x90]
fmul qword [esp + 0x10]
fcom qword [esp + 0xd0]
fnstsw ax
test ah, 1
jne 0x414711
fld qword [esp + 0x90]
fmul qword [ebp + 0x14]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x414713
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x88]
mov ecx, eax
sub ecx, edx
cmp ecx, ebx
mov dword [esp + 0x84], ecx
jg 0x414394
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x414270
mov eax, dword [esi + 0x92]
mov edx, dword [esi + 0x8e]
sub eax, edx
imul eax, ecx
imul eax, dword [esp + 0x4c]
cdq
idiv ebx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fadd qword [esp + 0x68]
fstp qword [esp + 0x10]
jmp 0x414280
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 0x92]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fstp qword [esp + 0x70]
fld qword [esp + 0x10]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x4142cd
cmp dword [esi + 0x82], 2
jne 0x4142cd
mov eax, dword [esi + 0x8e]
fld qword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
call fcn.004975ba
fiadd dword [esp + 0x20]
jmp 0x414331
cmp dword [esi + 0x82], 3
jne 0x414335
mov eax, dword [esi + 0x8e]
mov dword [esp + 0x20], eax
sub ecx, eax
fild dword [esp + 0x20]
mov dword [esp + 0x40], ecx
fstp qword [esp + 0x20]
fild dword [esp + 0x40]
fstp qword [esp + 0x40]
fld qword [esp + 0x10]
fsub qword [esp + 0x20]
fdiv qword [esp + 0x40]
call fcn.00496fa4
and eax, 0x80000001
jns 0x414313
dec eax
or eax, 0xfffffffe
inc eax
fld qword [esp + 0x10]
fld qword [esp + 0x40]
je 0x414328
call fcn.004975ba
fsubr qword [esp + 0x70]
jmp 0x414331
call fcn.004975ba
fadd qword [esp + 0x20]
fstp qword [esp + 0x10]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4143a7
push 1
push 0
push 0
lea ecx, [esp + 0xe8]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4143a7
cmp dword [esp + 0xe0], 0x201
jne 0x414376
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov byte [esp + 0xf], 1
lea ecx, [esp + 0xdc]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4143a7
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0xf], 1
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov ebx, dword [edx]
dec ebx
test ebx, ebx
jle 0x4143f8
mov eax, edx
lea edx, [eax + 0x1c]
fld dword [edx - 0xc]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x4143d4
fld dword [edx]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x4143de
inc ecx
add edx, 0xc
cmp ecx, ebx
jl 0x4143b9
jmp 0x4143f8
mov eax, dword [esp + 0x2c]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*4]
lea edx, [eax + 8]
add eax, 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], eax
mov edi, edx
fild dword [esi + 0x92]
fld qword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x414433
cmp dword [esi + 0x82], 1
jne 0x414433
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
add ecx, 0xfffffffe
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*4]
lea edx, [eax + 8]
add eax, 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], eax
mov edi, edx
cmp ecx, ebx
jne 0x414455
mov eax, dword [esi + 0x82]
test eax, eax
jne 0x414455
mov eax, dword [ebp + 0x10]
fstp qword [esp + 0x10]
cmp byte [eax + 4], 0x22
je 0x414457
mov byte [esp + 0xf], 1
jmp 0x414457
fstp st(0)
fld dword [edi + 8]
mov esi, dword [esp + 0x50]
mov eax, dword [edi]
fsubr qword [esp + 0x10]
fld dword [esi + 8]
fsub dword [edi + 8]
mov ecx, dword [esi]
mov dword [esp + 0x20], eax
sub ecx, eax
fadd qword [0x4bd908]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fmul st(2)
fdiv st(1)
fiadd dword [esp + 0x20]
fadd qword [0x4bd0b8]
call fcn.00496fa4
mov edx, dword [esi + 4]
mov ebx, eax
mov eax, dword [edi + 4]
sub edx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fmul st(2)
fdiv st(1)
fiadd dword [esp + 0x20]
fadd qword [0x4bd0b8]
call fcn.00496fa4
mov ecx, dword [esp + 0x7c]
mov edi, ebx
sub edi, ecx
mov ecx, dword [esp + 0x30]
fstp st(0)
mov esi, eax
mov eax, dword [esp + 0x34]
cmp edi, ecx
fstp st(0)
jne 0x4144ed
mov edx, esi
sub edx, dword [esp + 0x64]
cmp edx, eax
jne 0x4144ed
mov edx, dword [ebp + 0x10]
cmp byte [edx + 4], 0x22
jne 0x414703
mov edx, dword [esp + 0x64]
sub eax, esi
add eax, edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x80]
sub eax, ebx
add eax, ecx
push eax
push ecx
mov ecx, esp
push edx
call fcn.00417280
call fcn.00460da0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x60]
sub esi, edx
add esp, 0xc
sub esi, ecx
sub edi, ebx
lea eax, [esp + 0x54]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x10]
cmp byte [eax + 4], 0x22
jne 0x41457d
mov ecx, dword [eax + 0x1e]
mov esi, dword [eax + 0x26]
xor edi, edi
mov eax, dword [ecx + 0x28]
cmp eax, edi
je 0x414571
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv esi
mov ebx, eax
mov eax, dword [esp + 0x84]
cdq
idiv ebx
cdq
idiv esi
inc edx
mov dword [ecx + 4], edx
jmp 0x41457f
mov eax, dword [ecx + 4]
cdq
idiv esi
inc edx
mov dword [ecx + 4], edx
jmp 0x41457f
xor edi, edi
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jle 0x414670
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
cmp edx, eax
jge 0x414670
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jle 0x414670
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x414670
lea edx, [esp + 0x54]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0xac]
push eax
push ecx
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x98]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xb4]
push edi
push eax
push ecx
mov dword [esp + 0xb0], edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [0x4d5a20], edx
mov edx, dword [esp + 0x3c]
mov dword [0x4d5a24], eax
mov dword [0x4d5a28], ecx
mov dword [0x4d5a2c], edx
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x4d5a28], edi
mov dword [0x4d5a2c], edi
mov dword [0x4d5a24], edi
mov dword [0x4d5a20], edi
jmp 0x4146e3
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x30]
push edi
mov edx, dword [esi + 0x1c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [0x4d5a20], eax
mov eax, dword [esp + 0x3c]
mov dword [0x4d5a24], ecx
mov dword [0x4d5a28], edx
mov dword [0x4d5a2c], eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x4d5a28], edi
mov dword [0x4d5a2c], edi
mov dword [0x4d5a24], edi
mov dword [0x4d5a20], edi
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x54]
push edi
push edx
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov al, byte [esp + 0xf]
test al, al
je 0x4141d5
jmp 0x414713
fstp st(0)
mov eax, dword [esp + 0x2c]
mov byte [0x4d5a30], 0
push eax
call fcn.00496fcb
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret