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

Disassembly:
push 0xffffffffffffffff
push 0x4838d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a1620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
test byte [0x4a5e90], 1
lea ebp, [ebx + 1]
jne 0x4204f9
or dword [0x4a5e90], ebp
call fcn.0044bb76
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4204db
push 0x80004005
call fcn.004012e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x483e70
mov dword [0x4a5e8c], eax
call fcn.004666db
add esp, 4
mov eax, dword [0x4a5e88]
add eax, ebp
cmp eax, 0x1e
mov dword [0x4a5e88], eax
jne 0x420579
cmp dword [edi + 0x47f8], ebx
jne 0x420588
fild dword [edi + 0x4810]
mov esi, edi
mov dword [edi + 0x334], ebp
fstp dword [0x4a5e84]
fild dword [edi + 0x4814]
fstp dword [0x4a5e80]
call fcn.004203f0
mov dword [0x4a5e7c], ebx
mov dword [0x4a5e78], ebx
mov dword [0x4a5e74], ebx
mov dword [edi + 0x33c], ebx
mov dword [edi + 0x340], ebx
mov dword [edi + 0x344], ebx
mov dword [edi + 0x320], ebx
mov dword [edi + 0x328], ebx
mov dword [edi + 0x358], ebx
mov dword [edi + 0x35c], ebx
mov dword [edi + 0x36c], ebp
cmp dword [0x4a5e88], 0x1e
jle 0x420588
mov dword [0x4a5e88], ebx
cmp byte [0x4a5e70], bl
jne case.default.0x42080d
cmp dword [edi + 0x36c], ebx
jle case.default.0x42080d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [edi + 0x36c]
mov dword [0x4a5e6c], eax
lea eax, [esi - 1]
cmp eax, 0xe
mov byte [0x4a5e70], 1
ja case.default.0x42080d
jmp dword [eax*4 + 0x420e28]
push 0x46d
lea ecx, [edi + 0x7b8]
call fcn.004456c3
call fcn.00436eb0
test eax, eax
je 0x420605
add dword [edi + 0x36c], ebp
mov dword [0x4a5e68], 0x1b58
mov dword [0x4a5e64], ebx
mov byte [0x4a5e60], bl
jmp case.default.0x42080d
push ebp
push 0x430
mov ecx, edi
mov dword [edi + 0x36c], ebx
call fcn.004456c3
mov ecx, eax
call fcn.00445896
push ebp
push 0x431
mov ecx, edi
call fcn.004456c3
mov ecx, eax
call fcn.00445896
push ebp
push 0x4ab
mov ecx, edi
call fcn.004456c3
mov ecx, eax
call fcn.00445896
push 0x48d744
lea ecx, [edi + 0x4a8c]
mov dword [edi + 0x334], ebx
call fcn.00401830
mov ecx, dword [edi + 0x4a54]
push ebp
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [edi + 0x48a8], 0x64
jmp case.default.0x42080d
mov esi, dword [edi + 0xbc]
push 0x98
push 8
push 0x1c
mov ecx, 0xc454c4
call fcn.00402570
add esp, 0xc
cmp eax, ebp
jne 0x4206b0
add dword [edi + 0x36c], ebp
mov dword [edi + 0x48bc], 0x3e8
jmp case.default.0x42080d
add dword [edi + 0x36c], 4
jmp case.default.0x42080d
fild dword [edi + 0x4814]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [edi + 0x4810]
fstp dword [esp + 8]
fld dword [0x492154]
fstp dword [esp + 4]
fld dword [0x492150]
fstp dword [esp]
call fcn.0040c560
cmp eax, 6
jge 0x420708
add esi, 1
mov dword [edi + 0x36c], esi
mov dword [edi + 0x48bc], 0xbb8
jmp case.default.0x42080d
add esi, 3
mov dword [edi + 0x36c], esi
jmp case.default.0x42080d
xor edx, edx
cmp dword [edi + 0x4818], 0xae
setg dl
cmp edx, 0xb1
jge case.default.0x42080d
add esi, 1
mov dword [edi + 0x36c], esi
mov dword [edi + 0x48bc], 0x1388
jmp case.default.0x42080d
fild dword [edi + 0x4814]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [edi + 0x4810]
fstp dword [esp + 8]
fld dword [0x492174]
fstp dword [esp + 4]
fld dword [0x492170]
fstp dword [esp]
call fcn.0040c560
mov ecx, dword [0x4a5e64]
mov ebp, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
jne 0x4207c3
fldz
sub esp, 0xc
fstp dword [esp + 8]
mov esi, edi
fld dword [0x492174]
mov dword [0x4a5e64], ebx
fstp dword [esp + 4]
fld dword [0x492170]
fstp dword [esp]
call fcn.00410f70
mov eax, 1
add dword [0x4a5e64], eax
cmp ebp, 3
jge case.default.0x42080d
add dword [edi + 0x36c], eax
jmp case.default.0x42080d
push 0x470
lea ecx, [edi + 0x7b8]
call fcn.004456c3
call fcn.00436eb0
test eax, eax
je 0x42089c
mov eax, dword [0x4a5e7c]
cmp eax, 4
ja case.default.0x42080d
jmp dword [eax*4 + 0x420e64]
push 0x4036
mov ebx, edi
call fcn.0041ae00
cmp eax, 0xffffffff
jne 0x42082f
push 0x3658
call fcn.0041ae00
add dword [0x4a5e7c], 1
mov dword [0x4a5e68], 0xbb8
jmp case.default.0x42080d
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x48ed90
call fcn.004014f0
call fcn.004119a0
cmp eax, ebx
je case.0x42080d.0
add dword [0x4a5e7c], ebp
jmp case.default.0x42080d
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x48ed9c
call fcn.004014f0
call fcn.004119a0
cmp eax, ebx
jne 0x42085f
push 0x4035
mov ebx, edi
call fcn.0041ae00
cmp eax, 0xffffffff
jne 0x42082f
push 0x3657
jmp 0x42082a
add dword [edi + 0x36c], ebp
mov dword [0x4a5e68], 0x1f4
jmp case.default.0x42080d
push 0x417
lea ecx, [edi + 0x7b8]
call fcn.004456c3
call fcn.00436eb0
test eax, eax
je 0x42089c
mov ecx, dword [edi + 0x4878]
mov esi, dword [edi + 0xbc]
push 0x49c
call fcn.004024d0
add esp, 4
test eax, eax
jne case.0x42080d.4
push 0x4a5e8c
lea eax, [edi + 0xeb4]
call fcn.004445a0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4a5e8c
call fcn.004021e0
mov ecx, edi
call fcn.0041a3a0
mov dword [0x4a5e68], 0x1b58
jmp case.default.0x42080d
cmp dword [edi + 0x47ec], ebx
je 0x420944
call fcn.0041af10
add dword [edi + 0x36c], ebp
mov dword [0x4a5e68], 0x7d0
jmp case.default.0x42080d
mov esi, dword [edi + 0xbc]
push 0x264
push 0x28
push 0x1c
mov ecx, 0xc454c4
call fcn.00402570
mov esi, eax
add esp, 0xc
mov eax, edi
call fcn.0041e3e0
cmp esi, eax
je 0x42099c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
push ebx
shl esi, 0x10
shr ecx, 0x10
push ecx
or esi, 2
push esi
push 6
mov esi, edi
call fcn.00415a20
mov dword [0x4a5e68], 0x7d0
jmp case.default.0x42080d
add dword [edi + 0x36c], ebp
mov dword [0x4a5e68], 0x5dc
jmp case.default.0x42080d
cmp dword [edi + 0x47ec], ebp
jne 0x420b3b
mov esi, dword [edi + 0xbc]
push 0x98
push 8
push 0x1c
mov ecx, 0xc454c4
call fcn.00402570
add esp, 0xc
sub eax, 5
je 0x420acf
sub eax, 3
je 0x420a63
sub eax, 2
je 0x4209f7
add dword [edi + 0x36c], ebp
jmp case.default.0x42080d
fild dword [edi + 0x4814]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [edi + 0x4810]
fstp dword [esp + 8]
fld dword [0x49216c]
fstp dword [esp + 4]
fld dword [0x492168]
fstp dword [esp]
call fcn.0040c560
cmp eax, 2
jge 0x420a36
add dword [edi + 0x36c], ebp
jmp case.default.0x42080d
fld dword [0x49216c]
push ebx
sub esp, 8
fstp dword [esp + 4]
mov esi, edi
fld dword [0x492168]
fstp dword [esp]
call fcn.00410ed0
mov dword [0x4a5e68], 0x3e8
jmp case.default.0x42080d
fild dword [edi + 0x4814]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [edi + 0x4810]
fstp dword [esp + 8]
fld dword [0x492164]
fstp dword [esp + 4]
fld dword [0x492160]
fstp dword [esp]
call fcn.0040c560
cmp eax, 2
jge 0x420aa2
add dword [edi + 0x36c], ebp
jmp case.default.0x42080d
fld dword [0x492164]
push ebx
sub esp, 8
fstp dword [esp + 4]
mov esi, edi
fld dword [0x492160]
fstp dword [esp]
call fcn.00410ed0
mov dword [0x4a5e68], 0x3e8
jmp case.default.0x42080d
fild dword [edi + 0x4814]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [edi + 0x4810]
fstp dword [esp + 8]
fld dword [0x49215c]
fstp dword [esp + 4]
fld dword [0x492158]
fstp dword [esp]
call fcn.0040c560
cmp eax, 2
jge 0x420b0e
add dword [edi + 0x36c], ebp
jmp case.default.0x42080d
fld dword [0x49215c]
push ebx
sub esp, 8
fstp dword [esp + 4]
mov esi, edi
fld dword [0x492158]
fstp dword [esp]
call fcn.00410ed0
mov dword [0x4a5e68], 0x3e8
jmp case.default.0x42080d
add esi, 1
mov dword [edi + 0x36c], esi
jmp case.default.0x42080d
cmp dword [edi + 0x47ec], ebp
jne 0x420b3b
mov eax, edi
call fcn.0041e430
test eax, eax
jne case.0x42080d.4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x64
push 3
mov esi, edi
call fcn.00415a20
mov dword [0x4a5e68], 0x1388
jmp case.default.0x42080d
cmp dword [edi + 0x47ec], ebp
jne case.0x42080d.4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x2000000
push 0x3000000
push 0x67
push 0xf
mov esi, edi
call fcn.00415a20
mov dword [0x4a5e68], 0x1f4
add dword [edi + 0x36c], ebp
jmp case.default.0x42080d
cmp dword [edi + 0x47ec], ebp
jne 0x420b3b
mov eax, edi
call fcn.0041e430
mov esi, eax
mov eax, edi
call fcn.0041e3e0
cmp esi, eax
jne 0x420bf1
add dword [edi + 0x36c], ebp
mov dword [0x4a5e68], 0x3e8
jmp case.default.0x42080d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, edi
call fcn.0041e430
shr eax, 0x10
push eax
mov eax, edi
call fcn.0041e430
shl eax, 0x10
or eax, 2
push eax
push 6
mov esi, edi
call fcn.00415a20
jmp case.default.0x42080d
push 0x432
lea ecx, [edi + 0x7b8]
call fcn.004456c3
call fcn.00436eb0
test eax, eax
je 0x420da4
lea ecx, [esp + 0x1c]
call fcn.00402440
lea edx, [esp + 0x1c]
push edx
lea eax, [edi + 0xf40]
mov dword [esp + 0x34], ebx
call fcn.004445a0
mov eax, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x10
push eax
push 0x28
push 0x1c
mov ecx, 0xc454c4
call fcn.00402610
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x24], eax
jle 0x420d9b
xor ebp, ebp
lea ebx, [ebx]
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 4
push ebp
push ecx
call fcn.004027b0
add esp, 0xc
cmp eax, 0x34
jne 0x420cf3
mov edx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 0x60
push ebp
push edx
call fcn.004027b0
add esp, 0xc
add eax, 4
push eax
lea ecx, [esp + 0x24]
mov edx, edi
call fcn.00419e70
mov byte [esp + 0x30], 1
or dword [esp + 0x18], 1
push 0x48e018
mov ecx, eax
call fcn.00405570
test eax, eax
mov byte [esp + 0x17], 1
je 0x420cf8
mov byte [esp + 0x17], 0
mov dword [esp + 0x30], 0
test byte [esp + 0x18], 1
je 0x420d15
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x20]
call fcn.004010b0
cmp byte [esp + 0x17], 0
jne 0x420d2e
add ebx, 1
add ebp, 4
cmp ebx, dword [esp + 0x24]
jl 0x420c90
jmp 0x420d96
mov ecx, dword [edi + 0x2e8]
mov esi, dword [edi + 0xbc]
push 8
lea eax, [ebx*4]
push eax
push ecx
call fcn.004027b0
mov edx, dword [esp + 0x28]
mov esi, eax
add esp, 0xc
shl esi, 0x10
push edx
or esi, ebx
call fcn.004669bd
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
sub eax, 1
shl eax, 0x10
push eax
push 0x30000
push esi
push 0x1000071
push 0x12
mov esi, edi
call fcn.00415a20
mov dword [0x4a5e68], 0x1770
mov ebp, 1
lea ecx, [esp + 0x1c]
call fcn.004010b0
add dword [edi + 0x36c], ebp
jmp case.default.0x42080d
push 0x46d
lea ecx, [edi + 0x7b8]
call fcn.004456c3
call fcn.00436eb0
test eax, eax
je case.default.0x42080d
mov dword [edi + 0x36c], ebx
mov dword [edi + 0x334], ebx
mov dword [edi + 0x330], ebp
mov dword [edi + 0x48a8], 0xfffffffb
mov dword [edi + 0x48bc], ebx
mov dword [edi + 0x48b0], ebx
mov byte [edi + 0x48c0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4a5e6c]
cmp eax, dword [0x4a5e68]
jl 0x420e0f
mov byte [0x4a5e70], 0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret