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

Disassembly:
mov eax, 0x619a40
call fcn.0044c164
sub esp, 0xb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [0x6b21a4]
mov dword [ebp - 0x24], eax
mov eax, dword [0x68690c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6b21a8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
call fcn.004f81a7
test ax, ax
je 0x4f8875
mov eax, dword [0x6b21dc]
cmp eax, ebx
je 0x4f827d
call eax
test ax, ax
jne 0x4f8875
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov word [ebp - 0x54], bx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f7b6e
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [0x6b21ac]
cmp eax, dword [0x6b21d0]
jae 0x4f82ea
cmp dword [ebp - 0x14], ebx
jne 0x4f830f
call fcn.004f8887
cmp eax, ebx
je 0x4f8875
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x18], ebx
mov ecx, dword [0x6b21b8]
mov dword [eax + 0x1c], ecx
inc dword [0x6b21b8]
dec dword [eax + 0x24]
jmp 0x4f830f
cmp dword [ebp - 0x14], ebx
je 0x4f830f
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], ebx
jne 0x4f830f
cmp word [0x6b21e0], bx
jne 0x4f830f
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f7bbc
add esp, 0xc
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f7b6e
add esp, 0xc
test eax, eax
je 0x4f8366
mov eax, dword [0x6b219c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x686910]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6b2188]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
jl 0x4f8875
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f7b6e
add esp, 0xc
test eax, eax
jne 0x4f8875
mov word [0x6b21e4], 1
fld dword [ebp - 0x20]
fcomp dword [0x686908]
fnstsw ax
sahf
jbe 0x4f837c
xor ax, ax
jmp 0x4f886c
mov eax, dword [0x6b21c8]
push 1
pop esi
cmp eax, ebx
mov word [0x6b21bc], si
je 0x4f8393
push esi
call eax
pop ecx
mov dword [ebp - 4], ebx
call fcn.00593582
mov dword [ebp - 0x6c], eax
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x74]
mov dword [eax], ecx
mov dword [ebp - 0x70], 0x593563
mov byte [ebp - 4], 1
mov dword [ebp + 8], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.005076c2
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], ebx
je 0x4f83e0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
cmp word [eax + 0x3e], si
jne 0x4f83e0
mov eax, dword [ebp - 0x18]
or dword [eax + 0x24], esi
push dword [ebp - 0x18]
call fcn.005105f0
cmp ax, bx
pop ecx
jne 0x4f877f
mov eax, dword [ebp - 0x18]
mov dword [0x6b21f0], eax
call fcn.0059d186
cmp word [ebp - 0x54], bx
mov dword [ebp - 0x48], eax
jne 0x4f877f
cmp dword [0x6b21c0], ebx
je 0x4f877f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x18]
call fcn.00507d14
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0059bbcd
fstp dword [ebp - 0x30]
pop ecx
fld dword [ebp - 0x20]
fmul dword [ebp - 0x30]
call fcn.0044d7bc
push dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.0059bbcd
fstp dword [ebp + 0xc]
pop ecx
fld dword [ebp - 0x20]
fmul dword [ebp + 0xc]
call fcn.0044d7bc
cmp word [ebp - 0x54], bx
mov edi, eax
jne 0x4f877f
cmp dword [0x6b21c0], ebx
je 0x4f877f
cmp word [0x6b21e0], bx
jne 0x4f877f
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x18]
call fcn.00511433
pop ecx
pop ecx
fld dword [ebp - 0x20]
push ecx
fstp dword [esp]
call fcn.0059bbe3
pop ecx
mov esi, eax
fld dword [ebp - 0x20]
push ecx
fstp dword [esp]
call fcn.0059bbe3
pop ecx
push esi
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0059da0d
add esp, 0xc
cmp dword [0x6b2190], ebx
je 0x4f877f
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, dword [0x6b21e8]
mov eax, dword [ebp - 0x30]
imul esi, eax
add esi, 0x1f
mov dword [ebp - 0x7c], eax
shr esi, 3
and esi, 0x1ffffffc
mov cx, word [0x6b21e4]
mov eax, esi
push ecx
imul eax, edi
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x78], edi
mov dword [ebp + 0xc], eax
call fcn.004f8922
pop ecx
cmp ax, bx
pop ecx
je 0x4f85aa
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x84]
push dword [0x6b21d4]
mov byte [ebp - 4], 3
push esi
push dword [0x6b21e8]
push eax
push 0x6b2190
call fcn.004f45d2
add esp, 0x24
lea ecx, [ebp - 0x34]
push eax
call fcn.004f66b1
lea eax, [ebp - 0x34]
mov ecx, 0x6b1e80
push eax
mov byte [ebp - 4], 4
call fcn.004f46fc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00534556
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
je 0x4f8595
push dword [ebp - 0x34]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 2
je 0x4f85aa
push dword [ebp - 0x3c]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x2c], ebx
je 0x4f876a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0041c5ec
cmp dword [ebp - 0x44], ebx
mov byte [ebp - 4], 6
je 0x4f8755
call fcn.004f8887
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x4f85e4
push 0x40000002
call fcn.00593610
pop ecx
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0059d003
pop ecx
lea eax, [ebp - 0xb4]
pop ecx
push eax
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [eax + 0xa0]
mov eax, dword [ebp - 0x40]
pop ecx
pop ecx
push dword [ebp - 0x44]
call dword [eax + 4]
cmp eax, ebx
pop ecx
setne al
cmp al, bl
jne 0x4f864a
lea eax, [ebp - 0x5c]
push eax
push 0x4f88fe
fld dword [ebp - 0x20]
push ecx
lea eax, [ebp - 0x44]
fstp dword [esp]
push eax
push dword [ebp - 0x18]
push dword [0x6b21d8]
call dword [0x6b21b0]
add esp, 0x18
mov dword [ebp + 8], eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
call dword [eax + 4]
cmp eax, ebx
pop ecx
setne al
cmp al, bl
je 0x4f8667
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x18]
or dword [eax + 0x24], 1
cmp word [ebp - 0x54], bx
jne 0x4f8755
cmp word [ebp + 8], bx
je 0x4f8755
call fcn.0059d186
sub eax, dword [ebp - 0x48]
mov edi, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
fld dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
fstp dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x6b21b8]
mov dword [eax + 0x1c], ecx
inc dword [0x6b21b8]
mov eax, dword [ebp - 0x14]
dec dword [eax + 0x24]
cmp word [0x6b21e0], bx
jne 0x4f8733
cmp word [0x6b21e4], bx
je 0x4f86d2
cmp edi, dword [0x6b21d0]
jb 0x4f8733
push dword [ebp - 0x18]
call fcn.005105f0
cmp ax, bx
pop ecx
jne 0x4f8733
lea eax, [ebp - 0x4c]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.00410572
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 7
je 0x4f8716
mov esi, dword [ebp - 0x14]
add esi, 0x10
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.00534556
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x4c], ebx
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 6
je 0x4f873f
push dword [ebp - 0x4c]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
jmp 0x4f873f
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], ebx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
add dword [0x6b21a0], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x44], ebx
mov byte [ebp - 4], 2
je 0x4f876a
push dword [ebp - 0x44]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x4f877f
push dword [ebp - 0x2c]
mov eax, dword [0x6b1bfc]
call dword [eax + 0xc]
pop ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
jmp 0x4f87b0
mov eax, dword [0x6b21c8]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4f87c1
push ebx
call eax
pop ecx
mov dword [0x6b21f0], ebx
cmp dword [ebp - 0x18], ebx
je 0x4f880f
mov dword [ebp - 4], 9
call fcn.00593582
mov dword [ebp - 0x60], eax
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [ebp - 0x64], 0x593563
mov byte [ebp - 4], 0xa
push dword [ebp - 0x18]
call fcn.00507999
mov eax, dword [ebp - 0x60]
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
jmp 0x4f880b
or dword [ebp - 4], 0xffffffff
cmp word [ebp - 0x54], bx
jne 0x4f884d
cmp dword [0x6b21c0], ebx
je 0x4f884d
cmp word [0x6b21e0], bx
jne 0x4f884d
cmp word [ebp - 0x50], bx
jne 0x4f884d
cmp dword [ebp - 0x14], ebx
jne 0x4f8852
mov eax, dword [0x6b21c4]
cmp eax, ebx
je 0x4f8847
cmp word [0x6b21e4], bx
je 0x4f884d
cmp dword [eax], ebx
jne 0x4f884d
mov dword [0x6b21a4], ebx
cmp dword [ebp - 0x14], ebx
je 0x4f8861
mov eax, dword [ebp - 0x14]
dec dword [eax + 0x24]
push dword [ebp - 0x14]
call fcn.004f88ba
pop ecx
mov ax, word [ebp - 0x54]
mov word [0x6b21bc], bx
mov word [0x6b21e4], bx
jmp 0x4f8878
xor ax, ax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret