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

Disassembly:
mov eax, 0x61efb8
call fcn.0044c384
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 [0x6b9674]
mov dword [ebp - 0x24], eax
mov eax, dword [0x68dd24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6b9678]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
call fcn.004f8d5c
test ax, ax
je 0x4f942a
mov eax, dword [0x6b96ac]
cmp eax, ebx
je 0x4f8e32
call eax
test ax, ax
jne 0x4f942a
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.004f8735
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [0x6b967c]
cmp eax, dword [0x6b96a0]
jae 0x4f8e9f
cmp dword [ebp - 0x14], ebx
jne 0x4f8ec4
call fcn.004f943c
cmp eax, ebx
je 0x4f942a
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 [0x6b9688]
mov dword [eax + 0x1c], ecx
inc dword [0x6b9688]
dec dword [eax + 0x24]
jmp 0x4f8ec4
cmp dword [ebp - 0x14], ebx
je 0x4f8ec4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], ebx
jne 0x4f8ec4
cmp word [0x6b96b0], bx
jne 0x4f8ec4
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f8783
add esp, 0xc
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f8735
add esp, 0xc
test eax, eax
je 0x4f8f1b
mov eax, dword [0x6b966c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x68dd28]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6b9658]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
jl 0x4f942a
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.004f8735
add esp, 0xc
test eax, eax
jne 0x4f942a
mov word [0x6b96b4], 1
fld dword [ebp - 0x20]
fcomp dword [0x68dd20]
fnstsw ax
sahf
jbe 0x4f8f31
xor ax, ax
jmp 0x4f9421
mov eax, dword [0x6b9698]
push 1
pop esi
cmp eax, ebx
mov word [0x6b968c], si
je 0x4f8f48
push esi
call eax
pop ecx
mov dword [ebp - 4], ebx
call fcn.005989f0
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], 0x5989d1
mov byte [ebp - 4], 1
mov dword [ebp + 8], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.0050825e
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x10], ebx
je 0x4f8f95
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
cmp word [eax + 0x3e], si
jne 0x4f8f95
mov eax, dword [ebp - 0x18]
or dword [eax + 0x24], esi
push dword [ebp - 0x18]
call fcn.005111d8
cmp ax, bx
pop ecx
jne 0x4f9334
mov eax, dword [ebp - 0x18]
mov dword [0x6b96c0], eax
call fcn.005a259d
cmp word [ebp - 0x54], bx
mov dword [ebp - 0x48], eax
jne 0x4f9334
cmp dword [0x6b9690], ebx
je 0x4f9334
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x18]
call fcn.005088b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005a0fe4
fstp dword [ebp - 0x30]
pop ecx
fld dword [ebp - 0x20]
fmul dword [ebp - 0x30]
call fcn.0044d9cc
push dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.005a0fe4
fstp dword [ebp + 0xc]
pop ecx
fld dword [ebp - 0x20]
fmul dword [ebp + 0xc]
call fcn.0044d9cc
cmp word [ebp - 0x54], bx
mov edi, eax
jne 0x4f9334
cmp dword [0x6b9690], ebx
je 0x4f9334
cmp word [0x6b96b0], bx
jne 0x4f9334
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x18]
call fcn.00512191
pop ecx
pop ecx
fld dword [ebp - 0x20]
push ecx
fstp dword [esp]
call fcn.005a0ffa
pop ecx
mov esi, eax
fld dword [ebp - 0x20]
push ecx
fstp dword [esp]
call fcn.005a0ffa
pop ecx
push esi
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.005a2e7e
add esp, 0xc
cmp dword [0x6b9660], ebx
je 0x4f9334
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov esi, dword [0x6b96b8]
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 [0x6b96b4]
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.004f94d7
pop ecx
cmp ax, bx
pop ecx
je 0x4f915f
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 [0x6b96a4]
mov byte [ebp - 4], 3
push esi
push dword [0x6b96b8]
push eax
push 0x6b9660
call fcn.004f4ea6
add esp, 0x24
lea ecx, [ebp - 0x34]
push eax
call fcn.004f7152
lea eax, [ebp - 0x34]
mov ecx, 0x6b9350
push eax
mov byte [ebp - 4], 4
call fcn.004f4fdb
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.0041c673
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
je 0x4f914a
push dword [ebp - 0x34]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 2
je 0x4f915f
push dword [ebp - 0x3c]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x2c], ebx
je 0x4f931f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0041c6e5
cmp dword [ebp - 0x44], ebx
mov byte [ebp - 4], 6
je 0x4f930a
call fcn.004f943c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x4f9199
push 0x40000002
call fcn.00598a7e
pop ecx
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.005a241a
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 0x4f91ff
lea eax, [ebp - 0x5c]
push eax
push 0x4f94b3
fld dword [ebp - 0x20]
push ecx
lea eax, [ebp - 0x44]
fstp dword [esp]
push eax
push dword [ebp - 0x18]
push dword [0x6b96a8]
call dword [0x6b9680]
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 0x4f921c
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x18]
or dword [eax + 0x24], 1
cmp word [ebp - 0x54], bx
jne 0x4f930a
cmp word [ebp + 8], bx
je 0x4f930a
call fcn.005a259d
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 [0x6b9688]
mov dword [eax + 0x1c], ecx
inc dword [0x6b9688]
mov eax, dword [ebp - 0x14]
dec dword [eax + 0x24]
cmp word [0x6b96b0], bx
jne 0x4f92e8
cmp word [0x6b96b4], bx
je 0x4f9287
cmp edi, dword [0x6b96a0]
jb 0x4f92e8
push dword [ebp - 0x18]
call fcn.005111d8
cmp ax, bx
pop ecx
jne 0x4f92e8
lea eax, [ebp - 0x4c]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.004105aa
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 7
je 0x4f92cb
mov esi, dword [ebp - 0x14]
add esi, 0x10
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.0041c673
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 0x4f92f4
push dword [ebp - 0x4c]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
jmp 0x4f92f4
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 [0x6b9670], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x44], ebx
mov byte [ebp - 4], 2
je 0x4f931f
push dword [ebp - 0x44]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
cmp dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 1
je 0x4f9334
push dword [ebp - 0x2c]
mov eax, dword [0x6b90cc]
call dword [eax + 0xc]
pop ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
jmp 0x4f9365
mov eax, dword [0x6b9698]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4f9376
push ebx
call eax
pop ecx
mov dword [0x6b96c0], ebx
cmp dword [ebp - 0x18], ebx
je 0x4f93c4
mov dword [ebp - 4], 9
call fcn.005989f0
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], 0x5989d1
mov byte [ebp - 4], 0xa
push dword [ebp - 0x18]
call fcn.00508535
mov eax, dword [ebp - 0x60]
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
jmp 0x4f93c0
or dword [ebp - 4], 0xffffffff
cmp word [ebp - 0x54], bx
jne 0x4f9402
cmp dword [0x6b9690], ebx
je 0x4f9402
cmp word [0x6b96b0], bx
jne 0x4f9402
cmp word [ebp - 0x50], bx
jne 0x4f9402
cmp dword [ebp - 0x14], ebx
jne 0x4f9407
mov eax, dword [0x6b9694]
cmp eax, ebx
je 0x4f93fc
cmp word [0x6b96b4], bx
je 0x4f9402
cmp dword [eax], ebx
jne 0x4f9402
mov dword [0x6b9674], ebx
cmp dword [ebp - 0x14], ebx
je 0x4f9416
mov eax, dword [ebp - 0x14]
dec dword [eax + 0x24]
push dword [ebp - 0x14]
call fcn.004f946f
pop ecx
mov ax, word [ebp - 0x54]
mov word [0x6b968c], bx
mov word [0x6b96b4], bx
jmp 0x4f942d
xor ax, ax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret