Function at 0x414730
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x1e]
push edi
lea ecx, [esp + 0x38]
push 1
push ecx
push ecx
mov ecx, esp
push edx
call fcn.00417280
lea eax, [esp + 0x84]
push eax
call fcn.00460650
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x4c]
sub eax, ecx
cdq
sub eax, edx
mov dword [esp + 0x38], ecx
mov ebx, eax
mov eax, ebp
sub eax, edi
mov dword [esp + 0x3c], edi
cdq
mov dword [esp + 0x44], ebp
mov ecx, dword [esi + 0x92]
sub eax, edx
mov edx, dword [esi + 0x8e]
mov ebp, eax
push ecx
sar ebx, 1
sar ebp, 1
push edx
push esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x64], ebp
call fcn.00414cb0
mov ecx, dword [esi + 0x8e]
mov edi, eax
mov eax, dword [esi + 0x92]
add esp, 0x1c
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
fild dword [esp + 0x10]
sub ebx, eax
add ebx, ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x10], ebx
sub ecx, eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
fdivp st(1)
fadd dword [edi + 0x10]
call fcn.00496fa4
mov edx, dword [esi + 0x9e]
mov ecx, dword [esi + 0x9a]
sub edx, ecx
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x10], edx
sub ecx, eax
fild dword [esp + 0x10]
add ecx, ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ebx
fstp qword [esp + 0x4c]
fild dword [esp + 0x10]
fmul qword [esp + 0x4c]
mov edx, dword [edi + 0x18]
sub edx, eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fdivp st(1)
fadd dword [edi + 0x10]
call fcn.00496fa4
fld st(0)
fmulp st(1)
fld qword [esp + 0x4c]
fld st(0)
fmul st(1)
mov ebp, eax
mov eax, dword [esp + 0xb8]
test eax, eax
fadd st(2)
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x20], ebp
fsqrt
fild dword [edi + 4]
fadd qword [0x4bd908]
fstp st(3)
fxch st(2)
fdivp st(2)
fxch st(1)
fstp qword [esp + 0x4c]
fstp st(0)
je 0x4148bb
mov eax, dword [esi + 0x76]
push eax
call fcn.00497555
add esp, 4
call fcn.00496fa4
cmp eax, 0x64
jge 0x4148ad
mov dword [esp + 0x18], 0x64
jmp 0x4148de
mov ecx, dword [esi + 0x76]
push ecx
call fcn.00497555
add esp, 4
jmp 0x4148d5
mov edx, dword [esi + 0x76]
mov eax, dword [0x4d6de4]
mov ecx, dword [esp + 0x9c]
push edx
push eax
push ecx
call fcn.00479e20
add esp, 0xc
call fcn.00496fa4
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7a], 1
jne 0x4148ea
fild dword [esp + 0x18]
jmp 0x41491c
fild dword [edi + 4]
fild dword [esp + 0x18]
fadd qword [0x4bd908]
fdivp st(1)
fmul qword [0x4bcfc0]
fld st(0)
fstp qword [esp + 0x60]
fld qword [0x4bd910]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x41491c
fstp st(0)
fld qword [0x4bd910]
fild dword [esp + 0x5c]
fsubr qword [esp + 0xb0]
fst qword [esp + 0x60]
fild dword [esp + 0x58]
fsubr qword [esp + 0xa8]
fst qword [esp + 0x70]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fxch st(3)
fmul qword [esp + 0x4c]
fdivp st(3)
fxch st(2)
fmul qword [0x4bcfc0]
call fcn.00496fa4
fxch st(1)
fstp st(0)
cmp eax, 0x927c0
mov dword [esp + 0x18], eax
fstp st(0)
jle 0x4149a4
push 0x24
push 0x1831
call fcn.00460300
add esp, 4
push eax
push 0x1830
call fcn.004602d0
mov edx, dword [esp + 0xa8]
add esp, 4
push eax
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x414ca4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
jmp 0x4149c2
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
sub eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x414a43
fild dword [esp + 0x24]
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x40
jne 0x414a09
fild dword [esp + 0x10]
fmul qword [esp + 0x70]
fidiv dword [esp + 0x18]
call fcn.00496fa4
add eax, ebx
mov dword [esp + 0x24], eax
jmp 0x414a0e
mov byte [esp + 0x17], 1
fild dword [esp + 0x20]
fcomp qword [esp + 0xb0]
fnstsw ax
test ah, 0x40
jne 0x414a39
fild dword [esp + 0x10]
fmul qword [esp + 0x60]
fidiv dword [esp + 0x18]
call fcn.00496fa4
add eax, ebp
mov dword [esp + 0x20], eax
jmp 0x414a68
mov al, byte [esp + 0x17]
test al, al
je 0x414a68
jmp 0x414a63
fld qword [esp + 0xa8]
call fcn.00496fa4
fld qword [esp + 0xb0]
mov dword [esp + 0x24], eax
call fcn.00496fa4
mov dword [esp + 0x20], eax
mov byte [esp + 0x16], 1
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x14]
mov eax, dword [esi + 0x8e]
mov dword [esp + 0x1c], ecx
sub edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x92]
fild dword [esp + 0x10]
sub ecx, eax
sub edx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmulp st(1)
fild dword [esp + 0x10]
fdivp st(1)
fiadd dword [esp + 0x1c]
call fcn.00496fa4
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x18]
mov ebp, eax
mov eax, dword [esi + 0x9a]
mov dword [esp + 0x10], ecx
sub edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
mov edx, dword [esi + 0x9e]
sub ecx, eax
mov dword [esp + 0x1c], ecx
sub edx, eax
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x68], ebp
fmulp st(1)
fild dword [esp + 0x1c]
fdivp st(1)
fiadd dword [esp + 0x10]
call fcn.00496fa4
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [esp + 0x3c]
sub ebp, ecx
mov ecx, dword [esp + 0x38]
cmp ebp, ecx
jne 0x414b1a
mov edx, ebx
sub edx, dword [esp + 0x48]
cmp edx, eax
je 0x414c98
mov edx, dword [esp + 0x48]
sub eax, ebx
add eax, edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x58]
sub eax, edx
mov edx, dword [esp + 0xa8]
add eax, ecx
push eax
push ecx
mov ecx, esp
push edx
call fcn.00417280
call fcn.00460da0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
sub ebx, eax
mov eax, dword [esp + 0x34]
add esp, 0xc
sub ebx, edx
sub ebp, eax
lea eax, [esp + 0x28]
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0xa4]
cmp byte [eax + 4], 0x22
jne 0x414ba5
mov ecx, dword [eax + 0x1e]
mov ebx, dword [eax + 0x26]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x414b9b
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv ebx
mov ebp, eax
mov eax, dword [esp + 0x4c]
cdq
idiv ebp
jmp 0x414b9e
mov eax, dword [ecx + 4]
cdq
idiv ebx
inc edx
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jle 0x414c3d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
cmp edx, eax
jge 0x414c3d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jle 0x414c3d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
cmp ecx, eax
jge 0x414c3d
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x78]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x94]
push 0
push eax
push ecx
mov dword [esp + 0x90], edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x414c6e
mov ebx, dword [esp + 0x9c]
mov ebp, dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [esp + 0x38]
push 0
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x28]
push 0
push eax
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x16]
test al, al
je 0x4149ba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret