Function at 0x4c5010
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a060
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10ec
call fcn.004c9530
mov eax, dword [0x592c80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5aa378], 0
jne 0x4c506c
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x5aa378], eax
jmp 0x4c50af
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
sub ecx, dword [0x5aa378]
mov dword [0x5aa378], eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x581790]
mov ecx, dword [0x5aa380]
push ecx
cvtpd2ps xmm0, xmm0
mov eax, dword [ecx]
divss xmm0, dword [0x581490]
movss dword [esp], xmm0
call dword [eax]
mov dword [ebp - 0xfc4], 0
mov dword [ebp - 0xfc0], 0
mov dword [ebp - 0xfbc], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10b4]
mov ecx, dword [0x5a943c]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
mov dword [ebp - 0x10b8], 0
call dword [eax + 8]
mov eax, dword [ebp - 0x10b4]
test eax, eax
jle 0x4c515a
cmp eax, 0xfa0
jle 0x4c5111
mov dword [ebp - 0x10b4], 0xfa0
mov ecx, dword [0x5a943c]
lea edx, [ebp - 0xfc4]
push edx
lea edx, [ebp - 0x10b8]
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x10b4]
push edx
lea edx, [ebp - 0xfb8]
push edx
call dword [eax + 8]
mov ecx, dword [0x5a943c]
lea edx, [ebp - 0x10b4]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
call dword [eax + 8]
mov eax, dword [ebp - 0x10b4]
test eax, eax
jg 0x4c5100
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xfc4]
test ecx, ecx
je 0x4c51a4
mov eax, dword [ebp - 0xfbc]
sub eax, ecx
imul eax, eax, 0xcccccccd
lea edx, [eax + eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c519a
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c57b2
push edx
push ecx
call fcn.004c8bcc
add esp, 8
mov ecx, esi
call fcn.004c57c0
mov ecx, dword [0x5aa380]
sub esp, 0x10
mov eax, esp
mov dword [ecx + 0x2c], 1
mov dword [ecx + 0x14], 0x4164cccd
mov dword [ecx + 0x18], 0x42720000
mov dword [ecx + 0x1c], 0xc2140000
push 3
mov dword [eax], 0x3f800000
mov dword [eax + 4], 0x3f028283
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0x3f1b9b9c
call fcn.004b7e80
mov ecx, dword [0x5aa368]
mov eax, 0x66666667
inc ecx
imul ecx
mov dword [0x5aa368], ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x4c5244
call fcn.0052ab4e
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x581268]
divss xmm1, dword [0x58153c]
addss xmm1, dword [0x581268]
movss dword [0x5aa33c], xmm1
push 0x58
lea eax, [ebp - 0x1060]
push 0
push eax
call fcn.004f0f30
add esp, 0xc
mov dword [ebp - 0x1070], 1
lea eax, [ebp - 0xfc4]
mov dword [ebp - 0x106c], 0x3f800000
mov dword [ebp - 0x1068], 0x3f800000
mov dword [ebp - 0x1064], 0x3f800000
push eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0xfc4], 0xc0800000
push eax
mov dword [ebp - 0xfc0], 0
mov dword [ebp - 0xfbc], 0x40000000
call fcn.00404e16
mov eax, dword [0x5a942c]
lea edx, [ebp - 0x1070]
movss xmm0, dword [0x5aa33c]
mov dword [ebp - 0x103c], 0x4164cccd
mov dword [ebp - 0x1038], 0x42720000
mov dword [ebp - 0x1034], 0xc2140000
mov dword [ebp - 0x1024], 0x42c80000
mov dword [ebp - 0x1020], 0x3f800000
movss dword [ebp - 0x1018], xmm0
mov dword [ebp - 0x106c], 0x3f800000
mov dword [ebp - 0x1068], 0x3f800000
mov dword [ebp - 0x1064], 0x3f000000
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov eax, dword [eax + 0x2a3d8]
push edx
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [0x5a942c]
push 1
push 1
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push 0x3c
push 0x3f
push 0xb
call fcn.0045a8b0
mov eax, dword [0x5a942c]
mov dword [ebp - 0xfd0], 0
mov dword [ebp - 0xfd4], 0
mov dword [ebp - 0xfd8], 0
mov dword [ebp - 0xfdc], 0
mov dword [ebp - 0xfe4], 0
mov dword [ebp - 0xfe8], 0
mov dword [ebp - 0xfec], 0
mov dword [ebp - 0xff0], 0
mov dword [ebp - 0xff8], 0
mov dword [ebp - 0xffc], 0
mov dword [ebp - 0x1000], 0
mov dword [ebp - 0x1004], 0
mov dword [ebp - 0xfcc], 0x3f800000
mov dword [ebp - 0xfe0], 0x3f800000
mov dword [ebp - 0xff4], 0x3f800000
mov dword [ebp - 0x1008], 0x3f800000
mov eax, dword [eax + 0x2a68c]
push ecx
movss xmm0, dword [eax + 4]
lea eax, [ebp - 0x10b0]
movss dword [esp], xmm0
push eax
call fcn.0040635f
mov eax, dword [0x5a942c]
push ecx
mov eax, dword [eax + 0x2a68c]
movss xmm0, dword [eax]
lea eax, [ebp - 0x1008]
movss dword [esp], xmm0
push eax
call fcn.004063fb
lea eax, [ebp - 0x10b0]
push eax
lea eax, [ebp - 0x1008]
push eax
push eax
call fcn.0040583c
mov ecx, dword [0x5a942c]
lea edx, [ebp - 0x1008]
push edx
push 2
mov eax, dword [ecx + 0x2a68c]
movss xmm0, dword [eax + 0xc]
movss dword [ebp - 0xfd8], xmm0
mov eax, dword [ecx + 0x2a68c]
movss xmm0, dword [eax + 0x10]
movss dword [ebp - 0xfd4], xmm0
mov eax, dword [ecx + 0x2a68c]
movss xmm0, dword [eax + 0x14]
movss dword [ebp - 0xfd0], xmm0
mov eax, dword [ecx + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x94]
movups xmm0, xmmword [ebp - 0x1008]
mov eax, dword [0x5a942c]
lea edx, [ebp - 0x1008]
mov dword [ebp - 0xffc], 0
movups xmmword [ebp - 0x10c8], xmm0
mov dword [ebp - 0x1000], 0
movups xmm0, xmmword [ebp - 0xff8]
mov dword [ebp - 0xfec], 0
mov dword [ebp - 0xff0], 0
movups xmmword [ebp - 0x10d8], xmm0
mov dword [ebp - 0xff8], 0
movups xmm0, xmmword [ebp - 0xfe8]
mov dword [ebp - 0xfdc], 0
mov dword [ebp - 0xfe4], 0
movups xmmword [ebp - 0x10e8], xmm0
mov dword [ebp - 0xfe8], 0
movups xmm0, xmmword [ebp - 0xfd8]
mov dword [ebp - 0xfd0], 0
mov dword [ebp - 0xfd4], 0
mov dword [ebp - 0xfd8], 0
mov dword [ebp - 0x1004], 0
mov dword [ebp - 0xfcc], 0x3f800000
mov dword [ebp - 0xfe0], 0x3f800000
mov dword [ebp - 0xff4], 0x3f800000
mov dword [ebp - 0x1008], 0x3f800000
mov eax, dword [eax + 0x2a3d8]
push edx
push 0x100
push eax
mov ecx, dword [eax]
movups xmmword [ebp - 0x10f8], xmm0
call dword [ecx + 0x94]
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa338]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa370]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa2a8]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa360]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa36c]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa364]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa2ac]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
mov eax, dword [0x5a942c]
mov ecx, dword [0x5aa37c]
push 0
push dword [eax + 0x2a3d8]
call fcn.00464c90
call fcn.004b8200
movups xmm0, xmmword [ebp - 0x10c8]
mov ecx, dword [0x5aa380]
sub esp, 0x40
mov eax, esp
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x10d8]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x10e8]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x10f8]
movups xmmword [eax + 0x30], xmm0
call fcn.004b8320
mov eax, dword [0x5a942c]
push 1
push 0xe
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x5a942c]
push 1
push 0x89
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x5a942c]
push 1
push 0x16
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x5a942c]
push 5
push 0x13
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x5a942c]
push 6
push 0x14
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x5a942c]
push 2
push 9
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov ecx, dword [esi + 0x19c]
mov eax, dword [ecx]
call dword [eax + 0x18]
sub esp, 0x10
push dword [esi + 0x10c]
call fcn.0045b8d0
mov esi, dword [0x5a942c]
mov eax, dword [esi + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [esi + 0x2a3d8]
push 0
push 0
push 0
mov dword [esi + 0x2a6a0], 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x3c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c8873
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0052501e
int3