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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x34
push 0
push esi
mov dword [esp + 0x44], 0xffffff9d
mov dword [esp + 0x48], 1
call fcn.004b0740
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [esi + 0x24], eax
fild dword [edi]
add esp, 0xc
fmul qword [0x4ca4c0]
call fcn.004b1510
fstp qword [esp + 0x70]
fld qword [0x4ca418]
call fcn.004b1510
fdivr qword [esp + 0x70]
sub esp, 8
fadd qword [0x4ca410]
fstp qword [esp]
call fcn.004b13a0
fsub qword [0x4c9a90]
add esp, 8
call fcn.004b08b0
fild dword [ebp + 0x18]
mov ebx, eax
mov dword [esi + 0x20], ebx
fst qword [esp + 0x70]
fild dword [ebp + 0x14]
fst qword [esp + 0x60]
fxch st(1)
fmul qword [0x4ca4b8]
fmul qword [0x4ca410]
fdivrp st(1)
call fcn.004b1510
fmul qword [0x4ca448]
lea ecx, [ebx + 1]
mov edx, 1
fsub qword [0x4ca458]
shl edx, cl
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
fmulp st(1)
fisub dword [edi]
call fcn.004b08b0
fild dword [ebp + 0x14]
mov edi, eax
mov dword [esi + 0x1c], edi
fadd qword [0x4ca4b8]
fmul qword [esp + 0x70]
fmul qword [0x4ca410]
fdiv qword [esp + 0x60]
call fcn.004b1510
fmul qword [0x4ca448]
mov ecx, ebx
add ecx, 1
fsub qword [0x4ca458]
mov eax, 1
shl eax, cl
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmulp st(1)
fadd qword [0x4ca410]
call fcn.004b08b0
mov ebx, dword [ebp + 0x14]
sub eax, edi
add eax, 1
lea edi, [ebx*4]
push edi
mov dword [esi + 0x28], eax
call fcn.004b0c11
push edi
mov dword [esi + 0x10], eax
call fcn.004b0c11
push edi
mov dword [esi + 0x14], eax
call fcn.004b0c11
fld1
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
fstp dword [esi + 0x30]
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, 0x6590
mov dword [esi + 4], ecx
mov dword [esi], ebx
mov dword [esi + 0x2c], eax
jge 0x4a1ebe
fldz
jmp 0x4a1eda
cmp eax, 0x9470
jge 0x4a1ecd
fld dword [0x4ca4b4]
jmp 0x4a1eda
cmp eax, 0xb3b0
jle 0x4a1edd
fld dword [0x4ca4b0]
fstp dword [esi + 0x30]
fild dword [ebp + 0x18]
xor edi, edi
mov dword [esp + 0x34], edi
fstp qword [esp + 0x68]
mov edx, dword [esp + 0x34]
add edx, 1
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
fmul qword [0x4ca440]
fsub qword [0x4ca418]
fadd qword [0x4ca458]
fmul qword [0x4ca450]
call fcn.004b1a3c
fadd st(0), st(0)
sub esp, 8
fmul qword [esp + 0x68]
fdiv qword [esp + 0x70]
fadd qword [0x4ca410]
fstp qword [esp]
call fcn.004b13a0
add esp, 8
call fcn.004b08b0
cmp edi, eax
mov edx, dword [esp + 0x34]
fld dword [edx*4 + 0x4ed290]
fstp dword [esp + 0x34]
jge 0x4a206e
fld dword [edx*4 + 0x4ed294]
mov ecx, eax
fsub dword [esp + 0x34]
sub ecx, edi
cmp ecx, 4
mov dword [esp + 0x54], ecx
fidiv dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fld qword [0x4ca470]
jl 0x4a202d
lea ecx, [edi + 2]
cmp edi, ebx
jge 0x4a206a
fld dword [esp + 0x34]
mov edx, dword [esi + 0x10]
fld st(0)
fadd st(2)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [edx + edi*4]
lea edx, [ecx - 1]
cmp edx, ebx
fld st(2)
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x34]
jge 0x4a205b
cmp ecx, ebx
fld dword [esp + 0x34]
mov edx, dword [esi + 0x10]
fld st(0)
fadd st(3)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [edx + edi*4 + 4]
fadd st(1)
fstp dword [esp + 0x34]
jge 0x4a2060
fld dword [esp + 0x34]
mov edx, dword [esi + 0x10]
fld st(0)
fadd st(3)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [edx + edi*4 + 8]
lea edx, [ecx + 1]
cmp edx, ebx
fadd st(1)
fstp dword [esp + 0x34]
jge 0x4a2065
fld dword [esp + 0x34]
mov edx, dword [esi + 0x10]
fld st(0)
add edi, 4
fadd st(3)
add ecx, 4
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [edx + edi*4 - 4]
lea edx, [eax - 3]
cmp edi, edx
faddp st(1)
fstp dword [esp + 0x34]
jl 0x4a1f81
cmp edi, eax
jge 0x4a206a
cmp edi, ebx
jge 0x4a206a
fld dword [esp + 0x34]
mov ecx, dword [esi + 0x10]
fld st(0)
add edi, 1
cmp edi, eax
fadd st(2)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [ecx + edi*4 - 4]
fadd st(2)
fstp dword [esp + 0x34]
jl 0x4a2031
jmp 0x4a206a
add edi, 1
jmp 0x4a2068
add edi, 2
jmp 0x4a2068
add edi, 3
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x4c]
cmp eax, 0x57
mov dword [esp + 0x34], eax
jl 0x4a1eea
test ebx, ebx
mov dword [esp + 0x34], 0
jle 0x4a22a8
mov eax, dword [ebp + 0x18]
lea ecx, [ebx + ebx]
cdq
idiv ecx
mov edi, eax
mov ebx, eax
imul ebx, edi
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x48]
fild dword [esp + 0x4c]
imul edx, dword [esp + 0x34]
fstp qword [esp + 0x58]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
fmul qword [0x4ca4a8]
call fcn.004b1ad0
fmul qword [0x4ca4a0]
fstp qword [esp + 0x70]
fld qword [esp + 0x58]
fmul qword [0x4ca498]
call fcn.004b1ad0
fmul qword [0x4ca490]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x78]
fadd qword [esp + 0x70]
mov edx, dword [esp + 0x38]
fld qword [esp + 0x58]
add eax, edx
cmp eax, dword [esp + 0x34]
fmul qword [0x4ca488]
faddp st(1)
fstp dword [esp + 0x54]
jge 0x4a21c1
fld dword [esp + 0x54]
mov dword [esp + 0x50], eax
fsub dword [ecx + 0x70]
mov ecx, edx
mov eax, edi
imul eax, ecx
fstp qword [esp + 0x78]
mov dword [esp + 0x44], eax
mov eax, ebx
imul eax, ecx
mov dword [esp + 0x40], eax
jmp 0x4a2148
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
fild dword [esp + 0x44]
imul eax, ecx
fstp qword [esp + 0x70]
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fmul qword [0x4ca4a8]
call fcn.004b1ad0
fmul qword [0x4ca4a0]
fstp qword [esp + 0x58]
fld qword [esp + 0x70]
fmul qword [0x4ca498]
call fcn.004b1ad0
fmul qword [0x4ca490]
fadd qword [esp + 0x58]
fld qword [esp + 0x70]
fmul qword [0x4ca488]
faddp st(1)
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 5
jp 0x4a21be
mov eax, dword [esp + 0x50]
add dword [esp + 0x38], 1
add dword [esp + 0x40], ebx
add dword [esp + 0x44], edi
add eax, 1
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
jl 0x4a2140
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
cmp eax, dword [ebp + 0x14]
jg 0x4a2275
mov ecx, dword [ecx + 0x7c]
mov edx, dword [esp + 0x34]
add ecx, edx
mov dword [esp + 0x58], ecx
mov ecx, edi
imul ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, ebx
imul ecx, eax
mov dword [esp + 0x50], ecx
cmp eax, dword [esp + 0x58]
jl 0x4a225b
fild dword [esp + 0x44]
imul ecx, eax
fstp qword [esp + 0x70]
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
fmul qword [0x4ca4a8]
call fcn.004b1ad0
fmul qword [0x4ca4a0]
fstp qword [esp + 0x78]
fld qword [esp + 0x70]
fmul qword [0x4ca498]
call fcn.004b1ad0
fmul qword [0x4ca490]
mov eax, dword [ebp + 0xc]
fadd qword [esp + 0x78]
fld qword [esp + 0x70]
fmul qword [0x4ca488]
faddp st(1)
fld dword [eax + 0x74]
fadd dword [esp + 0x54]
fcompp
fnstsw ax
test ah, 0x41
mov eax, dword [esp + 0x3c]
jne 0x4a2275
mov ecx, dword [esp + 0x50]
add dword [esp + 0x44], edi
add eax, 1
add ecx, ebx
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], ecx
jle 0x4a21ed
mov ecx, dword [esp + 0x38]
add dword [esp + 0x48], ebx
add dword [esp + 0x4c], edi
shl ecx, 0x10
lea edx, [ecx + eax - 0x10001]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x18]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
jl 0x4a20a9
mov ebx, dword [ebp + 0x14]
fld qword [0x4ca410]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x34], edi
jle 0x4a2314
fild dword [esp + 0x34]
fadd qword [0x4ca4b8]
fmulp st(1)
fmul qword [esp + 0x68]
fdiv qword [esp + 0x60]
call fcn.004b1510
fmul qword [0x4ca448]
mov ecx, dword [esi + 0x20]
add ecx, 1
fsub qword [0x4ca458]
mov edx, 1
shl edx, cl
mov dword [esp + 0x58], edx
fild dword [esp + 0x58]
fmulp st(1)
fld qword [0x4ca410]
fadd st(1), st(0)
fxch st(1)
call fcn.004b08b0
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi*4], eax
add edi, 1
cmp edi, ebx
mov dword [esp + 0x34], edi
jl 0x4a22b8
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x1c]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0x18]
fstp dword [esp]
push ebx
push ecx
fmul qword [esp + 0x78]
lea ecx, [eax + 0x24]
fdiv qword [esp + 0x70]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fstp dword [esp]
call fcn.004a1150
push 0xc
mov dword [esi + 8], eax
call fcn.004b0c11
add esp, 0x14
mov dword [esi + 0xc], eax
xor edi, edi
jmp 0x4a2360
lea eax, [ebx*4]
push eax
call fcn.004b0c11
mov edx, dword [esi + 0xc]
mov dword [edi + edx], eax
add edi, 4
add esp, 4
cmp edi, 0xc
jl 0x4a2360
xor edi, edi
test ebx, ebx
mov dword [esp + 0x34], edi
jle 0x4a249b
fld qword [esp + 0x60]
fadd st(0), st(0)
fstp qword [esp + 0x78]
fild dword [esp + 0x34]
fadd qword [0x4ca410]
fmul qword [esp + 0x68]
fdiv qword [esp + 0x78]
call fcn.004b1510
fmul qword [0x4ca448]
fsub qword [0x4ca458]
fadd st(0), st(0)
fstp dword [esp + 0x38]
fldz
fld dword [esp + 0x38]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4a23da
fstp st(0)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x4a23f9
fstp st(1)
fld dword [0x4ca484]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4a23f7
fstp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x4a23f9
fstp st(0)
fld st(0)
call fcn.004b08b0
mov ecx, dword [esi + 4]
mov dword [esp + 0x58], eax
fisub dword [esp + 0x58]
add edi, 1
cmp edi, ebx
mov dword [esp + 0x34], edi
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fld1
fsub st(1)
fld dword [ecx + eax*4 + 0x84]
fmul st(1)
fld dword [ecx + eax*4 + 0x88]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
fmul st(3)
faddp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fstp dword [edx + edi*4 - 4]
mov ecx, dword [esi + 4]
fld dword [ecx + eax*4 + 0xc8]
fmul st(1)
fld dword [ecx + eax*4 + 0xcc]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 4]
fmul st(3)
faddp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fstp dword [edx + edi*4 - 4]
mov ecx, dword [esi + 4]
fmul dword [ecx + eax*4 + 0x10c]
fld dword [ecx + eax*4 + 0x110]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 8]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fstp dword [ecx + edi*4 - 4]
jl 0x4a2396
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret