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

Disassembly:
sub esp, 0x28
push esi
call fcn.00452ee0
mov dword [esp + 0x14], eax
call fcn.00452ee0
mov esi, eax
add esi, 0x798
cmp dword [esi + 0x6e0], 4
mov dword [esp + 0xc], esi
je 0x45ca6e
mov eax, dword [0x705898]
mov eax, dword [eax + 0x3c4]
mov ecx, eax
shl ecx, 5
add ecx, 0x8e89b0
and ecx, 0xfffffff
mov dword [esp + 0x28], ecx
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ebx
mov ebx, dword [esi + 0x6f0]
add ecx, ecx
sub ecx, eax
mov eax, dword [esi + 0x6ec]
push ebp
push edi
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push 0xc0
push 0xc0
shl ecx, 4
push 4
add ecx, esi
push 0x54
mov dword [esp + 0x3c], ecx
add ecx, 0x10
push 0x10
push ecx
mov dword [esp + 0x34], ebx
call fcn.005227b0
add esp, 0x20
xor edi, edi
jmp 0x45c7c0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x45c7c0
mov ecx, dword [esi + 0x6e4]
sub ecx, edi
lea eax, [ecx + ebx + 2]
cdq
idiv ebx
mov edx, dword [esi + edx*4 + 0x6f4]
mov esi, dword [esi + 0x6e8]
test esi, esi
mov dword [esp + 0x2c], edx
jge 0x45c7f5
test edi, edi
jne 0x45c7ee
xor ebp, ebp
neg esi
jmp 0x45c802
lea ebp, [edi - 1]
neg esi
jmp 0x45c802
cmp edi, 4
mov ebp, 4
je 0x45c802
lea ebp, [edi + 1]
mov eax, dword [ebp*8 + 0x697888]
push ecx
mov ecx, dword [edi*8 + 0x697888]
cvtsi2ss xmm0, esi
mulss xmm0, dword [0x64ea5c]
movss dword [esp], xmm0
push eax
push ecx
call fcn.00449ce0
fld st(0)
fcos
movsx ecx, word [edi*8 + 0x69788c]
push 0x64
push esi
mov ebx, 0xb4
fnstcw word [esp + 0x24]
fmul dword [0x64ec44]
movzx eax, word [esp + 0x24]
or ah, 0xc
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp dword [esp + 0x30]
fldcw word [esp + 0x24]
fsin
fnstcw word [esp + 0x24]
fmul dword [0x64f6b4]
movzx eax, word [esp + 0x24]
or ah, 0xc
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
movsx eax, word [ebp*8 + 0x69788c]
push eax
push ecx
fistp dword [esp + 0x44]
mov edx, dword [esp + 0x44]
sub ebx, edx
mov dword [esp + 0x4c], ebx
fldcw word [esp + 0x2c]
call fcn.00449ca0
movsx edx, word [ebp*8 + 0x69788e]
push 0x64
mov dword [esp + 0x48], eax
movsx eax, word [edi*8 + 0x69788e]
push esi
push edx
push eax
call fcn.00449ca0
mov ecx, dword [esp + 0x54]
mov esi, eax
lea ecx, [ecx + ecx*2]
shl ecx, 5
mov eax, 0x51eb851f
imul ecx
mov eax, dword [esp + 0x40]
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add esp, 0x2c
add ebp, edx
cmp eax, 1
jg 0x45c8f4
jne 0x45c8ea
cmp edi, 2
je 0x45c8f4
mov dword [esp + 0x10], 0
jmp 0x45c916
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x6ec]
imul ecx, esi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
lea edx, [edi + edi*8]
shl edx, 4
lea esi, [edx + eax + 0xa0]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
sub ecx, eax
shl ecx, 5
lea eax, [ecx + edx + 0x8300]
push 0
push eax
call fcn.005282d0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
mov ecx, dword [0x705898]
sub ebx, ebp
cvtsi2ss xmm0, ebx
mulss xmm0, dword [ecx + 0x3b8]
cvttss2si eax, xmm0
and eax, 0xffff
or eax, 0x50000
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebx, eax
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
sub edx, ebp
cvtsi2ss xmm0, edx
mulss xmm0, dword [ecx + 0x3b4]
cvttss2si eax, xmm0
and eax, 0xffff
cdq
or ebx, eax
mov eax, dword [esp + 0x34]
or eax, edx
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x38]
lea ecx, [eax + ebp]
mov dword [esi + 0x78], ebx
cvtsi2ss xmm0, ecx
mov ecx, dword [0x705898]
mulss xmm0, dword [ecx + 0x3b8]
cvttss2si eax, xmm0
and eax, 0xffff
or eax, 0x50000
cdq
shld edx, eax, 0x10
shl eax, 0x10
mov ebx, eax
mov eax, edx
mov edx, dword [esp + 0x24]
add ebp, edx
mov dword [esp + 0x38], eax
cvtsi2ss xmm0, ebp
mulss xmm0, dword [ecx + 0x3b4]
cvttss2si eax, xmm0
and eax, 0xffff
cdq
or ebx, eax
mov eax, dword [esp + 0x38]
or eax, edx
mov dword [esi + 0x8c], eax
mov al, byte [esp + 0x18]
add edi, 1
add esp, 8
cmp edi, 5
mov dword [esi + 0x88], ebx
mov byte [esi + 0x6b], al
jl 0x45c7b0
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
add esi, 0x8300
mov edi, 9
lea ebx, [ebx]
push esi
push ebx
call fcn.00528260
add esp, 8
add esi, 0x1e0
sub edi, 1
jne 0x45ca40
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
push 0x37
push ecx
push ebx
call fcn.00550200
add esp, 0x18
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x28
ret