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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
push ebx
mov ebx, dword [ebp + 0xc]
movsx eax, word [ebx]
cmp eax, 2
push esi
push edi
mov esi, ecx
je 0x47cf35
cmp eax, 3
je 0x47cf35
cmp eax, 4
je 0x47cf35
cmp eax, 6
je 0x47cf35
cmp eax, 5
mov byte [esp + 0x1b], 0
jne 0x47cf3a
mov byte [esp + 0x1b], 1
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0xc0]
test cl, cl
je 0x47cf56
mov ecx, dword [0x925ae8]
mov dword [esi + 0xa8], ecx
mov ecx, esi
call fcn.004741f0
test al, al
je 0x47cf6d
mov edx, dword [0x925ae8]
mov dword [esi + 0xac], edx
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov ecx, esi
call fcn.0046b1f0
mov edi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.0046b410
lea ecx, [esp + 0x90]
push edi
push ecx
call fcn.006bde60
mov al, byte [esi + 0xa0]
add esp, 8
test al, al
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
je 0x47cfff
mov eax, dword [esi + 0xe0]
fld dword [eax + 0x24]
mov edx, dword [eax + 0x20]
fld dword [eax + 0x28]
add eax, 0x20
lea eax, [esp + 0x40]
fxch st(1)
push eax
fstp dword [esp + 0x48]
lea ecx, [esp + 0x94]
mov dword [esp + 0x44], edx
fstp dword [esp + 0x4c]
push ecx
mov edx, eax
push edx
mov dword [esp + 0x58], 0
call fcn.0045ed10
add esp, 0xc
mov al, byte [0x904ffa]
test al, al
jne 0x47d011
mov eax, dword [0x9b0890]
test eax, eax
je 0x47d036
mov eax, dword [0x8ee120]
mov ecx, dword [0x8ee124]
mov edx, dword [0x8ee128]
mov edi, dword [0x9111e4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jmp 0x47d05d
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push eax
mov ecx, esi
mov dword [esp + 0x3c], edx
call fcn.0047ce80
xor edi, edi
mov di, word [ebx + 2]
push edi
call fcn.0045db30
fstp dword [esp + 0x20]
push edi
call fcn.0045dbf0
fdivr dword [esp + 0x24]
mov al, byte [esp + 0x23]
add esp, 8
test al, al
je 0x47d092
fmul dword [esp + 0x30]
mov dword [esp + 0x5c], 0
fadd dword [esp + 0x38]
fstp dword [esp + 0x1c]
jmp 0x47d0ac
fld dword [esp + 0x38]
fsub st(1)
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x30]
fadd dword [0x89096c]
fstp dword [esp + 0x5c]
mov edi, dword [ebp + 0x10]
fld dword [esp + 0x40]
fmul dword [edi + 0x40]
lea ecx, [edi + 0x60]
push ecx
lea edx, [edi + 0x50]
fstp dword [esp + 0x64]
push edx
fld dword [esp + 0x4c]
lea eax, [esp + 0x68]
fmul dword [edi + 0x44]
push eax
fstp dword [esp + 0x70]
fld dword [esp + 0x54]
fmul dword [edi + 0x48]
fstp dword [esp + 0x74]
call fcn.0046ae40
fld dword [esp + 0x6c]
add esp, 0xc
fadd dword [esp + 0x30]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esi + 0x88]
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fadd dword [esp + 0x38]
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x6c]
call fcn.00651790
fld dword [esp + 0x40]
lea edx, [edi + 0x90]
fmul dword [edi + 0x70]
push edx
lea eax, [edi + 0x80]
push eax
fstp dword [esp + 0x78]
lea ecx, [esp + 0x78]
fld dword [esp + 0x4c]
push ecx
fmul dword [edi + 0x74]
fstp dword [esp + 0x80]
fld dword [esp + 0x54]
fmul dword [edi + 0x78]
fstp dword [esp + 0x84]
call fcn.0046ae40
fld dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
fadd dword [esp + 0x68]
mov ecx, dword [esi + 0x8c]
add esp, 0xc
lea eax, [esp + 0x70]
fstp dword [esp + 0x70]
push eax
fld dword [esp + 0x7c]
mov dword [esp + 0x78], edx
fadd dword [esp + 0x20]
fstp dword [esp + 0x7c]
call fcn.00651790
cmp word [ebx + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3f800000
je 0x47d209
mov eax, dword [esi + 0xe0]
fld dword [edi + 0x10]
fmul dword [eax + 0x20]
add eax, 0x20
fld dword [edi + 0x14]
lea edx, [edi + 0x30]
fmul dword [eax + 4]
push edx
fld dword [edi + 0x18]
add edi, 0x20
fmul dword [eax + 8]
lea eax, [esp + 0x24]
push edi
push eax
fstp dword [esp + 0x44]
fxch st(1)
fstp dword [esp + 0x8c]
mov ecx, dword [esp + 0x8c]
fld dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
fadd dword [0x89096c]
fxch st(1)
fstp dword [esp + 0x30]
fstp dword [esp + 0x34]
call fcn.0046ae40
add esp, 0xc
mov ecx, dword [esi + 0x80]
fld dword [ecx + 0x10]
fcomp dword [0x894820]
fnstsw ax
test ah, 0x41
jne 0x47d255
mov eax, ecx
push eax
add eax, 0x20
push eax
mov ecx, esi
call fcn.0047c440
fld dword [eax + 4]
fld dword [eax + 8]
fld dword [esp + 0x20]
fadd dword [eax]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd st(1)
fstp dword [esp + 0x28]
fstp st(0)
fstp st(0)
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call fcn.0045f490
add esp, 8
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x94]
call fcn.00651790
mov dl, byte [esp + 0x1b]
test dl, dl
mov bx, word [ebx + 0x10]
je 0x47d2a7
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0xbc]
test cl, cl
je 0x47d2a7
fld dword [eax + 0x10]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
jne 0x47d2a7
add ebx, dword [0x91112c]
mov ecx, dword [esi + 0x84]
movzx eax, bx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fst dword [ecx + 8]
fld dword [ecx]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x47d2ce
mov word [ecx + 0x28], 2
mov al, byte [esi + 0xa2]
test al, al
jne 0x47d2e0
test dl, dl
jne 0x47d39f
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor ecx, ecx
mov word [eax + 0x28], cx
mov edx, dword [eax + 0x34]
mov dword [eax + 0x2c], edx
mov edx, dword [eax + 0x38]
mov dword [eax + 0x30], edx
mov word [eax + 0x54], cx
mov edx, dword [eax + 0x60]
mov dword [eax + 0x58], edx
mov edx, dword [eax + 0x64]
mov dword [eax + 0x5c], edx
mov word [eax + 0x80], cx
mov eax, dword [esi + 0x84]
mov edx, dword [eax + 8]
mov dword [eax], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 4], edx
mov word [eax + 0x28], cx
mov eax, dword [esi + 0x88]
mov edx, dword [eax + 8]
mov dword [eax], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 4], edx
mov word [eax + 0x28], cx
mov edx, dword [eax + 0x34]
mov dword [eax + 0x2c], edx
mov edx, dword [eax + 0x38]
mov dword [eax + 0x30], edx
mov word [eax + 0x54], cx
mov edx, dword [eax + 0x60]
mov dword [eax + 0x58], edx
mov edx, dword [eax + 0x64]
mov dword [eax + 0x5c], edx
mov word [eax + 0x80], cx
mov eax, dword [esi + 0x8c]
mov edx, dword [eax + 8]
mov dword [eax], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 4], edx
mov word [eax + 0x28], cx
mov edx, dword [eax + 0x34]
mov dword [eax + 0x2c], edx
mov edx, dword [eax + 0x38]
mov dword [eax + 0x30], edx
mov word [eax + 0x54], cx
mov edx, dword [eax + 0x60]
mov dword [eax + 0x58], edx
mov edx, dword [eax + 0x64]
mov dword [eax + 0x5c], edx
mov word [eax + 0x80], cx
mov al, byte [esi + 0xa2]
test al, al
je 0x47d3ae
call fcn.00725550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10