Function at 0x4a4238
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 0x4a47ef
mov eax, dword [0x544738]
mov eax, dword [eax]
cmp byte [eax + 0x290], 0
jne 0x4a47ef
mov eax, dword [0x5449f0]
cmp byte [eax], 0
ja 0x4a47ef
movzx eax, word [ebx + 0x1a]
xor edx, edx
mov dl, byte [ebx + 0x3c]
add eax, edx
mov edx, dword [0x544738]
mov edx, dword [edx]
cmp eax, dword [edx + 0x58]
jle 0x4a4298
cmp byte [ebx + 0x17], 0
jne 0x4a47d2
cmp byte [ebx + 0x17], 0
jne 0x4a44b0
cmp word [ebx + 8], 0x1a
jne 0x4a42ea
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5450ac]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x544aa4]
mov eax, dword [eax + 0x10]
cdq
cmp edx, dword [esp + 4]
jne 0x4a42d5
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a42dd
jmp 0x4a47ef
pop edx
pop eax
jg 0x4a47ef
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5448d8]
mov dword [edx], eax
cmp word [ebx + 8], 0x2b
jne 0x4a4332
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x544ae4]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x544aa4]
mov eax, dword [eax + 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x4a431d
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a4325
jmp 0x4a47ef
pop edx
pop eax
jg 0x4a47ef
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5451bc]
mov dword [edx], eax
cmp word [ebx + 8], 0x2b
jne 0x4a437a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x544c14]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x544aa4]
mov eax, dword [eax + 0x18]
cdq
cmp edx, dword [esp + 4]
jne 0x4a4365
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a436d
jmp 0x4a47ef
pop edx
pop eax
jg 0x4a47ef
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5452a4]
mov dword [edx], eax
cmp word [ebx + 8], 0x4d
jne 0x4a43c2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x544f20]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x544aa4]
mov eax, dword [eax + 0x20]
cdq
cmp edx, dword [esp + 4]
jne 0x4a43ad
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a43b5
jmp 0x4a47ef
pop edx
pop eax
jg 0x4a47ef
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x544700]
mov dword [edx], eax
cmp word [ebx + 8], 0x1b
jne 0x4a43e1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x544aac]
sub eax, dword [edx]
cmp eax, 0xbb8
jb 0x4a47ef
mov eax, dword [0x544aa4]
cmp byte [eax + 0xf], 0
je 0x4a445a
mov eax, dword [0x544738]
mov eax, dword [eax]
movzx eax, byte [eax + 0xa3]
imul eax, eax, 0x1f4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fdiv dword [0x4a47f8]
call fcn.0040333c
mov edi, 0x1f4
sub edi, eax
mov eax, dword [0x544738]
mov eax, dword [eax]
movsx eax, word [eax + 0x2a4]
cdq
push edx
push eax
mov eax, edi
xor edx, edx
call fcn.0040623c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fild qword [ebp - 0x20]
fdiv dword [0x4a47fc]
call fcn.00403330
push eax
mov eax, edi
pop edx
sub eax, edx
mov edx, 1
call fcn.004660e8
mov edi, eax
jmp 0x4a445f
mov edi, 0x1f4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5445e0]
sub eax, dword [edx]
cmp edi, eax
jae 0x4a47ef
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5445e0]
mov dword [edx], eax
mov eax, dword [0x5444ac]
xor edx, edx
mov dword [eax], edx
push 0
movzx eax, word [ebx + 8]
push eax
push 0
mov eax, dword [0x544738]
mov eax, dword [eax]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, esi
call fcn.004ab9b8
jmp 0x4a47ef
mov eax, dword [0x544738]
mov eax, dword [eax]
cmp byte [eax + 0x16], 0
ja 0x4a47ef
mov eax, dword [0x5449f0]
cmp byte [eax], 0
ja 0x4a47ef
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0xaf
mov eax, 0x186
call fcn.005278c0
mov dword [ebp - 0xc], eax
mov ax, word [ebx + 8]
cmp ax, 2
je 0x4a450d
cmp ax, 0xe
je 0x4a450d
cmp ax, 0xf
je 0x4a450d
cmp ax, 0x13
je 0x4a450d
add eax, 0xffffffc4
sub ax, 6
jae 0x4a4521
mov eax, dword [0x544898]
mov eax, dword [eax]
mov edx, dword [0x544e20]
mov dword [edx], eax
jmp 0x4a45bd
mov eax, dword [0x544f94]
cmp byte [eax + 0x34], 0
je 0x4a4565
mov edx, dword [0x544770]
mov edx, dword [edx]
mov eax, dword [0x544574]
mov eax, dword [eax]
call fcn.00525088
test al, al
je 0x4a455c
mov eax, dword [0x544770]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
je 0x4a4565
mov eax, dword [0x544770]
xor edx, edx
mov dword [eax], edx
jmp 0x4a4565
mov eax, dword [0x544770]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x544f94]
cmp byte [eax + 0x34], 0
je 0x4a459f
mov edx, dword [0x544898]
mov edx, dword [edx]
mov eax, dword [0x544574]
mov eax, dword [eax]
call fcn.00525088
test al, al
je 0x4a4595
mov eax, dword [0x544898]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
je 0x4a459f
mov eax, dword [0x544770]
cmp dword [eax], 0
jne 0x4a45ae
mov eax, dword [0x544898]
mov eax, dword [eax]
mov edx, dword [0x544770]
mov dword [edx], eax
mov eax, dword [0x544770]
mov eax, dword [eax]
mov edx, dword [0x544e20]
mov dword [edx], eax
cmp word [ebx + 8], 0x16
jne 0x4a45cd
mov eax, dword [0x544e20]
xor edx, edx
mov dword [eax], edx
mov edx, dword [0x544e20]
mov edx, dword [edx]
mov eax, dword [0x544574]
mov eax, dword [eax]
call fcn.00525088
test al, al
jne 0x4a45ee
mov eax, dword [0x544e20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x544e20]
cmp dword [eax], 0
jne 0x4a4616
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x544574]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0052442c
xor edi, edi
jmp 0x4a463a
mov eax, dword [0x544e20]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x544e20]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x544e20]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov eax, esi
call fcn.004adf78
test al, al
je 0x4a47ef
mov eax, esi
call fcn.004adf4c
test al, al
je 0x4a47ef
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5445e0]
mov dword [edx], eax
mov eax, 0x28
call fcn.00402dd8
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, 0x28
call fcn.0046f994
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 [0x5444ac]
mov dword [edx], eax
mov eax, dword [0x544aa4]
cmp byte [eax + 0xf], 0
je 0x4a46e5
mov eax, dword [0x544738]
mov eax, dword [eax]
movzx eax, byte [eax + 0xa3]
mov edx, dword [0x5444ac]
imul dword [edx]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fdiv dword [0x4a47f8]
call fcn.0040333c
mov edx, dword [0x5444ac]
sub dword [edx], eax
mov eax, dword [esi + 4]
cmp eax, 0x1f
ja case.0x4a46f3.0
mov al, byte [eax + 0x4a46fa]
jmp dword [eax*4 + 0x4a471a]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x545184]
mov dword [edx], eax
mov eax, dword [0x5451dc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x544e20]
cmp dword [eax], 0
je 0x4a4761
mov eax, dword [0x544e20]
mov eax, dword [eax]
cmp byte [eax + 0x12], 0
jne 0x4a4761
mov eax, dword [0x544f94]
mov eax, dword [eax + 0x18]
mov edx, dword [0x5451dc]
mov dword [edx], eax
mov eax, dword [0x544aa4]
cmp byte [eax + 0xf], 0
cmp word [ebx + 8], 0x38
jne 0x4a47af
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x544574]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0052442c
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 [0x544738]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.005138f0
jmp 0x4a47ef
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 [0x544738]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dx, 0xbc9
call fcn.005138f0
jmp 0x4a47ef
push 0x28
push 0xffff00
mov eax, dword [0x544a40]
mov eax, dword [eax]
mov ecx, 0x1e
mov edx, 0x4a4808
call fcn.0053ac38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4