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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push edi
mov eax, dword [esi + 0xc]
test eax, 0x80000000
je 0x4a6f24
mov ecx, dword [0x80ecc0]
and eax, 0x7fffffff
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
fild qword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fmul dword [esi + 0x24]
fmul dword [0x4c33ac]
fild qword [esp + 0x14]
jmp 0x4a6f5b
mov ecx, dword [0x80ec80]
and eax, 0x7fffffff
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 4]
fild qword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fmul dword [esi + 0x24]
fmul dword [0x4c33ac]
fild qword [esp + 0x14]
fmul dword [esi + 0x28]
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, 0x597808
fmul dword [0x4c33ac]
test al, 0xf
fstp dword [esp + 0x10]
fild dword [esi + 0x14]
fmul qword [0x4c3370]
fld st(0)
fcos
fstp dword [esp + 0x1c]
fsin
fld dword [esp + 0x1c]
fmul st(2)
fstp dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x10]
fstp dword [esp + 0x14]
fmulp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
jne 0x4a6fb6
mov ebp, 1
mov edi, ebp
jmp 0x4a6fc3
mov edi, eax
mov ebp, eax
shr edi, 2
and ebp, 3
and edi, 3
mov dword [esp + 0x1c], 4
mov eax, dword [ecx]
mov ebx, dword [esi + 0x20]
mov edx, dword [ecx + 4]
add ecx, 4
fld dword [esi + 0x1c]
mov dword [esp + 0x10], ebx
sub eax, ebp
xor ebx, ebx
sub edx, edi
add ecx, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
je 0x4a7008
fild dword [esp + 0x28]
fld st(0)
fmul dword [esp + 0x24]
faddp st(2)
fmul st(3)
fsubr dword [esp + 0x10]
fstp dword [esp + 0x10]
cmp edx, ebx
je 0x4a7022
fild dword [esp + 0x2c]
fld st(0)
fmul dword [esp + 0x14]
faddp st(2)
fmul st(2)
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
fstp dword [eax]
mov dword [eax + 4], edx
add eax, 0x20
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4a6fcb
fstp st(0)
fstp st(0)
fld dword [0x4c3380]
fdiv dword [esi + 4]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ebx
fstp dword [esp + 0xac]
fld dword [0x7e5bf0]
fmul dword [esi + 4]
mov eax, dword [esp + 0xac]
mov ecx, eax
mov dword [esp + 0x8c], eax
fadd dword [0x7e5c00]
mov edx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x18]
fmul dword [esp + 0xac]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x50], eax
mov eax, ecx
mov dword [esp + 0x4c], edx
fst dword [esp + 0xa8]
fst dword [esp + 0x88]
fst dword [esp + 0x68]
fstp dword [esp + 0x48]
fld dword [esi + 0x2c]
shr eax, 8
fst dword [esp + 0x98]
fstp dword [esp + 0x58]
fld dword [esi + 0x34]
and eax, 7
fst dword [esp + 0xb8]
fstp dword [esp + 0x78]
fld dword [esi + 0x30]
fst dword [esp + 0x7c]
fstp dword [esp + 0x5c]
fld dword [esi + 0x38]
fst dword [esp + 0xbc]
fstp dword [esp + 0x9c]
jne 0x4a7118
mov eax, 4
shl eax, 0x1d
mov dword [esp + 0x34], eax
mov eax, 0x18000
test ch, 8
mov dword [esp + 0x3c], ebx
jne 0x4a7132
mov eax, 0x818000
test dword [esi], 0x80000000
je 0x4a7149
mov dword [esp + 0x30], 0x2000000
or eax, 0x94100000
jmp 0x4a714e
or eax, 0x20000000
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
call fcn.004a6bb0
mov eax, dword [0x7e5b94]
add esp, 4
test al, 3
mov dword [esp + 0x14], eax
je 0x4a7180
mov eax, dword [0x7dcdf4]
mov edx, dword [0x5977b0]
push edx
push 0x16
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test byte [esp + 0x14], 0x40
je 0x4a7196
mov eax, dword [0x7dcdf4]
push 1
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov dword [0x7e5b94], ebx
mov esi, dword [esi + 0xc]
test esi, 0x80000000
je 0x4a71b8
mov edx, dword [0x80ecc8]
and esi, 0x7fffffff
mov esi, dword [edx + esi*4]
jmp 0x4a71c6
mov eax, dword [0x80ec8c]
and esi, 0x7fffffff
mov esi, dword [eax + esi*4]
cmp esi, ebx
jne 0x4a71f2
mov eax, dword [0x7dcdf4]
push 3
push 2
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
mov eax, dword [0x7dcdf4]
push 3
push 5
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
jmp 0x4a71fc
push esi
push ebx
call fcn.004a55d0
add esp, 8
mov eax, dword [0x7dcdf4]
push ebx
push 0x88
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea edx, [esp + 0x40]
push 4
push edx
call fcn.004a4e20
mov eax, dword [0x7dcdf4]
add esp, 8
mov ecx, dword [eax]
push 1
push 0x88
push eax
call dword [ecx + 0x50]
cmp esi, ebx
jne 0x4a7258
mov eax, dword [0x7dcdf4]
push 2
push 2
push ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x94]
mov eax, dword [0x7dcdf4]
push 2
push 5
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret