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

Disassembly:
mov eax, dword [ecx + 0x2c]
sub esp, 0x4c
push ebp
xor ebp, ebp
test eax, eax
jle 0x412b01
mov eax, dword [ecx + 0x30]
push ebx
push esi
push edi
xor esi, esi
lea esp, [esp]
mov edi, dword [esi + eax + 0x30]
test edi, edi
lea edx, [esi + eax]
jne 0x412aef
mov edi, dword [edx + 0x3c]
dec edi
test edi, edi
mov dword [esp + 0x10], 0
jle 0x412aef
lea edi, [esi + 0x58]
jmp 0x412880
mov ebx, dword [edi + eax - 0x10]
imul ebx, ebx, 0x78
fld dword [ebx + eax + 0xc]
fsub dword [edx + 0xc]
fld dword [ebx + eax + 0x10]
fsub dword [edx + 0x10]
fld dword [ebx + eax + 0x14]
fsub dword [edx + 0x14]
lea ebx, [ebx + eax + 0xc]
mov ebx, dword [edi + eax]
imul ebx, ebx, 0x78
fld dword [ebx + eax + 0xc]
fsub dword [edx + 0xc]
fstp dword [esp + 0x38]
fld dword [ebx + eax + 0x10]
fsub dword [edx + 0x10]
lea eax, [ebx + eax + 0xc]
fstp dword [esp + 0x3c]
fld dword [eax + 8]
fsub dword [edx + 0x14]
fst dword [esp + 0x40]
fmul st(2)
fld dword [esp + 0x3c]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
fmul dword [esp + 0x38]
fld dword [esp + 0x40]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
fmul st(2)
mov dword [esp + 0x18], eax
fxch st(1)
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fstp st(0)
mov dword [esp + 0x1c], eax
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fcom dword [0x4fd1ec]
fnstsw ax
test ah, 0x41
jne 0x41295f
fsqrt
fdivr qword [0x4db398]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [esp + 0x1c]
jmp 0x412965
fstp st(0)
fld dword [esp + 0x1c]
fld dword [esp + 0x28]
fmul dword [ecx + 0x3c]
fld dword [esp + 0x24]
fmul dword [ecx + 0x38]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [ecx + 0x34]
faddp st(1)
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0x48]
fxch st(2)
fmul st(1)
fstp dword [esp + 0x4c]
fxch st(1)
fadd dword [edx + 0x24]
fstp dword [edx + 0x24]
fstp st(0)
fld dword [esp + 0x48]
fadd dword [edx + 0x28]
fstp dword [edx + 0x28]
fld dword [esp + 0x4c]
fadd dword [edx + 0x2c]
fstp dword [edx + 0x2c]
mov edx, dword [ecx + 0x30]
mov eax, dword [edi + edx - 0xc]
imul eax, eax, 0x78
fld dword [eax + edx + 0xc]
fsub dword [esi + edx + 0xc]
fld dword [eax + edx + 0x10]
fsub dword [esi + edx + 0x10]
fld dword [eax + edx + 0x14]
fsub dword [esi + edx + 0x14]
fld st(1)
fmul dword [esp + 0x40]
lea eax, [eax + edx + 0xc]
fld st(1)
fmul dword [esp + 0x3c]
fsubp st(1)
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
fmul dword [esp + 0x38]
fld dword [esp + 0x40]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
fmul st(2)
mov dword [esp + 0x18], eax
fxch st(1)
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fstp st(0)
mov dword [esp + 0x1c], eax
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fcom dword [0x4fd1ec]
fnstsw ax
test ah, 0x41
jne 0x412a73
fsqrt
fdivr qword [0x4db398]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fmul dword [esp + 0x1c]
jmp 0x412a79
fstp st(0)
fld dword [esp + 0x1c]
fld dword [esp + 0x34]
lea eax, [esi + edx + 0x2c]
fmul dword [ecx + 0x3c]
add edi, 4
fld dword [esp + 0x30]
fmul dword [ecx + 0x38]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [ecx + 0x34]
faddp st(1)
fld dword [esp + 0x14]
fmul st(1)
fld dword [esp + 0x18]
fmul st(2)
fstp dword [esp + 0x54]
fxch st(2)
fmul st(1)
fstp dword [esp + 0x58]
fxch st(1)
fadd dword [esi + edx + 0x24]
fstp dword [esi + edx + 0x24]
fstp st(0)
fld dword [esp + 0x54]
fadd dword [esi + edx + 0x28]
fstp dword [esi + edx + 0x28]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x58]
inc edx
fadd dword [eax]
mov dword [esp + 0x10], edx
fstp dword [eax]
mov eax, dword [ecx + 0x30]
mov ebx, dword [esi + eax + 0x3c]
lea edx, [esi + eax]
dec ebx
cmp dword [esp + 0x10], ebx
jl 0x412880
mov edx, dword [ecx + 0x2c]
inc ebp
add esi, 0x78
cmp ebp, edx
jl 0x412850
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x4c
ret