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

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [0x7ac620]
test ebx, ebx
mov dword [esp + 4], ebx
je 0x404b4c
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
jmp 0x4047f3
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x23c], 9
jne 0x404b37
mov esi, dword [ebx + 0x35c]
fld dword [esi + 0x74]
fcomp dword [edi + 0xc48]
fnstsw ax
test ah, 0x41
je 0x404b37
fld dword [esi + 0x78]
fcomp dword [edi + 0xc44]
fnstsw ax
test ah, 1
jne 0x404b37
fld dword [esi + 0x84]
fcomp dword [edi + 0xc58]
fnstsw ax
test ah, 0x41
je 0x404b37
fld dword [esi + 0x88]
fcomp dword [edi + 0xc54]
fnstsw ax
test ah, 1
jne 0x404b37
fld dword [esi + 0x7c]
fcomp dword [edi + 0xc50]
fnstsw ax
test ah, 0x41
je 0x404b37
fld dword [esi + 0x80]
fcomp dword [edi + 0xc4c]
fnstsw ax
test ah, 1
jne 0x404b37
mov ecx, dword [edi + 0x368]
fld dword [ecx + 0x14]
fld dword [ecx + 8]
lea edx, [ecx + 0x14]
lea ebp, [ecx + 8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4048a6
fld dword [edx]
jmp 0x4048a9
fld dword [ebp]
fld dword [edx]
fld dword [ebp]
fcompp
fnstsw ax
test ah, 1
je 0x4048bb
mov eax, dword [edx]
jmp 0x4048be
mov eax, dword [ebp]
fld dword [ecx + 0x18]
fld dword [ecx + 0xc]
fcompp
mov dword [esp + 0x34], eax
fnstsw ax
test ah, 0x41
jne 0x4048d6
fld dword [ecx + 0x18]
jmp 0x4048d9
fld dword [ecx + 0xc]
fld dword [ecx + 0x18]
fld dword [ecx + 0xc]
fcompp
fnstsw ax
test ah, 1
je 0x4048ed
mov eax, dword [ecx + 0x18]
jmp 0x4048f0
mov eax, dword [ecx + 0xc]
fld dword [ecx + 0x1c]
fld dword [ecx + 0x10]
fcompp
mov dword [esp + 0x3c], eax
fnstsw ax
test ah, 0x41
jne 0x404908
mov eax, dword [ecx + 0x1c]
jmp 0x40490b
mov eax, dword [ecx + 0x10]
fld dword [ecx + 0x1c]
fld dword [ecx + 0x10]
fcompp
mov dword [esp + 0x40], eax
fnstsw ax
test ah, 1
je 0x404927
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x44], ecx
jmp 0x40492e
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x44], eax
fcomp dword [esi + 0x80]
fnstsw ax
test ah, 0x41
je 0x404b51
fld dword [esp + 0x3c]
fcomp dword [esi + 0x7c]
fnstsw ax
test ah, 1
jne 0x404b51
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 0x41
je 0x404b37
fld dword [esp + 0x34]
fcomp dword [esi + 0x74]
fnstsw ax
test ah, 1
jne 0x404b37
fld dword [esp + 0x40]
fcomp dword [esi + 0x88]
fnstsw ax
test ah, 0x41
je 0x404b37
fld dword [esp + 0x44]
fcomp dword [esi + 0x84]
fnstsw ax
test ah, 1
jne 0x404b37
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x14]
lea ebx, [esi + 0x24]
push ecx
push eax
push ebx
push edx
push ebp
call fcn.0046c340
add esp, 0x14
test eax, eax
je 0x404b33
mov eax, dword [edi + 0x368]
lea ecx, [esi + 0x1c]
lea edx, [esp + 0x24]
push ecx
fld dword [eax + 0x14]
fsub dword [eax + 8]
fld dword [eax + 0x18]
fsub dword [eax + 0xc]
push edx
fstp dword [esp + 0x24]
fld dword [eax + 0x1c]
fsub dword [eax + 0x10]
fstp dword [esp + 0x28]
fmul dword [esp + 0x1c]
fadd dword [eax + 8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x1c]
fadd dword [eax + 0xc]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fmul dword [esp + 0x1c]
fadd dword [eax + 0x10]
fstp dword [esp + 0x34]
call fcn.0046d2b0
add esp, 8
test eax, eax
je 0x404b33
mov ecx, dword [edi + 0x368]
fld dword [esi + 0x2c]
fmul dword [ecx + 0x28]
fld dword [ecx + 0x24]
fmul dword [esi + 0x28]
faddp st(1)
fld dword [ecx + 0x20]
fmul dword [ebx]
faddp st(1)
fcomp dword [0x4b0004]
fld dword [ecx + 0x74]
fmul dword [ecx + 0x28]
fld dword [ecx + 0x70]
fmul dword [ecx + 0x24]
fnstsw ax
faddp st(1)
fld dword [ecx + 0x6c]
fmul dword [ecx + 0x20]
test ah, 0x41
faddp st(1)
fcom dword [0x4b0004]
fnstsw ax
jne 0x404a76
test ah, 0x41
jne 0x404a6d
fsubr dword [esi + 0x10]
jmp 0x404a87
fld dword [esi + 0x10]
fchs
fsubrp st(1)
jmp 0x404a87
test ah, 0x41
jne 0x404a84
fld dword [esi + 8]
fchs
fsubrp st(1)
jmp 0x404a87
fsubr dword [esi + 8]
fmul dword [ecx]
fld dword [esp + 0x4c]
fcomp dword [0x4b0004]
fnstsw ax
test ah, 1
je 0x404b02
fld dword [esp + 0x4c]
fsub dword [0x4b001c]
fmul dword [0x4b010c]
fmul dword [ebx]
fadd dword [ecx + 0xb8]
fstp dword [ecx + 0xb8]
fld dword [esp + 0x4c]
fsub dword [0x4b001c]
mov eax, dword [edi + 0x368]
fmul dword [0x4b010c]
fmul dword [esi + 0x28]
fadd dword [eax + 0xbc]
fstp dword [eax + 0xbc]
fld dword [esp + 0x4c]
fsub dword [0x4b001c]
mov eax, dword [edi + 0x368]
fmul dword [0x4b010c]
fmul dword [esi + 0x2c]
fadd dword [eax + 0xc0]
fstp dword [eax + 0xc0]
mov eax, dword [edi + 0x368]
fld st(0)
fmul dword [eax + 0x6c]
fadd dword [eax + 0x38]
fstp dword [eax + 0x38]
mov eax, dword [edi + 0x368]
fld st(0)
fmul dword [eax + 0x70]
fadd dword [eax + 0x3c]
fstp dword [eax + 0x3c]
mov eax, dword [edi + 0x368]
fmul dword [eax + 0x74]
fadd dword [eax + 0x40]
fstp dword [eax + 0x40]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x470]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4047ef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
fstp st(0)
jmp 0x404b37