Function at 0x4cd500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5f91cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x4cd8e4
sub esp, 0x88
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
call fcn.00409fe0
mov eax, dword [esp + 4]
lea ecx, [0x4e0380]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea eax, [0x4f472f]
mov dword [esp], eax
mov dword [esp + 4], 8
lea eax, [esp + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1640
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004c1180
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x98]
xor esi, esi
jmp 0x4cd61d
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
lea ecx, [0x51b9b4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.004c1180
mov eax, dword [esp + 0x70]
lea esi, [eax + 1]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x98]
cmp ebp, esi
jle 0x4cd747
mov edi, dword [ebx + 0xc0]
imul eax, ebp
add eax, esi
mov edx, dword [edx + esi*4]
cmp edi, eax
jbe 0x4cd8dc
mov dword [esp + 0x70], esi
mov dword [esp + 0x7c], edx
mov ebp, dword [ebx + 0xbc]
mov eax, dword [ebp + eax*4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004cbf90
lea edi, [esp + 0x3c]
lea esi, [esp + 0xc]
call fcn.00463708
mov eax, dword [esp + 0x7c]
cmp dword [eax + 0x20], 0xffffffff
jne 0x4cd6a4
mov eax, dword [esp + 0x90]
mov dword [esp], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 8], ecx
movsd xmm0, qword [0x51c4dc]
movsd qword [esp + 0xc], xmm0
call fcn.004cc0c0
nop
jmp 0x4cd760
nop
jmp 0x4cd7b3
nop
jmp 0x4cd7f6
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00409fe0
mov eax, dword [esp + 4]
lea ecx, [0x4e0380]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea eax, [0x4f4086]
mov dword [esp], eax
mov dword [esp + 4], 5
lea edx, [esp + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1640
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004c1180
xor eax, eax
jmp 0x4cd8ce
add esp, 0x88
ret
movsd xmm2, qword [0x51c4c4]
subsd xmm0, xmm2
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [esp + 0x54]
movsd xmm1, qword [0x51c4bc]
ucomisd xmm0, xmm1
jae 0x4cd74e
jmp 0x4cd788
movsd xmm3, qword [0x51c4c4]
addsd xmm0, xmm3
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [esp + 0x54]
movsd xmm2, qword [0x51c4e4]
ucomisd xmm2, xmm0
ja 0x4cd776
jmp 0x4cd6aa
movsd xmm3, qword [0x51c4c4]
subsd xmm0, xmm3
movsd qword [esp + 0x5c], xmm0
movsd xmm0, qword [esp + 0x5c]
ucomisd xmm0, xmm1
jae 0x4cd7a1
jmp 0x4cd7d3
movsd xmm3, qword [0x51c4c4]
addsd xmm0, xmm3
movsd qword [esp + 0x5c], xmm0
movsd xmm0, qword [esp + 0x5c]
ucomisd xmm2, xmm0
ja 0x4cd7c1
jmp 0x4cd6b0
movsd xmm3, qword [0x51c4c4]
subsd xmm0, xmm3
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
ucomisd xmm0, xmm1
jae 0x4cd7e4
jmp 0x4cd816
movsd xmm3, qword [0x51c4c4]
addsd xmm0, xmm3
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
ucomisd xmm2, xmm0
ja 0x4cd804
jmp 0x4cd6b6
mov dword [esp + 0x6c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
movsd xmm0, qword [esp + eax*8 + 0x3c]
movsd qword [esp + 0x74], xmm0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0040a040
mov eax, dword [esp + 8]
lea ecx, [0x4e0500]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
lea eax, [0x4f3dde]
mov dword [esp], eax
mov dword [esp + 4], 3
lea edx, [esp + 0x80]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1640
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004c1180
mov eax, dword [esp + 0x6c]
inc eax
cmp eax, 6
jl 0x4cd827
jmp 0x4cd5d2
mov ecx, edi
call fcn.00463120
nop
call fcn.00461ca0
jmp fcn.004cd500