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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [ebp + 8]
fldz
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
push esi
fstp qword [eax]
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ebx
call fcn.10031d38
test eax, eax
jne 0x10031d26
mov ecx, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x20]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x10]
shl ebx, 5
add ebx, ecx
shl eax, 5
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
fld qword [ebx + 8]
fld qword [eax + 8]
mov edi, dword [ebx + 0x14]
fld st(1)
fsub st(1)
mov esi, dword [eax + 0x14]
fld qword [ebx]
fld qword [eax]
fld st(1)
shl edi, 5
fsub st(1)
mov eax, dword [esp + 0x14]
add edi, ecx
shl esi, 5
mov ecx, dword [esp + 0x24]
add esi, edx
mov eax, dword [eax + 0x14]
fmul st(0), st(0)
fxch st(3)
fmul st(0), st(0)
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
faddp st(3)
fxch st(2)
fst qword [esp + 0x28]
fld1
fstp qword [esp + 0x50]
fldz
fstp qword [esp + 0x58]
fld qword [edi]
fsubrp st(2)
fxch st(1)
fst qword [esp + 0x40]
fstp qword [esp + 0x70]
fld qword [edi + 8]
fsubrp st(4)
fxch st(3)
fst qword [esp + 0x48]
fstp qword [esp + 0x78]
fsub qword [esi]
fst qword [esp + 0x30]
fstp qword [esp + 0x60]
fsub qword [esi + 8]
fst qword [esp + 0x38]
fstp qword [esp + 0x68]
test eax, eax
jg 0x10031b59
test ecx, ecx
jle 0x10031d21
lea eax, [esp + 0x60]
fstp st(0)
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0x54]
call fcn.1003183d
sub eax, 0
je 0x10031cb6
sub eax, 1
je 0x10031c53
fld qword [esp + 0x28]
sub eax, 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jne 0x10031b4d
push dword [esp + 0x18]
dec dword [esp + 0x14]
fstp st(0)
fld qword [esp + 0x34]
mov edx, edi
dec dword [esp + 0x18]
mov ecx, ebx
fstp qword [esp + 0x54]
fld qword [esp + 0x3c]
fstp qword [esp + 0x5c]
call fcn.100319cc
fld qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10031bca
fstp qword [esp + 0x28]
jmp 0x10031bcc
fstp st(0)
push esi
mov edx, edi
mov ecx, ebx
call fcn.100319cc
fld qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10031be9
fstp qword [esp + 0x28]
jmp 0x10031beb
fstp st(0)
mov ecx, dword [esp + 0x18]
mov edx, esi
push ebx
call fcn.100319cc
fld qword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10031c0a
fstp qword [esp + 0x28]
jmp 0x10031c0c
fstp st(0)
push edi
mov edx, esi
call fcn.100319cc
fld qword [esp + 0x28]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x10031c29
fstp st(0)
fst qword [esp + 0x28]
jmp 0x10031c2b
fstp st(1)
mov ebx, edi
mov edi, dword [edi + 0x14]
shl edi, 5
add edi, dword [esp + 0x20]
fld qword [edi]
fsub qword [ebx]
fst qword [esp + 0x40]
fstp qword [esp + 0x70]
fld qword [edi + 8]
fsub qword [ebx + 8]
fst qword [esp + 0x48]
fstp qword [esp + 0x78]
jmp 0x10031c8a
fld qword [esp + 0x30]
mov edx, esi
dec dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
fstp qword [esp + 0x50]
fld qword [esp + 0x38]
fstp qword [esp + 0x58]
push ebx
call fcn.100319cc
fld qword [esp + 0x28]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x10031c88
fstp st(0)
fst qword [esp + 0x28]
jmp 0x10031c8a
fstp st(1)
mov eax, esi
mov esi, dword [esi + 0x14]
shl esi, 5
add esi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fld qword [eax]
fsub qword [esi]
fst qword [esp + 0x30]
fstp qword [esp + 0x60]
fld qword [eax + 8]
fsub qword [esi + 8]
fst qword [esp + 0x38]
fstp qword [esp + 0x68]
jmp 0x10031d14
fld qword [esp + 0x40]
mov edx, edi
push dword [esp + 0x18]
dec dword [esp + 0x14]
mov ecx, ebx
fstp qword [esp + 0x54]
fld qword [esp + 0x4c]
fstp qword [esp + 0x5c]
call fcn.100319cc
fld qword [esp + 0x28]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x10031cec
fstp st(0)
fst qword [esp + 0x28]
jmp 0x10031cee
fstp st(1)
mov ebx, edi
mov edi, dword [edi + 0x14]
shl edi, 5
add edi, dword [esp + 0x20]
fld qword [edi]
fsub qword [ebx]
fst qword [esp + 0x40]
fstp qword [esp + 0x70]
fld qword [edi + 8]
fsub qword [ebx + 8]
fst qword [esp + 0x48]
fstp qword [esp + 0x78]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x10031b4d
mov eax, dword [ebp + 8]
fstp qword [eax]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 4