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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov edx, dword [ebp + 0x19e4]
push esi
mov esi, dword [0x705898]
mov ecx, dword [esi + 0x3c4]
imul ecx, ecx, 0x9a0
add ecx, ebp
cmp edx, 0xf0
push edi
jge 0x4c0897
mov dword [esp + 0x14], 0x80
jmp 0x4c08d8
cmp edx, 0x1d0
jge 0x4c08d0
mov eax, 0x1d0
sub eax, edx
lea edi, [eax*8]
sub edi, eax
add edi, edi
add edi, edi
add edi, edi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax + 0x48]
mov dword [esp + 0x14], edx
jmp 0x4c08d8
mov dword [esp + 0x14], 0x48
movss xmm4, dword [0x649614]
movss xmm0, dword [0x649534]
movss xmm1, dword [0x64961c]
movss xmm2, dword [0x64ea60]
movss xmm3, dword [0x64ea58]
xor ebx, ebx
mov edi, 0x3e8
add ecx, 0x120
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
jmp 0x4c0931
mov esi, dword [0x705898]
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp + 0x19e8]
lea ecx, [edi - 1]
cmp eax, ecx
jle 0x4c094d
cdq
idiv edi
mov ecx, 0xa
cdq
idiv ecx
mov edi, edx
jmp 0x4c095b
mov edi, dword [esp + 0x24]
sub edi, 3
neg edi
sbb edi, edi
and edi, 0xa
mov ecx, dword [ebp + 0x19e0]
sub ecx, ebx
sub ecx, 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
jns 0x4c0974
xor ecx, ecx
jmp 0x4c0987
cmp ecx, 0xc
jl 0x4c098b
mov edi, 0xa
mov ecx, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x78], 0
movss xmm5, dword [esi + 0x3b4]
mov ebx, dword [esi + 0x3a8]
mulss xmm5, xmm4
je 0x4c09f3
mov eax, dword [esi + 0x3a4]
cvttss2si edx, xmm5
sub eax, edx
mov edx, dword [esp + 0x28]
movss xmm5, dword [esi + 0x3b8]
lea ebp, [eax + edx - 0x85]
mov eax, ebx
imul eax, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
mulss xmm5, xmm4
cvttss2si edx, xmm5
sub eax, edx
mov dword [esp + 0x40], eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
lea ebx, [edx + eax - 0x2a]
mov eax, 0x33
jmp 0x4c0a24
mov edx, dword [esi + 0x3a4]
cvttss2si eax, xmm5
movss xmm5, dword [esi + 0x3b8]
sub edx, eax
mov eax, dword [esp + 0x2c]
lea ebp, [edx + eax - 0xaa]
mulss xmm5, xmm4
cvttss2si edx, xmm5
sub ebx, edx
sub ebx, 0x48
mov eax, 0x40
mov edx, 0xc
sub edx, ecx
imul edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
mov eax, edi
shl eax, 6
mov dword [esp + 0x50], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, ecx
neg esi
mov edx, ecx
mov ecx, dword [esp + 0x48]
shl esi, 4
shl edx, 7
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], edx
jmp 0x4c0a87
mov edi, dword [esp + 0x18]
cmp edi, 0xa
je 0x4c0bd6
cmp dword [esp + 0x1c], 0
jne 0x4c0aa2
cmp dword [esp + 0x10], 3
jne 0x4c0bd6
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, ebx
sub eax, edi
and eax, 0xffff
cdq
or eax, 0xffc20000
shld edx, eax, 0x10
shl eax, 0x10
mov ebx, eax
mov eax, edx
mov dword [esp + 0x48], eax
mov eax, ebp
and eax, 0xffff
cdq
or ebx, eax
mov eax, dword [esp + 0x48]
or eax, edx
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x30]
add eax, edi
mov ebp, dword [esp + 0x3c]
mov dword [ecx - 8], ebx
mov ebx, dword [esp + 0x34]
add eax, ebx
and eax, 0xffff
cdq
or eax, 0xffc20000
shld edx, eax, 0x10
shl eax, 0x10
mov edi, eax
mov eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
lea eax, [esi + edx]
mov esi, dword [esp + 0x50]
add eax, ebp
and eax, 0xffff
cdq
or edi, eax
mov eax, dword [esp + 0x48]
or eax, edx
mov dword [ecx + 0xc], eax
cvtsi2ss xmm5, esi
addss xmm5, xmm0
mulss xmm5, xmm1
movss dword [esp + 0x5c], xmm5
mov eax, dword [esp + 0x5c]
mov dword [ecx - 0x10], eax
lea eax, [esi + 0x40]
cvtsi2ss xmm5, eax
movss dword [esp + 0x60], xmm2
mov edx, dword [esp + 0x60]
mov dword [ecx - 0xc], edx
subss xmm5, xmm0
mulss xmm5, xmm1
movss dword [esp + 0x64], xmm5
mov edx, dword [esp + 0x64]
mov dword [ecx], edx
add eax, 0xffffffff
movss dword [esp + 0x68], xmm3
mov edx, dword [esp + 0x68]
mov dword [ecx + 4], edx
cdq
shld edx, eax, 0xa
shl eax, 0xa
mov dword [ecx + 8], edi
mov edi, eax
mov eax, edx
mov dword [esp + 0x48], eax
mov eax, esi
cdq
or edi, eax
mov eax, dword [esp + 0x48]
or eax, edx
shld eax, edi, 4
mov esi, dword [esp + 0x58]
or al, 0xfc
shl edi, 4
or edi, 0xa
mov dword [ecx - 0x20], edi
mov dword [ecx - 0x1c], eax
mov eax, dword [esp + 0x20]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x40]
sar eax, 2
mov byte [ecx - 0x15], al
mov eax, dword [esp + 0x54]
jmp 0x4c0be4
xor edi, edi
mov dword [ecx - 8], edi
mov dword [ecx - 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
add dword [esp + 0x10], 1
add dword [esp + 0x20], eax
add edx, esi
add ecx, 0x90
cmp dword [esp + 0x10], 4
mov dword [esp + 0x40], edx
jl 0x4c0a83
mov ebx, dword [esp + 0x44]
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x19
add dword [esp + 0x2c], 0x20
mov eax, 0x66666667
imul dword [esp + 0x4c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 2
cmp ebx, 8
mov edi, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
jl 0x4c0927
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret