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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
mov esi, dword [0x5673b0]
cmp dword [esi], 0
je 0x4c6948
mov eax, dword [0x567510]
cmp dword [eax], 0
jl 0x4c683a
mov eax, ebx
call fcn.004d1f14
test al, al
je 0x4c683a
mov eax, ebx
call fcn.004d1ee8
test al, al
je 0x4c683a
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov edx, dword [0x567510]
cmp eax, dword [edx]
jne 0x4c61fe
mov edx, dword [0x567398]
mov edx, dword [edx]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x14]
je 0x4c683a
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov edi, dword [0x567510]
mov edi, dword [edi]
mov ebp, dword [0x567398]
mov ebp, dword [ebp]
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0055a294
mov byte [esp + 0xc], al
mov eax, dword [0x567b3c]
movzx eax, byte [eax]
dec al
je 0x4c6250
dec al
je 0x4c6488
dec al
je 0x4c660e
jmp 0x4c683a
mov eax, dword [esi]
call fcn.00542490
mov dword [esp + 8], eax
movzx ecx, byte [esp + 0xc]
mov edx, 0xbc3
mov eax, ebx
call fcn.004d2070
test al, al
je 0x4c6470
cmp dword [esp + 8], 0
jle 0x4c6470
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a15c
mov byte [esp + 0xf], 0
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00532fd0
test al, al
jne 0x4c643c
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
cmp byte [esp + 0xe], 0
jne 0x4c62f8
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a15c
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004cbb80
test al, al
je 0x4c62f8
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4c63b6
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00533008
test al, al
jne 0x4c63b6
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0xc]
call fcn.0055ab00
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xd]
call fcn.0055a15c
mov eax, dword [0x567a5c]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.0052cb80
test al, al
jne 0x4c63b1
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0xc]
call fcn.0055ab10
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xd]
call fcn.0055a15c
mov eax, dword [0x567a5c]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.0052cb80
test al, al
je 0x4c63b6
mov byte [esp + 0xe], 1
jmp 0x4c63b6
mov byte [esp + 0xe], 1
cmp byte [esp + 0xe], 0
je 0x4c63f1
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x11]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc3
call fcn.00541424
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56706c]
mov dword [edx], eax
jmp 0x4c683a
push ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, edi
call fcn.0055a294
mov edx, dword [esi]
cmp al, byte [edx + 0x18]
je 0x4c642c
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
push edx
movzx eax, al
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi]
mov dx, 0xbc2
call fcn.00541090
mov eax, dword [0x567510]
mov dword [eax], 0xffffffff
jmp 0x4c683a
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc3
call fcn.00541424
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56706c]
mov dword [edx], eax
jmp 0x4c683a
mov eax, dword [0x567510]
mov dword [eax], 0xffffffff
mov eax, dword [0x567b3c]
mov byte [eax], 0
jmp 0x4c683a
mov eax, dword [esi]
call fcn.005424b4
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0055a130
cmp eax, 2
jl 0x4c6250
cmp dword [esp + 8], 0
jle 0x4c6250
movzx ecx, byte [esp + 0xc]
mov edx, 0xbc5
mov eax, ebx
call fcn.004d2070
test al, al
je 0x4c65f6
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a1bc
mov byte [esp + 0xf], 0
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00532e1c
test al, al
jne 0x4c65c2
mov byte [esp + 0xe], 0
cmp byte [esp + 0xe], 0
jne 0x4c6550
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a1bc
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004cbb80
test al, al
je 0x4c6550
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4c656d
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
jmp 0x4c6250
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a1bc
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc5
call fcn.00541424
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56706c]
mov dword [edx], eax
jmp 0x4c683a
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc5
call fcn.00541424
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56706c]
mov dword [edx], eax
jmp 0x4c683a
mov eax, dword [0x567510]
mov dword [eax], 0xffffffff
mov eax, dword [0x567b3c]
mov byte [eax], 0
jmp 0x4c683a
mov eax, dword [esi]
call fcn.005424b4
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0055a130
cmp eax, 3
jl 0x4c6811
cmp dword [esp + 8], 0
jle 0x4c6811
movzx ecx, byte [esp + 0xc]
mov edx, 0xbc5
mov eax, ebx
call fcn.004d2070
test al, al
je 0x4c67fc
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a228
mov byte [esp + 0xf], 0
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00532e1c
test al, al
jne 0x4c67cb
mov byte [esp + 0xe], 0
cmp byte [esp + 0xe], 0
jne 0x4c66d6
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a228
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004cbb80
test al, al
je 0x4c66d6
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4c6779
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a1bc
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00532e1c
test al, al
je 0x4c673b
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
jmp 0x4c6488
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004cbb80
test al, al
je 0x4c6763
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
jmp 0x4c6488
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
jmp 0x4c6250
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.0055a228
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc1
call fcn.00541424
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56706c]
mov dword [edx], eax
jmp 0x4c683a
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc1
call fcn.00541424
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56706c]
mov dword [edx], eax
jmp 0x4c683a
mov eax, dword [0x567510]
mov dword [eax], 0xffffffff
mov eax, dword [0x567b3c]
mov byte [eax], 0
jmp 0x4c683a
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0055a130
cmp eax, 2
jl 0x4c6250
cmp dword [esp + 8], 0
jg 0x4c6488
jmp 0x4c6250
mov eax, dword [0x567510]
mov dword [eax], 0xffffffff
mov eax, dword [0x567b3c]
mov byte [eax], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x504]
test eax, eax
jle 0x4c6948
mov dword [ebx + 0x3e8], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x510]
mov dword [ebx + 0x3ec], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x504]
cmp eax, 0xbc9
jne 0x4c68ae
mov edx, dword [esi]
mov edx, dword [edx + 0x50c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x510]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x514]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x508]
mov edx, eax
mov eax, ebx
call fcn.004cf954
jmp 0x4c68d1
mov edx, dword [esi]
mov edx, dword [edx + 0x50c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x510]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x508]
mov edx, eax
mov eax, ebx
call fcn.004cf8bc
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x504], edx
mov eax, dword [0x567a70]
cmp dword [eax], 0xffffffff
je 0x4c6948
mov eax, dword [0x567a70]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x4c6911
mov eax, dword [0x56791c]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x4c6948
mov eax, dword [0x567b0c]
mov eax, dword [eax]
call fcn.00507c8c
mov eax, dword [0x567b0c]
mov eax, dword [eax]
call fcn.00507d18
mov eax, dword [0x567b0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x714]
xor edx, edx
call fcn.0047f9f4
mov eax, dword [0x567a70]
mov dword [eax], 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret