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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4c8913
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp byte [eax + 0x2b8], 0
jne 0x4c8913
cmp word [ebx + 8], 7
je 0x4c8913
mov eax, dword [0x567690]
cmp byte [eax], 0
ja 0x4c8913
movzx eax, word [ebx + 0x1a]
movzx edx, byte [ebx + 0x3c]
add eax, edx
mov edx, dword [0x5673b0]
mov edx, dword [edx]
cmp eax, dword [edx + 0x74]
jle 0x4c83c2
cmp byte [ebx + 0x17], 0
jne 0x4c88f6
cmp byte [ebx + 0x17], 0
jne 0x4c856c
cmp word [ebx + 8], 0x1a
jne 0x4c83fc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x566d60]
sub eax, dword [edx]
mov edx, dword [0x567764]
cmp eax, dword [edx + 0xd]
jb 0x4c8913
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x567574]
mov dword [edx], eax
cmp word [ebx + 8], 0x2b
jne 0x4c842c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5677a0]
sub eax, dword [edx]
mov edx, dword [0x567764]
cmp eax, dword [edx + 0x11]
jb 0x4c8913
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x566e94]
mov dword [edx], eax
cmp word [ebx + 8], 0x2b
jne 0x4c845c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5678d8]
sub eax, dword [edx]
mov edx, dword [0x567764]
cmp eax, dword [edx + 0x15]
jb 0x4c8913
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x566fd8]
mov dword [edx], eax
cmp word [ebx + 8], 0x4d
jne 0x4c848c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x566b70]
sub eax, dword [edx]
mov edx, dword [0x567764]
cmp eax, dword [edx + 0x1d]
jb 0x4c8913
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x567384]
mov dword [edx], eax
cmp word [ebx + 8], 0x1b
jne 0x4c84ab
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x56776c]
sub eax, dword [edx]
cmp eax, 0xbb8
jb 0x4c8913
mov eax, dword [0x567764]
cmp byte [eax + 0xc], 0
je 0x4c8517
mov eax, dword [0x5673b0]
mov eax, dword [eax]
movzx eax, byte [eax + 0xbf]
imul eax, eax, 0x1f4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x4c891c]
call fcn.0040367c
mov edi, 0x1f4
sub edi, eax
mov eax, dword [0x5673b0]
mov eax, dword [eax]
movsx eax, word [eax + 0x2cc]
imul edi
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x4c8920]
call fcn.00403670
push eax
mov eax, edi
pop edx
sub eax, edx
mov edx, 1
call fcn.0046ffe8
mov edi, eax
jmp 0x4c851c
mov edi, 0x1f4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5671f4]
sub eax, dword [edx]
cmp eax, edi
jbe 0x4c8913
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5671f4]
mov dword [edx], eax
mov eax, dword [0x567078]
xor edx, edx
mov dword [eax], edx
push 0
movzx eax, word [ebx + 8]
push eax
push 0
mov eax, dword [0x5673b0]
mov eax, dword [eax]
movzx ecx, byte [eax + 0x18]
mov edx, 0xbc9
mov eax, esi
call fcn.004cf954
jmp 0x4c8913
mov eax, dword [0x5673b0]
mov eax, dword [eax]
cmp byte [eax + 0x20], 0
ja 0x4c8913
mov eax, dword [0x567690]
cmp byte [eax], 0
ja 0x4c8913
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0xaf
mov eax, 0x186
call fcn.0055a61c
mov dword [ebp - 0xc], eax
movzx eax, word [ebx + 8]
cmp ax, 2
je 0x4c85c9
cmp ax, 0xe
je 0x4c85c9
cmp ax, 0xf
je 0x4c85c9
cmp ax, 0x13
je 0x4c85c9
add eax, 0xffffffc4
sub ax, 6
jae 0x4c85dd
mov eax, dword [0x567520]
mov eax, dword [eax]
mov edx, dword [0x567b70]
mov dword [edx], eax
jmp 0x4c8679
mov eax, dword [0x566c0c]
cmp byte [eax + 0x34], 0
je 0x4c8621
mov edx, dword [0x5673e8]
mov edx, dword [edx]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00533234
test al, al
je 0x4c8618
mov eax, dword [0x5673e8]
mov eax, dword [eax]
cmp byte [eax + 0x3c], 0
je 0x4c8621
mov eax, dword [0x5673e8]
xor edx, edx
mov dword [eax], edx
jmp 0x4c8621
mov eax, dword [0x5673e8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x566c0c]
cmp byte [eax + 0x34], 0
je 0x4c865b
mov edx, dword [0x567520]
mov edx, dword [edx]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00533234
test al, al
je 0x4c8651
mov eax, dword [0x567520]
mov eax, dword [eax]
cmp byte [eax + 0x3c], 0
je 0x4c865b
mov eax, dword [0x5673e8]
cmp dword [eax], 0
jne 0x4c866a
mov eax, dword [0x567520]
mov eax, dword [eax]
mov edx, dword [0x5673e8]
mov dword [edx], eax
mov eax, dword [0x5673e8]
mov eax, dword [eax]
mov edx, dword [0x567b70]
mov dword [edx], eax
mov eax, dword [0x567b70]
cmp dword [eax], 0
je 0x4c86b4
mov eax, dword [0x567b70]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [0x567b70]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x5673b0]
mov eax, dword [eax]
mov edx, dword [eax + 0x14]
mov eax, dword [0x5673b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.0055a61c
mov dword [ebp - 0xc], eax
cmp word [ebx + 8], 0x16
jne 0x4c86c4
mov eax, dword [0x567b70]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.005325d8
mov edx, dword [0x567b70]
mov edx, dword [edx]
mov eax, dword [0x566ba4]
mov eax, dword [eax]
call fcn.00533234
test al, al
jne 0x4c86ff
mov eax, dword [0x567b70]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x567b70]
cmp dword [eax], 0
jne 0x4c873a
mov eax, dword [ebp - 4]
mov ecx, 0x30
cdq
idiv ecx
cmp edx, 0x18
jle 0x4c871c
inc dword [ebp - 0x10]
mov eax, dword [ebp - 8]
and eax, 0x8000001f
jns 0x4c872b
dec eax
or eax, 0xffffffe0
inc eax
cmp eax, 0x10
jle 0x4c8733
inc dword [ebp - 0x14]
inc dword [ebp - 0x14]
xor edi, edi
jmp 0x4c875e
mov eax, dword [0x567b70]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [0x567b70]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x567b70]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov eax, esi
call fcn.004d1f14
test al, al
je 0x4c8913
mov eax, esi
call fcn.004d1ee8
test al, al
je 0x4c8913
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5671f4]
mov dword [edx], eax
mov eax, 0x28
call fcn.00403104
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, 0x28
call fcn.00479790
movzx eax, byte [ebx + 0x18]
mov dword [esi + 0x10], eax
movzx eax, word [ebx + 8]
mov dword [esi + 4], eax
mov byte [esi + 0x24], 0
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebx + 0x38]
add eax, 0xc8
mov edx, dword [0x567078]
mov dword [edx], eax
mov eax, dword [0x567764]
cmp byte [eax + 0xc], 0
je 0x4c8808
mov eax, dword [0x5673b0]
mov eax, dword [eax]
movzx eax, byte [eax + 0xbf]
mov edx, dword [0x567078]
imul dword [edx]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fdiv dword [0x4c891c]
call fcn.0040367c
mov edx, dword [0x567078]
sub dword [edx], eax
mov eax, dword [esi + 4]
cmp eax, 0x1f
ja case.0x4c8817.0
movzx eax, byte [eax + 0x4c881e]
jmp dword [eax*4 + 0x4c883e]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x566e58]
mov dword [edx], eax
mov eax, dword [0x566ed8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x567b70]
cmp dword [eax], 0
je 0x4c8885
mov eax, dword [0x567b70]
mov eax, dword [eax]
cmp byte [eax + 0x1a], 0
jne 0x4c8885
mov eax, dword [0x566c0c]
mov eax, dword [eax + 0x18]
mov edx, dword [0x566ed8]
mov dword [edx], eax
mov eax, dword [0x567764]
cmp byte [eax + 0xc], 0
cmp word [ebx + 8], 0x38
jne 0x4c88d3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x566ba4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.005325d8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push 0
push 0
push 0
mov eax, dword [0x5673b0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.00541090
jmp 0x4c8913
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [0x5673b0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.00541090
jmp 0x4c8913
push 0x28
push 0xffff00
mov eax, dword [0x567128]
mov eax, dword [eax]
mov ecx, 0x1e
mov edx, 0x4c892c
call fcn.005528fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4