Function at 0x4a49b4
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 0x4a4f97
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
cmp byte [eax + 0x240], 0
jne 0x4a4f97
mov eax, dword [0x53e980]
cmp byte [eax], 0
ja 0x4a4f97
movzx eax, word [ebx + 0x1a]
xor edx, edx
mov dl, byte [ebx + 0x3c]
add eax, edx
mov edx, dword [0x53e6d8]
mov edx, dword [edx]
movzx edx, word [edx + 0x58]
cmp eax, edx
jbe 0x4a4a17
cmp byte [ebx + 0x17], 0
jne 0x4a4f7a
cmp byte [ebx + 0x17], 0
jne 0x4a4c2a
cmp word [ebx + 8], 0x1a
jne 0x4a4a69
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53f02c]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x53ea3c]
mov eax, dword [eax + 0x10]
cdq
cmp edx, dword [esp + 4]
jne 0x4a4a54
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a4a5c
jmp 0x4a4f97
pop edx
pop eax
jg 0x4a4f97
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e878]
mov dword [edx], eax
cmp word [ebx + 8], 0x2b
jne 0x4a4ab1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53ea88]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x53ea3c]
mov eax, dword [eax + 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x4a4a9c
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a4aa4
jmp 0x4a4f97
pop edx
pop eax
jg 0x4a4f97
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53f134]
mov dword [edx], eax
cmp word [ebx + 8], 0x2b
jne 0x4a4af9
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53ebac]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x53ea3c]
mov eax, dword [eax + 0x18]
cdq
cmp edx, dword [esp + 4]
jne 0x4a4ae4
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a4aec
jmp 0x4a4f97
pop edx
pop eax
jg 0x4a4f97
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53f214]
mov dword [edx], eax
cmp word [ebx + 8], 0x4d
jne 0x4a4b41
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53eeb0]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x53ea3c]
mov eax, dword [eax + 0x20]
cdq
cmp edx, dword [esp + 4]
jne 0x4a4b2c
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a4b34
jmp 0x4a4f97
pop edx
pop eax
jg 0x4a4f97
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e6a8]
mov dword [edx], eax
cmp word [ebx + 8], 0x1b
jne 0x4a4b7c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53ea44]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x53ea3c]
mov eax, dword [eax + 0x34]
cdq
cmp edx, dword [esp + 4]
jne 0x4a4b74
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a4b7c
jmp 0x4a4f97
pop edx
pop eax
jg 0x4a4f97
mov eax, dword [0x53ea3c]
cmp byte [eax + 0xf], 0
je 0x4a4bb2
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
movzx eax, byte [eax + 0x73]
imul eax, eax, 0x1f4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x4a4fa0]
call fcn.00402fd4
mov edi, 0x1f4
sub edi, eax
jmp 0x4a4bd9
mov eax, dword [0x53ea3c]
movzx eax, byte [eax + 0x33]
imul eax, eax, 0x1f4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x4a4fa0]
call fcn.00402fd4
mov edi, 0x1f4
sub edi, eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e594]
sub eax, dword [edx]
cmp edi, eax
jae 0x4a4f97
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e594]
mov dword [edx], eax
mov eax, dword [0x53e45c]
xor edx, edx
mov dword [eax], edx
push 0
movzx eax, word [ebx + 8]
push eax
push 0
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, esi
call fcn.004abd48
jmp 0x4a4f97
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
cmp byte [eax + 0x16], 0
ja 0x4a4f97
mov eax, dword [0x53e980]
cmp byte [eax], 0
ja 0x4a4f97
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0xaf
mov eax, 0x186
call fcn.00538c34
mov dword [ebp - 0xc], eax
mov ax, word [ebx + 8]
cmp ax, 2
je 0x4a4c87
cmp ax, 0xe
je 0x4a4c87
cmp ax, 0xf
je 0x4a4c87
cmp ax, 0x13
je 0x4a4c87
add eax, 0xffffffc4
sub ax, 6
jae 0x4a4c9b
mov eax, dword [0x53e830]
mov eax, dword [eax]
mov edx, dword [0x53edb8]
mov dword [edx], eax
jmp 0x4a4d37
mov eax, dword [0x53ef18]
cmp byte [eax + 0x34], 0
je 0x4a4cdf
mov edx, dword [0x53e710]
mov edx, dword [edx]
mov eax, dword [0x53e520]
mov eax, dword [eax]
call fcn.00510f1c
test al, al
je 0x4a4cd6
mov eax, dword [0x53e710]
mov eax, dword [eax]
cmp byte [eax + 0x30], 0
je 0x4a4cdf
mov eax, dword [0x53e710]
xor edx, edx
mov dword [eax], edx
jmp 0x4a4cdf
mov eax, dword [0x53e710]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x53ef18]
cmp byte [eax + 0x34], 0
je 0x4a4d19
mov edx, dword [0x53e830]
mov edx, dword [edx]
mov eax, dword [0x53e520]
mov eax, dword [eax]
call fcn.00510f1c
test al, al
je 0x4a4d0f
mov eax, dword [0x53e830]
mov eax, dword [eax]
cmp byte [eax + 0x30], 0
je 0x4a4d19
mov eax, dword [0x53e710]
cmp dword [eax], 0
jne 0x4a4d28
mov eax, dword [0x53e830]
mov eax, dword [eax]
mov edx, dword [0x53e710]
mov dword [edx], eax
mov eax, dword [0x53e710]
mov eax, dword [eax]
mov edx, dword [0x53edb8]
mov dword [edx], eax
cmp word [ebx + 8], 0x16
jne 0x4a4d47
mov eax, dword [0x53edb8]
xor edx, edx
mov dword [eax], edx
mov edx, dword [0x53edb8]
mov edx, dword [edx]
mov eax, dword [0x53e520]
mov eax, dword [eax]
call fcn.00510f1c
test al, al
jne 0x4a4d68
mov eax, dword [0x53edb8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x53edb8]
cmp dword [eax], 0
jne 0x4a4d90
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x53e520]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0051030c
xor edi, edi
jmp 0x4a4db4
mov eax, dword [0x53edb8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x53edb8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x53edb8]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov eax, esi
call fcn.004ae26c
test al, al
je 0x4a4f97
mov eax, esi
call fcn.004ae240
test al, al
je 0x4a4f97
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e594]
mov dword [edx], eax
mov eax, 0x28
call fcn.00402ad8
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, 0x28
call fcn.0047792c
xor eax, eax
mov al, 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 [0x53e45c]
mov dword [edx], eax
mov eax, dword [0x53ea3c]
cmp byte [eax + 0xf], 0
je 0x4a4e5e
mov eax, dword [0x53e6d8]
mov eax, dword [eax]
movzx eax, byte [eax + 0x73]
mov edx, dword [0x53e45c]
imul dword [edx]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fdiv dword [0x4a4fa0]
call fcn.00402fd4
mov edx, dword [0x53e45c]
sub dword [edx], eax
jmp 0x4a4e8d
mov eax, dword [0x53ea3c]
movzx eax, byte [eax + 0x33]
mov edx, dword [0x53e45c]
imul dword [edx]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fdiv dword [0x4a4fa0]
call fcn.00402fd4
mov edx, dword [0x53e45c]
sub dword [edx], eax
mov eax, dword [esi + 4]
cmp eax, 0x1f
ja case.0x4a4e9b.0
mov al, byte [eax + 0x4a4ea2]
jmp dword [eax*4 + 0x4a4ec2]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53f104]
mov dword [edx], eax
mov eax, dword [0x53f158]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x53edb8]
cmp dword [eax], 0
je 0x4a4f09
mov eax, dword [0x53edb8]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0
jne 0x4a4f09
mov eax, dword [0x53ef18]
mov eax, dword [eax + 0x18]
mov edx, dword [0x53f158]
mov dword [edx], eax
mov eax, dword [0x53ea3c]
cmp byte [eax + 0xf], 0
cmp word [ebx + 8], 0x38
jne 0x4a4f57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x53e520]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0051030c
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 [0x53e6d8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.0051ee08
jmp 0x4a4f97
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 [0x53e6d8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.0051ee08
jmp 0x4a4f97
push 0x28
push 0xffff00
mov eax, dword [0x53e9d0]
mov eax, dword [eax]
mov ecx, 0x1e
mov edx, 0x4a4fac
call fcn.00530b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4