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

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
mov esi, ecx
mov byte [eax], 0
mov eax, dword [esi + 0xb8]
shr eax, 2
test al, 1
je 0x4f0b94
call fcn.004f67d0
mov al, 1
pop esi
pop ecx
ret 0xc
mov eax, dword [0x635c50]
shr eax, 2
test al, 1
jne 0x4f0b8d
mov ecx, dword [esi + 0xa8]
push ebx
push ebp
add ecx, 0x3f4
xor bl, bl
call fcn.004f64c0
or dword [esi + 0xb8], 4
mov al, byte [esp + 0x14]
mov ebp, dword [0x6292b4]
mov byte [esi + 0x104], al
cmp byte [esp + 0x18], bl
jne 0x4f0c0d
call ebp
sub eax, dword [esi + 0xc0]
cmp eax, dword [esi + 0xc8]
seta al
test al, al
jne 0x4f0c0d
mov ecx, dword [esi + 0xa8]
add ecx, 0x3f4
call fcn.004f6520
and dword [esi + 0xb8], 0xfffffffb
call fcn.004f67d0
pop ebp
pop ebx
mov al, 1
pop esi
pop ecx
ret 0xc
call ebp
add dword [esi + 0x108], 0xc9
mov dword [esi + 0xc0], eax
mov ecx, dword [0x637700]
call fcn.004e9690
test al, al
je 0x4f0c33
call fcn.00509850
mov al, byte [0x63788d]
inc dword [esi + 0x108]
inc al
mov byte [0x63788d], al
movzx eax, al
and eax, 0x80000001
jns 0x4f0c54
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4f0c68
push 1
push 1
mov ecx, esi
call fcn.004f1c60
mov byte [0x63788d], 0
add dword [esi + 0x108], 0xffffff36
xor ebp, ebp
cmp byte [esi + 0xbc], 0
je 0x4f0c85
call fcn.004ea330
mov ebp, dword [eax + 0x54]
cmp dword [esi + 0xc4], 0
mov eax, dword [esi + 0xa8]
setg cl
push edi
mov byte [eax + 0x566], cl
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4f0cb1
cmp dword [eax + 4], 0
setne al
test al, al
jne 0x4f0d03
call fcn.004f1e00
mov edi, eax
mov ecx, edi
call fcn.004f8f40
add dword [esi + 0x108], 0xd0
mov ecx, esi
cmp dword [esi + 0xc4], 0
setg al
movzx eax, al
push eax
push dword [esi + 0xb4]
call fcn.004f2780
mov bh, al
test bh, bh
je 0x4f0cf4
add dword [esi + 0x108], 0xffffff30
mov ecx, edi
call fcn.004f8ee0
test bh, bh
je 0x4f0e52
mov ecx, dword [esi + 0xcc]
mov eax, ecx
shr eax, 9
test al, 1
jne 0x4f0d1a
shr ecx, 0x15
test cl, 1
je 0x4f0d3b
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
push eax
mov ecx, esi
call fcn.004f1350
test al, al
jne 0x4f0d3b
xor bl, bl
cmp byte [esp + 0x18], bl
jne 0x4f0e52
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xa8]
shr eax, 9
and al, 1
sete al
movzx eax, al
push eax
mov eax, dword [esi + 0xb4]
xor eax, ebp
push eax
call fcn.004f0b20
mov bl, al
test bl, bl
jne 0x4f0e29
mov ecx, dword [esi + 0xa8]
cmp byte [ecx + 0x567], al
jne 0x4f0dc0
mov ecx, dword [ecx + 0x70]
and ecx, 0x200
jne 0x4f0e29
cmp dword [esi + 0xc4], ecx
jle 0x4f0e29
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xa8]
shr eax, 9
and al, 1
sete al
movzx eax, al
push eax
mov eax, dword [esi + 0xb4]
xor eax, ebp
push eax
call fcn.004f0b20
mov bl, al
jmp 0x4f0e29
mov eax, dword [esi + 0xa8]
mov eax, dword [eax + 0x70]
and eax, 0x400
je 0x4f0e29
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xb4]
mov edi, dword [esi + 0xa8]
xor ecx, ebp
shr eax, 9
and al, 1
sete al
movzx eax, al
push eax
push ecx
mov ecx, dword [edi + 0x2fc]
call fcn.005c7cc0
mov bl, al
test bl, bl
jne 0x4f0e29
mov edi, dword [edi + 0x2fc]
lea eax, [esp + 0x13]
push dword [esp + 0x18]
push eax
push dword [edi + 0x18]
push dword [edi + 0x14]
call fcn.004e5090
mov eax, dword [edi + 0x14]
add esp, 0x10
mov dword [edi + 0x18], eax
test bl, bl
je 0x4f0dc0
mov ecx, dword [esp + 0x20]
test ebp, ebp
sete al
mov byte [ecx], al
test bl, bl
je 0x4f0e52
mov eax, dword [esi + 0xec]
mov dword [esi + 0xc4], eax
mov eax, dword [esi + 0xe8]
mov dword [esi + 0xc8], eax
jmp 0x4f0e92
dec dword [esi + 0xc4]
js 0x4f0e6a
mov eax, dword [esi + 0xa8]
mov eax, dword [eax + 0x70]
and eax, 0x200
jne 0x4f0e71
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esi + 0xa8]
mov ecx, esi
and dword [eax + 0x70], 0xfffffdff
mov eax, dword [esi + 0xa8]
mov byte [eax + 0x567], 0
call fcn.004f1b90
call dword [0x6292b4]
mov ecx, dword [esi + 0xa8]
and dword [esi + 0xb8], 0xfffffffb
add ecx, 0x3f4
mov dword [esi + 0xc0], eax
call fcn.004f6520
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
pop ecx
ret 0xc