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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52594c
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xf8], ebx
cmp dword [0x592ad4], 1
jne 0x4a0c17
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4a0c1d
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [ebx + 0x1b4], eax
ja 0x4a10ec
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0x104], 0
mov eax, dword [eax + 0x3c]
mov esi, dword [eax + 0x938]
lea ecx, [eax + 0x934]
push ecx
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0xf0], esi
mov edx, dword [eax + 0x8ec]
push ecx
lea ecx, [eax + 0xf24]
mov dword [ebp - 0xfc], edx
call fcn.0042e420
lea ecx, [ebp - 0x1a0]
call fcn.0041c2a0
mov eax, dword [ebx + 0x90]
mov eax, dword [eax + 0x3c]
mov edi, dword [eax + 0xe90]
mov edx, dword [eax + 0xe44]
mov ecx, dword [eax + 0xdf8]
mov eax, dword [eax + 0xdac]
mov dword [ebp - 0x100], edi
mov dword [ebp - 0x14], edi
lea edi, [ebx + 0x1b0]
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
add eax, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
cmp eax, dword [ebp - 0x100]
jg 0x4a10ec
push 0x44
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0xa8]
call fcn.0041ad80
cmp dword [ebp - 0x70], 0
mov dword [ebp - 0xa8], vtable.CStringUTF8.0
je 0x4a0cf7
lea ecx, [ebp - 0x74]
call fcn.0041a760
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x68], 0xffffffff
lea eax, [ebx + 0x1ec]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041a900
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa8]
mov esi, dword [ebx + 0x230]
lea eax, [esi + 1]
mov dword [ebx + 0x230], eax
mov eax, dword [ebp - 0xa8]
call dword [eax + 0x48]
push 0x44
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0xec]
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0xa8]
push esi
push eax
call fcn.004247e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x30]
call eax
test al, al
jne 0x4a1074
sub esp, 0x44
lea ecx, [ebp - 0xec]
mov eax, esp
push 0
push eax
call fcn.004247e0
call fcn.004e7ad0
add esp, 0x44
test eax, eax
je 0x4a0fb2
mov dword [ebp - 0x118], 0x546084
xor edi, edi
mov dword [ebp - 0x114], 0x546088
mov dword [ebp - 0x110], 0x54608c
mov dword [ebp - 0x10c], 0x546090
nop dword [eax]
push 0x44
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0041ad80
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x64], vtable.CStringUTF8.0
je 0x4a0e0d
lea ecx, [ebp - 0x30]
call fcn.0041a760
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
push dword [ebp + edi*4 - 0x118]
call fcn.0041a9d0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x64]
call fcn.0041a900
lea ecx, [ebp - 0x15c]
call fcn.0041c2a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0xec]
call dword [eax + 0x78]
push eax
mov eax, dword [esi + 0xb4]
lea ecx, [ebp - 0xec]
call eax
test al, al
je 0x4a0e7e
call fcn.00426e70
cmp al, 1
je 0x4a0e96
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0041c2a0
inc edi
cmp edi, 4
jb 0x4a0de0
jmp 0x4a0eac
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x104], 0x12c
mov byte [ebp - 4], 2
call fcn.0041c2a0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xf0]
lea eax, [ebx + 0x1b0]
push dword [ebp - 0xfc]
lea edi, [ebx + 0x1ac]
push eax
push edi
sub esp, 0x44
mov esi, esp
mov ecx, esi
mov dword [ebp - 0xf8], esi
call fcn.0041ad80
cmp dword [esi + 0x38], 0
mov dword [esi], vtable.CStringUTF8.0
je 0x4a0ef2
lea ecx, [esi + 0x34]
call fcn.0041a760
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x40], 0xffffffff
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.0041a900
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x8c]
call fcn.0044c7d0
mov eax, dword [ebx + 0x1b0]
add eax, dword [ebp - 0xf0]
cmp eax, dword [ebp - 0x100]
jle 0x4a0f3c
xor esi, esi
jmp 0x4a10d2
mov eax, dword [ebx + 0x90]
mov ecx, ebx
mov edx, dword [ebx]
mov eax, dword [eax + 0x3c]
push dword [eax + 0xfc0]
call dword [edx + 0xec]
test eax, eax
je 0x4a0f66
add eax, 0x130
mov dword [ebp - 0xf4], eax
jmp 0x4a0f70
mov dword [ebp - 0xf4], 0
mov eax, dword [ebx + 0x1b0]
mov edx, dword [edi]
mov ecx, dword [ebx + 0x16c]
push 1
push eax
push edx
push dword [ebp - 0xf4]
mov esi, dword [ecx + 0x130]
add ecx, 0x130
push dword [ebp - 0xf0]
push dword [ebp - 0xfc]
push eax
push edx
call dword [esi + 0x48]
mov eax, dword [ebp - 0xfc]
add dword [edi], eax
jmp 0x4a106e
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push 0x53ec04
mov eax, dword [eax + 0xb4]
call eax
mov ecx, dword [ebx + 0x90]
test al, al
je 0x4a0ff1
mov edx, dword [ebp - 0xf0]
add dword [edi], edx
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + 0xdac]
mov dword [ebx + 0x1ac], eax
jmp 0x4a107a
mov eax, dword [ecx + 0x3c]
mov ecx, ebx
mov edx, dword [ebx]
push dword [eax + 0xfc0]
call dword [edx + 0xec]
test eax, eax
je 0x4a1015
add eax, 0x130
mov dword [ebp - 0xf4], eax
jmp 0x4a101f
mov dword [ebp - 0xf4], 0
mov ecx, dword [edi]
mov esi, dword [ebp - 0xf8]
mov eax, dword [ebp - 0xfc]
mov ebx, dword [ebx + 0x16c]
push 1
mov esi, dword [esi + 0x1ac]
push ecx
push esi
push dword [ebp - 0xf4]
cdq
push dword [ebp - 0xf0]
sub eax, edx
mov edx, dword [ebx + 0x130]
mov edi, eax
sar edi, 1
push edi
push ecx
push esi
lea ecx, [ebx + 0x130]
call dword [edx + 0x48]
mov ebx, dword [ebp - 0xf8]
add dword [ebx + 0x1ac], edi
lea edi, [ebx + 0x1b0]
mov edx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x108]
cmp dword [ebx + 0x230], eax
jae 0x4a1094
mov eax, dword [edi]
add eax, edx
cmp eax, dword [ebp - 0x100]
jle 0x4a10a0
push ecx
push 1
mov ecx, ebx
call fcn.004a15d0
jmp 0x4a10cd
cmp dword [0x592ad4], 1
jne 0x4a10b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4a10b7
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [ebx + 0x194]
add eax, ecx
add eax, dword [ebp - 0x104]
mov dword [ebx + 0x1b4], eax
mov esi, 1
lea ecx, [ebp - 0xec]
call fcn.0041c2a0
lea ecx, [ebp - 0xa8]
call fcn.0041c2a0
mov eax, esi
jmp 0x4a10ee
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret