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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x58]
fld dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x58]
movzx edx, word [ebp + 4]
push esi
mov esi, dword [esp + 0x64]
push edi
mov dword [ebx + 4], ecx
mov dword [ebx], eax
lea eax, [ebx + 8]
mov edi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x70]
lea edi, [ebx + 0x2c]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
push ecx
lea esi, [esp + 0x3c]
mov edi, eax
fstp dword [esp]
mov dword [esp + 0x64], edx
call fcn.004517d0
push ecx
fld dword [esp + 0x78]
lea esi, [esp + 0x4c]
lea edi, [ebx + 0x2c]
fstp dword [esp]
call fcn.004517d0
mov eax, 1
cmp dword [esp + 0x60], eax
jne 0x451a4d
movzx ecx, byte [ebp + 6]
mov eax, dword [ebx]
mov dword [ebx + 0x50], 0
mov eax, dword [eax + 0x10]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fld dword [esp + 0x1c]
movzx ecx, byte [ebp + 9]
fld st(0)
fld dword [esp + 0x44]
fld st(0)
mov edx, dword [ebx + 4]
fmulp st(2)
mov eax, dword [edx + 0x10]
fld dword [esp + 0x40]
mov edx, dword [eax + ecx*8]
fld st(0)
mov eax, dword [eax + ecx*8 + 4]
fld dword [esp + 0x18]
sub esp, 8
fld st(0)
mov dword [esp + 0x1c], eax
fmulp st(2)
lea eax, [esp + 0x28]
fxch st(4)
mov dword [esp + 0x18], edx
faddp st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fxch st(1)
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x14]
sub esp, 8
fld st(0)
lea eax, [esp + 0x20]
fld dword [esp + 0x5c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x58]
fld st(0)
fld dword [esp + 0x18]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fxch st(1)
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
call fcn.00421e20
mov ecx, dword [eax]
lea esi, [ebx + 0x5c]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
call fcn.004499a0
pop edi
pop esi
pop ebp
add esp, 0x50
ret 0x18
mov cl, byte [ebp + 6]
mov dl, byte [ebp + 7]
cmp cl, dl
jne 0x451c12
movzx ecx, byte [ebp + 9]
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x50], 2
mov eax, dword [eax + 0x10]
mov edx, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x14], ecx
movzx ecx, byte [ebp + 0xa]
mov dword [esp + 0x10], edx
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
call fcn.00421e20
sub esp, 8
fld dword [eax]
fmul qword [0x499af0]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [eax + 4]
lea eax, [esp + 0x28]
fstp dword [esp]
call fcn.004069b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea edi, [ebx + 0x5c]
mov esi, edi
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.004499a0
fstp st(0)
fld dword [edi]
sub esp, 8
fld dword [esp + 0x58]
lea eax, [esp + 0x30]
fld st(0)
fmulp st(2)
fld dword [edi + 4]
fld dword [esp + 0x5c]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [edi]
fmulp st(2)
fmul dword [edi + 4]
fsubp st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x1c]
sub esp, 8
fadd dword [esp + 0x1c]
lea eax, [esp + 0x28]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
fld dword [0x499a48]
push ecx
lea ecx, [esp + 0x24]
fstp dword [esp]
lea eax, [esp + 0x34]
call fcn.00421e30
mov edx, dword [eax]
lea ecx, [ebx + 0x54]
add esp, 4
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
lea eax, [esp + 0x48]
lea esi, [esp + 0x20]
call fcn.00449a70
movzx ecx, byte [ebp + 6]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fld dword [esp + 0x1c]
sub esp, 8
fld st(0)
lea eax, [esp + 0x20]
fld dword [esp + 0x4c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x48]
fld st(0)
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fadd dword [esp + 0x44]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fxch st(1)
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
mov ecx, esi
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
call fcn.00421e20
mov ecx, eax
lea eax, [esp + 0x28]
jmp 0x451db9
mov dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
movzx ecx, cl
mov esi, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x1c], ecx
movzx ecx, dl
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
mov dword [esp + 0x18], esi
call fcn.00421e20
sub esp, 8
fld dword [eax]
fmul qword [0x499af0]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [eax + 4]
lea eax, [esp + 0x28]
fstp dword [esp]
call fcn.004069b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea edi, [ebx + 0x5c]
mov esi, edi
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.004499a0
fstp st(0)
fld dword [esp + 0x44]
sub esp, 8
fld st(0)
lea eax, [esp + 0x38]
fmul dword [edi + 4]
fld dword [edi]
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [edi]
fmulp st(2)
fmul dword [edi + 4]
fsubp st(1)
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x14]
sub esp, 8
fadd dword [esp + 0x24]
lea eax, [esp + 0x30]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fadd dword [esp + 0x18]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
fld dword [0x499a48]
push ecx
lea ecx, [esp + 0x2c]
fstp dword [esp]
lea eax, [esp + 0x24]
call fcn.00421e30
mov edx, dword [eax]
lea ecx, [ebx + 0x54]
mov dword [ecx], edx
mov eax, dword [eax + 4]
add esp, 4
mov dword [ecx + 4], eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x28]
call fcn.00449a70
movzx ecx, byte [ebp + 9]
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fld dword [esp + 0x1c]
sub esp, 8
fld st(0)
lea eax, [esp + 0x28]
fld dword [esp + 0x5c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x20]
fld st(0)
fld dword [esp + 0x58]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp + 4]
fmulp st(1)
fxch st(2)
fmulp st(1)
fsubp st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fstp dword [esp]
call fcn.004069b0
mov ecx, esi
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.00421e20
mov ecx, eax
lea eax, [esp + 0x30]
call fcn.00415b00
fstp dword [esp + 0x74]
fldz
fcomp dword [esp + 0x74]
fnstsw ax
test ah, 0x41
jne 0x451e02
fld dword [edi + 4]
sub esp, 8
fchs
lea eax, [esp + 0x28]
fstp dword [esp + 4]
fld dword [edi]
fchs
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fchs
fstp dword [esp + 0x74]
mov dword [edi], ecx
mov dword [edi + 4], edx
fld dword [esp + 0x74]
pop edi
pop esi
pop ebp
add esp, 0x50
ret 0x18