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

Disassembly:
sub esp, 0x54
fld dword [0x674da0]
fmul dword [0x674dcc]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor edx, edx
fst dword [esp + 0x18]
fld dword [0x674da0]
fmul dword [0x674dc8]
mov ecx, dword [esi + 0x10]
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], ebx
fst dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
fstp dword [esp + 0x20]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x24]
cmp ebp, 4
setne dl
dec edx
and edx, eax
mov ebp, edx
je 0x4a500d
mov ecx, ebp
call fcn.004e6b50
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], ebx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x38]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jle 0x4a52d8
cmp eax, 1
jne 0x4a5030
mov edi, dword [esi + 0x3c]
jmp 0x4a5036
mov edx, dword [esi + 0x3c]
mov edi, dword [edx + ebx*4]
cmp edi, 0xffffffff
jne 0x4a5055
mov eax, dword [esi + 0x40]
fld dword [eax + ebx*4 - 4]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
fsubr dword [esp + 0x14]
jmp 0x4a52c4
test ebx, ebx
je 0x4a5064
mov ecx, dword [esi + 0x40]
fld dword [esp + 0x14]
fstp dword [ecx + ebx*4 - 4]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4a5170
fild dword [esp + 0x40]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a5094
fst dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a50a7
fstp dword [esp + 0x28]
jmp 0x4a50a9
fstp st(0)
fild dword [esp + 0x48]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a50be
fst dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a50d1
fstp dword [esp + 0x28]
jmp 0x4a50d3
fstp st(0)
fild dword [esp + 0x3c]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
fadd dword [esp + 0x14]
fild dword [esp + 0x44]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
fadd dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a510c
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a511f
fstp dword [esp + 0x20]
jmp 0x4a5121
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4a5138
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x20]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x4a514f
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x34]
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
jmp 0x4a52af
push edi
mov ecx, ebp
call fcn.004e6b30
lea ecx, [esp + 0x12]
lea edx, [esp + 0x10]
mov ebx, eax
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.004e6b10
movsx eax, word [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
sub edx, eax
sub ecx, eax
movsx eax, word [esp + 0x12]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
fild dword [esp + 0x3c]
fld dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
fcomp st(1)
sub edx, eax
sub ecx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
fnstsw ax
test ah, 0x41
jne 0x4a51d3
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a51e6
fstp dword [esp + 0x20]
jmp 0x4a51e8
fstp st(0)
fild dword [esp + 0x44]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a51fd
fst dword [esp + 0x1c]
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a5210
fstp dword [esp + 0x20]
jmp 0x4a5212
fstp st(0)
fild dword [esp + 0x40]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
fadd dword [esp + 0x14]
fild dword [esp + 0x48]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
fadd dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a524b
fst dword [esp + 0x24]
fld dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a525e
fstp dword [esp + 0x28]
jmp 0x4a5260
fstp st(0)
fld dword [esp + 0x24]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4a5277
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
fld dword [esp + 0x28]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x4a528e
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
push ebx
mov ecx, ebp
call fcn.004e6b00
movsx edx, ax
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x38]
fild dword [esp + 0x2c]
fmul dword [esp + 0x18]
fmul dword [0x662c1c]
fadd dword [esp + 0x14]
cmp edi, 0x20
jne 0x4a52be
mov eax, dword [esi + 0x10]
fadd dword [eax + 0xc]
mov ecx, dword [esi + 0x10]
fadd dword [ecx + 8]
mov eax, dword [esi + 0x38]
inc ebx
fstp dword [esp + 0x14]
cmp ebx, eax
mov dword [esp + 0x38], ebx
jl 0x4a5026
mov eax, dword [esp + 0x30]
test eax, eax
mov eax, dword [esp + 0x68]
je 0x4a5322
test eax, eax
je 0x4a52ee
mov dword [eax], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4a52fc
mov edx, dword [esp + 0x14]
mov dword [eax], edx
fld dword [esp + 0x18]
fmul dword [esp + 0x1c]
fmul dword [0x662c1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x20]
fmul dword [0x662c1c]
fstp dword [esp + 0x20]
jmp 0x4a5362
test eax, eax
je 0x4a5330
fld dword [esp + 0x14]
fmul dword [esp + 0x70]
fstp dword [eax]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4a533e
mov dword [eax], 0
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
fmul dword [0x662c1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
fmul dword [0x662c1c]
fstp dword [esp + 0x28]
mov eax, dword [0x674da4]
lea edx, [esp + 0x4c]
mov ecx, eax
push edx
mov dword [esp + 0x50], ecx
mov ecx, esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
call fcn.004a4d90
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea edi, [esi + 0x1c]
lea ebx, [esi + 0x20]
lea ebp, [esi + 0x28]
mov dword [edi], eax
lea eax, [esi + 0x24]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x28]
push ebp
push eax
mov dword [eax], ecx
push ebx
push edi
lea ecx, [esp + 0x5c]
mov dword [ebp], edx
mov dword [esp + 0x78], eax
call fcn.004a27c0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x20]
cmp eax, 1
je 0x4a53ed
cmp eax, 2
je 0x4a53ed
cmp eax, 5
je 0x4a53ed
cmp eax, 6
jne 0x4a5419
mov eax, dword [esi + 8]
fld dword [eax + 0x18]
fmul dword [0x6641a8]
fld dword [edi]
mov eax, dword [esp + 0x68]
fsub st(1)
fstp dword [edi]
fld st(0)
fadd dword [ebx]
fstp dword [ebx]
fld st(0)
fadd dword [eax]
fstp dword [eax]
fld dword [ebp]
fsub st(1)
fstp dword [ebp]
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc