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

Disassembly:
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3a4]
mov ebx, dword [ecx]
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esi + 0x470]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jle 0x4a948b
add edi, 0x10
push ebp
nop
mov eax, dword [esi + 0x3ec]
fld dword [0x521590]
imul ebx, ebx, 0x3c
fdiv dword [eax + 0x54]
mov edx, dword [esi + 0x3a8]
mov ecx, dword [esi + 0x4bc]
lea ebp, [ebx + edx]
fld dword [eax + 0x54]
fsub dword [ebp + 0x28]
fmul dword [ecx + 0x28]
fld dword [ecx + 0x24]
fmul dword [ebp + 0x28]
faddp st(1)
fmul st(1)
fstp dword [esp + 0x10]
fmul dword [ebp + 0x28]
fmul dword [0x523a78]
call fcn.00514cfc
fld dword [esi + 0x4a4]
fsub dword [esi + 0x4b0]
shl eax, 0x18
fld dword [esi + 0x4a8]
mov ecx, eax
fsub dword [esi + 0x4b4]
mov eax, 0xffffff
fld dword [esi + 0x4ac]
sub eax, ecx
fsub dword [esi + 0x4b8]
lea edx, [edi - 0x10]
fstp dword [esp + 0x9c]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x7c]
fmul dword [esp + 0x10]
fld dword [esp + 0x9c]
fmul dword [esp + 0x10]
fld dword [esp + 0x7c]
fadd dword [ebp + 8]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fxch st(1)
fadd dword [ebp + 0xc]
fstp dword [esp + 0x20]
fadd dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov dword [edi - 4], eax
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], ecx
xor ebp, ebp
mov dword [edi], ebp
mov dword [edi + 4], ebp
fld dword [esi + 0x4b0]
fadd dword [esi + 0x4a4]
mov edx, dword [esi + 0x3a8]
fld dword [esi + 0x4b4]
lea ecx, [ebx + edx + 8]
fadd dword [esi + 0x4a8]
fld dword [esi + 0x4b8]
fadd dword [esi + 0x4ac]
fstp dword [esp + 0xb4]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x64]
fmul dword [esp + 0x10]
fld dword [esp + 0xb4]
fmul dword [esp + 0x10]
fld dword [esp + 0x64]
fadd dword [ecx]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [esp + 0x38]
fadd dword [ecx + 8]
mov dword [edi + 0x24], ebp
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x10]
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], edx
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov edx, 0x3f800000
mov dword [edi + 0x20], edx
fld dword [esi + 0x4a4]
fchs
mov ecx, dword [esi + 0x3a8]
fld dword [esi + 0x4a8]
lea ecx, [ebx + ecx + 8]
fchs
fld dword [esi + 0x4ac]
fchs
fstp dword [esp + 0x78]
fxch st(1)
fsub dword [esi + 0x4b0]
fstp dword [esp + 0x88]
fsub dword [esi + 0x4b4]
fld dword [esp + 0x78]
fsub dword [esi + 0x4b8]
fld dword [esp + 0x88]
fmul dword [esp + 0x10]
fstp dword [esp + 0x58]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x5c]
fmul dword [esp + 0x10]
fld dword [esp + 0x58]
fadd dword [ecx]
fstp dword [esp + 0x28]
mov ebp, dword [esp + 0x28]
fld dword [esp + 0x5c]
fadd dword [ecx + 4]
fstp dword [esp + 0x2c]
fadd dword [ecx + 8]
lea ecx, [edi + 0x30]
mov dword [ecx], ebp
mov ebp, dword [esp + 0x2c]
mov dword [ecx + 4], ebp
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], edx
fstp dword [esp + 0x30]
mov ebp, dword [esp + 0x30]
mov dword [ecx + 8], ebp
fld dword [esi + 0x4a4]
fchs
fld dword [esi + 0x4a8]
fchs
fld dword [esi + 0x4ac]
fchs
fstp dword [esp + 0xa8]
fxch st(1)
fadd dword [esi + 0x4b0]
fstp dword [esp + 0xb8]
fadd dword [esi + 0x4b4]
fld dword [esp + 0xa8]
fadd dword [esi + 0x4b8]
fld dword [esp + 0xb8]
mov ecx, dword [esi + 0x3a8]
fmul dword [esp + 0x10]
lea ebx, [ebx + ecx + 8]
lea ecx, [edi + 0x50]
add edi, 0x80
fstp dword [esp + 0x4c]
fxch st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x50]
fmul dword [esp + 0x10]
fld dword [esp + 0x4c]
fadd dword [ebx]
fstp dword [esp + 0x40]
fld dword [esp + 0x50]
fadd dword [ebx + 4]
fstp dword [esp + 0x44]
fadd dword [ebx + 8]
mov ebx, dword [esp + 0x40]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x44]
mov dword [ecx + 4], ebx
fstp dword [esp + 0x48]
mov ebx, dword [esp + 0x48]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [edi - 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [edi - 0x20], edx
mov dword [edi - 0x1c], edx
mov edx, dword [esi + 0x3a4]
mov eax, dword [edx + eax*8]
inc ebx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x4a9486
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
mov ebx, ecx
jmp 0x4a91b0
mov eax, dword [esp + 0x18]
pop ebp
lea edx, [eax + eax*2]
lea ecx, [eax*4]
shl edx, 1
pop edi
mov dword [esi + 0x47c], ecx
mov dword [esi + 0x478], edx
pop esi
pop ebx
add esp, 0xb4
ret